Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had 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
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.49ms] Passed 4 tests
This is a short check of server-side resources used by WC - APG Free Shipping
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.13 ▲2.91 |
Dashboard /wp-admin | 3.31 ▼0.04 | 41.58 ▼17.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.61 ▲2.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 76.30 ▼9.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.26 ▲1.97 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WC - APG Free Shipping
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.30 ▼0.06 | 1.86 ▲0.20 | 43.81 ▲6.00 |
Dashboard /wp-admin | 2,189 ▲8 | 5.51 ▼0.20 | 87.42 ▼13.40 | 40.59 ▲2.37 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.06 | 41.12 ▲6.78 | 34.21 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 18.14 ▼4.89 | 598.53 ▼77.27 | 62.67 ▲6.57 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.01 | 92.71 ▼8.60 | 40.07 ▼5.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > 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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- 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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woocommerce-apg-free-postcodestatecountry-shipping/includes/cuadro-informacion.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/woocommerce-apg-free-postcodestatecountry-shipping/includes/formulario.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-apg-free-postcodestatecountry-shipping/includes/formulario.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-apg-free-postcodestatecountry-shipping/includes/formulario.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 14 tag instead of maximum 10
woocommerce-apg-free-postcodestatecountry-shipping/apg-free-shipping.php 85% from 13 tests
The main PHP file in "WC - APG Free Shipping" ver. 2.8.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-apg-free-postcodestatecountry-shipping.php" instead of "apg-free-shipping.php")
- Description: The description should be shorter than 140 characters (currently 633 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,057 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 102 | 81 | 825 |
CSS | 2 | 10 | 23 | 668 |
Markdown | 1 | 121 | 0 | 287 |
SVG | 2 | 0 | 0 | 270 |
JavaScript | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
Average class complexity | 113.00 |
▷ Minimum class complexity | 113.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 8.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin