89% 4bzcore

Code Review | 4bzCore

WordPress plugin 4bzCore scored89%from 54 tests.

About plugin

  • Plugin page: 4bzcore
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3
  • WordPress version: 6.3.1
  • First release: May 14, 2015
  • Latest release: Sep 14, 2015
  • Number of updates: 15
  • Update frequency: every 8.3 days
  • Top authors: 4bzthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,740 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.76MB] [CPU: ▼0.18ms] Passed 4 tests

An overview of server-side resources used by 4bzCore
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.24 ▲0.7846.19 ▲5.03
Dashboard /wp-admin4.05 ▲0.7552.92 ▲0.33
Posts /wp-admin/edit.php4.10 ▲0.7550.47 ▼1.11
Add New Post /wp-admin/post-new.php6.67 ▲0.79105.27 ▼4.96
Media Library /wp-admin/upload.php3.98 ▲0.7545.03 ▲8.83

Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 88 new files
Database: no new tables, 18 new options
New WordPress options
widget_fourbzcore_widget_author_bio
widget_fourbzcore_widget_progressbars
widget_fourbzcore_widget_slideshow
widget_recent-comments
widget_fourbzcore_widget_flickr_photos
theysaidso_admin_options
widget_fourbzcore_widget_recent_posts
widget_fourbzcore_widget_related_posts
widget_fourbzcore_widget_facebook_comments
can_compress_scripts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for 4bzCore
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲18713.67 ▼0.989.59 ▲7.4938.43 ▼2.99
Dashboard /wp-admin2,234 ▲345.84 ▼0.04100.13 ▼2.5738.62 ▼7.24
Posts /wp-admin/edit.php2,119 ▲192.02 ▲0.0238.38 ▼1.3433.62 ▼1.60
Add New Post /wp-admin/post-new.php6,275 ▲4,73026.19 ▲2.83857.73 ▲199.2065.37 ▼6.43
Media Library /wp-admin/upload.php1,416 ▲134.21 ▼0.0296.57 ▼6.1542.18 ▼4.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 18 options
    • widget_recent-comments
    • widget_fourbzcore_widget_flickr_photos
    • widget_fourbzcore_widget_author_bio
    • widget_fourbzcore_widget_facebook_comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_fourbzcore_widget_image_text
    • widget_recent-posts
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

4bzcore/4bzcore.php 92% from 13 tests

The main PHP file in "4bzCore" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 625 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin9,546 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
PHP391,0412,3783,473
CSS5801092,183
Sass1326241,352
LESS1326331,343
JavaScript4187389611
SVG200584

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.52
▷ Minimum class complexity2.00
▷ Maximum class complexity157.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
Methods162
▷ Static methods00.00%
▷ Public methods16199.38%
▷ Protected methods00.00%
▷ Private methods10.62%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
favicon.png0.46KB0.54KB0.00%
js/4bz@2x.png1.50KB1.72KB0.00%
js/4bz.png0.43KB0.51KB0.00%