Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼295.83ms] Passed 4 tests
A check of server-side resources used by Checkbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.33 | 72.85 ▲4.62 |
Dashboard /wp-admin | 3.69 ▲0.28 | 41.07 ▼3.46 |
Posts /wp-admin/edit.php | 3.91 ▲0.26 | 43.35 ▼9.91 |
Add New Post /wp-admin/post-new.php | 7.21 ▲0.24 | 121.80 ▼1,174.55 |
Media Library /wp-admin/upload.php | 3.62 ▲0.33 | 57.46 ▲23.59 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Checkbox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,902 ▲148 | 16.03 ▲0.41 | 9.62 ▼1.17 | 3.50 ▼0.39 |
Dashboard /wp-admin | 3,008 ▲125 | 6.50 ▲0.13 | 191.12 ▼10.26 | 259.82 ▲50.98 |
Posts /wp-admin/edit.php | 2,691 ▲18 | 3.43 ▲0.00 | 78.32 ▼5.88 | 171.65 ▼11.40 |
Add New Post /wp-admin/post-new.php | 1,635 ▼0 | 16.84 ▲0.58 | 708.44 ▲58.99 | 192.35 ▼17.60 |
Media Library /wp-admin/upload.php | 1,692 ▼3 | 5.74 ▲0.02 | 215.93 ▲30.90 | 298.21 ▲42.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/checkbox/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/checkbox/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/checkbox/vendor/psr/log/Psr/Log/Test/TestLogger.php:57
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/checkbox/vendor/katzgrau/klogger/src/Logger.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/checkbox/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/checkbox/vendor/katzgrau/klogger/tests/LoggerTest.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: checkbox, woocommerce
checkbox/checkbox.php 92% from 13 tests
The main PHP file in "Checkbox" ver. 0.8.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,009 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 500 | 1,137 | 2,304 |
Markdown | 3 | 137 | 0 | 335 |
JSON | 3 | 0 | 0 | 172 |
SVG | 2 | 0 | 1 | 131 |
JavaScript | 2 | 2 | 1 | 26 |
CSS | 3 | 5 | 19 | 23 |
XML | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 16 | |
▷ Abstract classes | 2 | 12.50% |
▷ Concrete classes | 14 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 19 | 14.84% |
▷ Public methods | 119 | 92.97% |
▷ Protected methods | 3 | 2.34% |
▷ Private methods | 6 | 4.69% |
Functions | 26 | |
▷ Named functions | 21 | 80.77% |
▷ Anonymous functions | 5 | 19.23% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/img/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/img/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |