Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.89ms] Passed 4 tests
Analyzing server-side resources used by Geargag Advanced Shipping for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.39 ▲0.01 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.94 ▼8.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.57 ▲4.55 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.30 ▼7.58 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.54 ▲4.03 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Geargag Advanced Shipping for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.44 ▼1.19 | 1.76 ▲0.00 | 42.53 ▼0.80 |
Dashboard /wp-admin | 2,239 ▲48 | 5.94 ▲0.90 | 96.67 ▼8.17 | 39.51 ▼1.18 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 2.24 ▲0.26 | 41.22 ▲0.71 | 37.25 ▲1.69 |
Add New Post /wp-admin/post-new.php | 1,530 ▼12 | 23.40 ▲5.13 | 656.61 ▲26.37 | 51.40 ▼15.67 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.32 ▲0.14 | 96.98 ▼2.58 | 42.18 ▼5.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Geargag_Advanced_Shipping\\tools\\contracts\\Bootable' not found in wp-content/plugins/geargag-advanced-shipping-for-woocommerce/tools/contracts/Enqueueable.php:10
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/geargag-advanced-shipping-for-woocommerce/tools/Shipping_Base.php:9
- > PHP Fatal error
Uncaught Error: Class 'Geargag_Advanced_Shipping\\tools\\Shipping_Base' not found in wp-content/plugins/geargag-advanced-shipping-for-woocommerce/shipping/Advanced_Shipping.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Geargag_Advanced_Shipping\\tools\\contracts\\Bootable' not found in wp-content/plugins/geargag-advanced-shipping-for-woocommerce/shipping/Shipping.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
- Requires at least: Version format is invalid
- Tested up to: Version format is invalid
geargag-advanced-shipping-for-woocommerce/index.php 85% from 13 tests
The entry point to "Geargag Advanced Shipping for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 407 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("geargag-advanced-shipping-for-woocommerce.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin1,889 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 286 | 263 | 1,823 |
SVG | 1 | 0 | 0 | 55 |
JSON | 1 | 0 | 0 | 8 |
CSS | 2 | 2 | 2 | 2 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 11.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 3 | 25.00% |
▷ Concrete classes | 9 | 75.00% |
▷ Final classes | 1 | 11.11% |
Methods | 84 | |
▷ Static methods | 5 | 5.95% |
▷ Public methods | 79 | 94.05% |
▷ Protected methods | 3 | 3.57% |
▷ Private methods | 2 | 2.38% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 21 | |
▷ Global constants | 12 | 57.14% |
▷ Class constants | 9 | 42.86% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin