Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.90ms] Passed 4 tests
An overview of server-side resources used by Wanderlust OCA Shipping
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 42.82 ▼0.33 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.91 ▼3.04 |
Posts /wp-admin/edit.php | 3.42 ▲0.05 | 44.15 ▼5.65 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.70 ▼2.58 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 36.00 ▲2.52 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wanderlust OCA Shipping
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,782 ▲20 | 14.65 ▲0.37 | 1.12 ▼0.68 | 46.48 ▲2.42 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.10 | 88.79 ▼12.60 | 43.16 ▼1.11 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.09 ▲0.12 | 36.58 ▼1.36 | 31.64 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 25.03 ▲2.22 | 637.87 ▼38.74 | 74.25 ▲6.58 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▼0.12 | 100.27 ▼8.16 | 42.57 ▼0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wanderlust-oca-e-pak-shipping-rates/includes/functions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wanderlust-oca-e-pak-shipping-rates/wanderlust-oca-shipping.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wanderlust-oca-e-pak-shipping-rates/includes/data/services.php:2
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: shipping, oca, woocommerce, rates
wanderlust-oca-e-pak-shipping-rates/wanderlust-oca-shipping.php 92% from 13 tests
The entry point to "Wanderlust OCA Shipping" version 1.1.993 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wanderlust-oca-e-pak-shipping-rates.php" instead of "wanderlust-oca-shipping.php")
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
Good job! No executable or dangerous file extensions detected1,417 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 310 | 403 | 1,417 |
PHP code Passed 2 tests
Analyzing 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.34 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 89.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.91% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/suc-oca.png | 4.52KB | 2.67KB | ▼ 40.96% |