83% boxzilla

Code Review | Boxzilla

WordPress plugin Boxzilla scored83%from 54 tests.

About plugin

  • Plugin page: boxzilla
  • Plugin version: 3.2.27
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: May 11, 2016
  • Latest release: Mar 28, 2023
  • Number of updates: 137
  • Update frequency: every 18.4 days
  • Top authors: DvanKooten (100%)

Code review

54 tests

User reviews

120 reviews

Install metrics

30,000+ active /587,688 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.21ms] 75% from 4 tests

An overview of server-side resources used by Boxzilla
Please have a look at the following items
  • CPU: Try to keep total CPU usage under 500.00ms (currently 557.04ms on /wp-admin/edit.php?post_type=boxzilla-box&page=boxzilla-extensions)
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.43 ▼0.37
Dashboard /wp-admin3.40 ▲0.0653.03 ▼12.44
Posts /wp-admin/edit.php3.52 ▲0.1647.09 ▲1.89
Add New Post /wp-admin/post-new.php5.98 ▲0.1080.65 ▼12.74
Media Library /wp-admin/upload.php3.32 ▲0.0933.39 ▲0.71
Settings /wp-admin/edit.php?post_type=boxzilla-box&page=boxzilla-settings3.3333.55
Extensions /wp-admin/edit.php?post_type=boxzilla-box&page=boxzilla-extensions3.35557.04

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 71 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
boxzilla_version
boxzilla_settings
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Boxzilla
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲12013.71 ▼0.671.86 ▼0.1844.50 ▲0.92
Dashboard /wp-admin2,272 ▲844.89 ▼1.17115.31 ▼1.1441.37 ▼2.79
Posts /wp-admin/edit.php2,152 ▲632.02 ▲0.0335.56 ▼1.4333.27 ▼0.66
Add New Post /wp-admin/post-new.php1,573 ▲4018.35 ▼4.78638.99 ▼67.6456.84 ▲3.02
Media Library /wp-admin/upload.php1,452 ▲614.21 ▼0.0198.06 ▼8.1843.25 ▼1.48
Settings /wp-admin/edit.php?post_type=boxzilla-box&page=boxzilla-settings1,0101.7125.2137.00
Extensions /wp-admin/edit.php?post_type=boxzilla-box&page=boxzilla-extensions1,0792.0624.0931.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • boxzilla_version
    • boxzilla_settings
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Boxzilla\\DI\\ContainerWithPropertyAccess' not found in wp-content/plugins/boxzilla/src/class-boxzilla.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Boxzilla\\DI\\Container' not found in wp-content/plugins/boxzilla/src/di/class-container-with-property-access.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: Screenshot #4 (Screenshot of the page to manage a Boxzilla pop-up.) image missing
  • Screenshots: Please a description for screenshot #2 in boxzilla/assets to your readme.txt
The official readme.txt is a good inspiration

boxzilla/boxzilla.php Passed 13 tests

"Boxzilla" version 3.2.27's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
108 characters long description:
Call-To-Action Boxes that display after visitors scroll down far enough. Unobtrusive, but highly conversing!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,819 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
PHP528541,5623,181
JavaScript44202681,283
Markdown12580244
CSS2234108
SVG1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.36
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods190
▷ Static methods2010.53%
▷ Public methods16084.21%
▷ Protected methods2412.63%
▷ Private methods63.16%
Functions28
▷ Named functions517.86%
▷ Anonymous functions2382.14%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/menu-icon.png0.43KB0.54KB0.00%