89% boxer-block

Code Review | Boxer Block

WordPress plugin Boxer Block scored89%from 54 tests.

About plugin

  • Plugin page: boxer-block
  • Plugin version: 1.0
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2019
  • Latest release: Jun 13, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: ck3lee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,948 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.89ms] Passed 4 tests

A check of server-side resources used by Boxer Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.33 ▲1.55
Dashboard /wp-admin3.31 ▲0.0145.53 ▼0.39
Posts /wp-admin/edit.php3.36 ▲0.0043.61 ▼3.80
Add New Post /wp-admin/post-new.php7.15 ▲1.2789.34 ▼7.75
Media Library /wp-admin/upload.php3.23 ▲0.0034.21 ▲0.38

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Boxer Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲19823.34 ▲9.06160.12 ▲158.0638.22 ▼9.93
Dashboard /wp-admin2,209 ▲245.83 ▲0.9689.88 ▼13.8039.88 ▼1.97
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0536.30 ▼4.6634.09 ▲0.15
Add New Post /wp-admin/post-new.php6,187 ▲4,66819.98 ▼3.38931.03 ▲259.5641.05 ▼10.24
Media Library /wp-admin/upload.php1,379 ▼94.28 ▲0.0896.49 ▼12.0244.19 ▼2.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Block editor for boxer)
The official readme.txt might help

boxer-block/index.php 85% from 13 tests

The main PHP script in "Boxer Block" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("boxer-block.php" instead of "index.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin12,128 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON20011,759
JavaScript93834286
PHP1121040
CSS13030
Markdown14013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin