89% bx-essentials

Code Review | BX Essentials

WordPress plugin BX Essentials scored89%from 54 tests.

About plugin

  • Plugin page: bx-essentials
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.0
  • WordPress version: 6.3.1
  • First release: Oct 30, 2021
  • Latest release: May 4, 2023
  • Number of updates: 16
  • Update frequency: every 34.5 days
  • Top authors: buildbox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /585 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲0.45ms] Passed 4 tests

A check of server-side resources used by BX Essentials
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2044.43 ▲1.14
Dashboard /wp-admin3.50 ▲0.2049.39 ▲1.81
Posts /wp-admin/edit.php3.61 ▲0.2651.12 ▼4.55
Add New Post /wp-admin/post-new.php6.08 ▲0.1999.54 ▲8.24
Media Library /wp-admin/upload.php3.42 ▲0.2038.67 ▲3.41
BX Essentials /wp-admin/options-general.php?page=bx-essentials3.3938.58

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
bx_sntls_options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

BX Essentials: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.27 ▼1.064.95 ▲3.1938.74 ▼2.88
Dashboard /wp-admin2,207 ▲165.79 ▲0.8899.79 ▼5.0038.15 ▼4.53
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0239.03 ▲2.0634.48 ▼0.60
Add New Post /wp-admin/post-new.php1,517 ▼1117.53 ▼0.57642.54 ▼18.3154.39 ▼13.67
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.0897.39 ▼13.0946.54 ▲0.51
BX Essentials /wp-admin/options-general.php?page=bx-essentials1,0111.8427.2431.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
2 plugin tags: tools, dev

bx-essentials/bx-essentials.php 85% from 13 tests

The main PHP script in "BX Essentials" version 2.0.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.4" instead of "7.4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,655 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP113284491,207
JavaScript41292448

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity20.22
▷ Minimum class complexity3.00
▷ Maximum class complexity47.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods68
▷ Static methods2029.41%
▷ Public methods6189.71%
▷ Protected methods68.82%
▷ Private methods11.47%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin