Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/woocommerce/woocommerce.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.68ms] Passed 4 tests
Analyzing server-side resources used by WC - APG Weight Shipping
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 32.99 ▼6.83 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.39 ▼0.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.31 ▲1.63 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.79 ▼23.27 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.04 ▲0.20 |
Server storage [IO: ▲1.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
WC - APG Weight Shipping: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.37 ▼1.06 | 4.18 ▲2.41 | 41.18 ▼5.95 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▼0.01 | 106.95 ▼12.32 | 39.49 ▼5.37 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 44.96 ▲6.74 | 32.63 ▼2.24 |
Add New Post /wp-admin/post-new.php | 1,514 ▼15 | 17.73 ▼0.61 | 651.13 ▼4.33 | 51.38 ▼7.72 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.21 ▲0.05 | 95.30 ▼12.13 | 43.06 ▼1.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/functions.php+6691
file_get_contents(wp-content/plugins/woocommerce/woocommerce.php): failed to open stream: No such file or directory
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/includes/formulario.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/includes/cuadro-informacion.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/includes/formulario.php on line 3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/includes/formulario.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
woocommerce-apg-weight-and-postcodestatecountry-shipping/apg-shipping.php 85% from 13 tests
Analyzing the main PHP file in "WC - APG Weight Shipping" version 2.6.0.1
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 614 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-apg-weight-and-postcodestatecountry-shipping.php" instead of "apg-shipping.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,464 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 131 | 120 | 1,063 |
CSS | 2 | 10 | 22 | 665 |
Markdown | 1 | 181 | 0 | 459 |
SVG | 2 | 0 | 0 | 270 |
JavaScript | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.72 |
Average class complexity | 203.00 |
▷ Minimum class complexity | 203.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 13.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin