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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.43 ▼0.37 |
Dashboard /wp-admin | 3.40 ▲0.06 | 53.03 ▼12.44 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.09 ▲1.89 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 80.65 ▼12.74 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.39 ▲0.71 |
Settings /wp-admin/edit.php?post_type=boxzilla-box&page=boxzilla-settings | 3.33 | 33.55 |
Extensions /wp-admin/edit.php?post_type=boxzilla-box&page=boxzilla-extensions | 3.35 | 557.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲120 | 13.71 ▼0.67 | 1.86 ▼0.18 | 44.50 ▲0.92 |
Dashboard /wp-admin | 2,272 ▲84 | 4.89 ▼1.17 | 115.31 ▼1.14 | 41.37 ▼2.79 |
Posts /wp-admin/edit.php | 2,152 ▲63 | 2.02 ▲0.03 | 35.56 ▼1.43 | 33.27 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,573 ▲40 | 18.35 ▼4.78 | 638.99 ▼67.64 | 56.84 ▲3.02 |
Media Library /wp-admin/upload.php | 1,452 ▲61 | 4.21 ▼0.01 | 98.06 ▼8.18 | 43.25 ▼1.48 |
Settings /wp-admin/edit.php?post_type=boxzilla-box&page=boxzilla-settings | 1,010 | 1.71 | 25.21 | 37.00 |
Extensions /wp-admin/edit.php?post_type=boxzilla-box&page=boxzilla-extensions | 1,079 | 2.06 | 24.09 | 31.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 854 | 1,562 | 3,181 |
JavaScript | 4 | 420 | 268 | 1,283 |
Markdown | 1 | 258 | 0 | 244 |
CSS | 2 | 23 | 4 | 108 |
SVG | 1 | 0 | 0 | 3 |
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 code | 0.34 |
Average class complexity | 14.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 190 | |
▷ Static methods | 20 | 10.53% |
▷ Public methods | 160 | 84.21% |
▷ Protected methods | 24 | 12.63% |
▷ Private methods | 6 | 3.16% |
Functions | 28 | |
▷ Named functions | 5 | 17.86% |
▷ Anonymous functions | 23 | 82.14% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/menu-icon.png | 0.43KB | 0.54KB | 0.00% |