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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.95ms] Passed 4 tests
An overview of server-side resources used by Bob Go smart shipping solution
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 43.65 ▲3.36 |
Dashboard /wp-admin | 3.43 ▲0.08 | 49.27 ▼15.64 |
Posts /wp-admin/edit.php | 3.55 ▲0.18 | 47.41 ▼1.42 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 85.64 ▼6.10 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.64 ▲3.80 |
Bob Go /wp-admin/options-general.php?page=uafrica-shipping | 3.34 | 34.71 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
uafrica |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Bob Go smart shipping solution
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.10 ▼0.52 | 2.23 ▲0.41 | 43.39 ▼1.80 |
Dashboard /wp-admin | 2,202 ▲24 | 5.58 ▼0.14 | 90.75 ▼25.21 | 41.67 ▼1.55 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.03 ▼0.00 | 35.41 ▼0.63 | 33.31 ▼2.98 |
Add New Post /wp-admin/post-new.php | 6,367 ▲4,829 | 27.68 ▲4.46 | 948.81 ▲264.42 | 52.24 ▼9.21 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.22 ▲0.04 | 112.47 ▲10.45 | 48.11 ▲0.11 |
Bob Go /wp-admin/options-general.php?page=uafrica-shipping | 828 | 2.00 | 27.39 | 26.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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 | 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
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/uafrica-shipping/uninstall.php:3
- > PHP Warning
Use of undefined constant UAFRICA_SHIPPING_URL - assumed 'UAFRICA_SHIPPING_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/uafrica-shipping/app/templates/settings-page.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php:20
- > PHP Notice
Undefined variable: atts in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php on line 8
- > PHP Notice
Undefined variable: atts in wp-content/plugins/uafrica-shipping/app/templates/shipping-template.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/uafrica-shipping/app/class-shipping.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function uAfrica_Shipping\\plugin_dir_path() in wp-content/plugins/uafrica-shipping/uafrica-shipping.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: shipping, fulfilment, gutenberg blocks, blocks, gutenberg...
uafrica-shipping/uafrica-shipping.php 92% from 13 tests
"Bob Go smart shipping solution" version 2.5.21's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.0.0" instead of "7.0")
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
Everything looks great! No dangerous files found in this plugin1,711 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 177 | 393 | 970 |
JavaScript | 6 | 41 | 45 | 423 |
Sass | 2 | 26 | 2 | 135 |
PO File | 1 | 30 | 36 | 78 |
Markdown | 2 | 29 | 0 | 76 |
SVG | 3 | 0 | 1 | 25 |
JSON | 3 | 0 | 0 | 3 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 30 | 61.22% |
▷ Public methods | 40 | 81.63% |
▷ Protected methods | 8 | 16.33% |
▷ Private methods | 1 | 2.04% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 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
PNG images were not found in this plugin