Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.31ms] Passed 4 tests
An overview of server-side resources used by ShipBob Express Rates
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.47 ▼3.81 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.31 ▼17.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.38 ▲0.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.24 ▼11.97 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 42.42 ▲6.10 |
Server storage [IO: ▲3.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for ShipBob Express Rates
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.25 ▲0.02 | 1.87 ▲0.21 | 40.97 ▼3.51 |
Dashboard /wp-admin | 2,198 ▲24 | 5.60 ▼0.08 | 92.33 ▼5.11 | 38.09 ▼5.18 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▼0.04 | 38.63 ▲4.03 | 36.27 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼12 | 23.27 ▲5.05 | 636.08 ▲25.51 | 61.71 ▼13.91 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▼0.04 | 102.89 ▲2.42 | 41.30 ▼2.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/shipbob-express-rates/templates/admin/notice.php:9
- > PHP Fatal error
Uncaught Error: Class 'ShipBob\\WooRates\\Controllers\\Controller' not found in wp-content/plugins/shipbob-express-rates/app/Controllers/AdminController.php:14
- > PHP Fatal error
Uncaught Error: Class 'ShipBob\\WooRates\\Shipping\\ShippingMethod' not found in wp-content/plugins/shipbob-express-rates/app/Shipping/ShipBobMethod.php:17
- > PHP Fatal error
Uncaught Error: Class 'ShipBob\\WooRates\\Services\\Service' not found in wp-content/plugins/shipbob-express-rates/app/Services/Settings.php:17
- > PHP Fatal error
Uncaught Error: Class 'ShipBob\\WooRates\\Api\\HttpClient' not found in wp-content/plugins/shipbob-express-rates/app/Api/Orders.php:14
- > PHP Fatal error
Uncaught Error: Class 'ShipBob\\WooRates\\Services\\Service' not found in wp-content/plugins/shipbob-express-rates/app/Services/Paths.php:14
- > PHP Fatal error
Uncaught Error: Class 'ShipBob\\WooRates\\Controllers\\Controller' not found in wp-content/plugins/shipbob-express-rates/app/Controllers/PluginController.php:14
- > PHP Fatal error
Uncaught Error: Class 'ShipBob\\WooRates\\Api\\HttpClient' not found in wp-content/plugins/shipbob-express-rates/app/Api/Rates.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/shipbob-express-rates/templates/admin/terms.php:13
- > PHP Fatal error
Uncaught Error: Class 'ShipBob\\WooRates\\Services\\Service' not found in wp-content/plugins/shipbob-express-rates/app/Services/Assets.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The ShipBob Express settings panel.), #2 (Example of rates shown shipping methods in cart/checkout), #3 (ShipBob Express shipping method settings in Woocommerce)
shipbob-express-rates/plugin.php 85% from 13 tests
The entry point to "ShipBob Express Rates" version 2.1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("shipbob-express-rates.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected5,622 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 4,215 |
PHP | 23 | 428 | 1,140 | 1,167 |
Sass | 1 | 43 | 2 | 208 |
JavaScript | 2 | 14 | 10 | 25 |
JSON | 2 | 0 | 0 | 6 |
CSS | 1 | 0 | 3 | 1 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 3 | 15.79% |
▷ Concrete classes | 16 | 84.21% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 3 | 2.94% |
▷ Public methods | 91 | 89.22% |
▷ Protected methods | 11 | 10.78% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 14 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 16.70KB | 5.80KB | ▼ 65.25% |
screenshot-3.png | 95.90KB | 42.31KB | ▼ 55.88% |
screenshot-1.png | 87.39KB | 40.37KB | ▼ 53.80% |