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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.79ms] Passed 4 tests
Server-side resources used by Shipping Rates Cities Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.49 ▼3.08 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.30 ▼0.90 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.06 ▼3.57 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 82.04 ▼23.60 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.60 ▲2.46 |
Server storage [IO: ▲3.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 369 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Shipping Rates Cities Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.27 ▼1.02 | 4.79 ▲3.06 | 46.90 ▼1.49 |
Dashboard /wp-admin | 2,212 ▲24 | 5.83 ▲0.93 | 96.67 ▼4.44 | 42.09 ▼2.15 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 1.97 ▼0.06 | 36.18 ▼1.84 | 35.76 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 23.39 ▲5.32 | 672.53 ▲63.62 | 53.55 ▼13.25 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.26 ▲0.08 | 96.72 ▼2.03 | 43.46 ▼0.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% 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 0% 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
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/markbaker/matrix/buildPhar.php
- > /wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/markbaker/matrix/examples/test.php
- > /wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/markbaker/complex/examples/testFunctions.php
- > /wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/markbaker/complex/examples/complexTest.php
- > /wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/markbaker/complex/examples/testOperations.php
- 96× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Dimension' not found in wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowDimension.php:5
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' not found in wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Gnumeric.php:23
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\IComparable' not found in wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Drawing/Shadow.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Style\\Supervisor' not found in wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Style.php:8
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\Chart\\Renderer\\IRenderer' not found in wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Renderer/JpGraph.php:10
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Exception' not found in wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Exception.php:7
- > PHP Fatal error
Uncaught Error: Class 'Matrix\\Operators\\Multiplication' not found in wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/markbaker/matrix/classes/src/Operators/Division.php:9
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\Reader\\IReadFilter' not found in wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/DefaultReadFilter.php:5
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\BestFit' not found in wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/LinearBestFit.php:5
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Writer\\BaseWriter' not found in wp-content/plugins/shipping-rates-cities-woocommerce/lib/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
shipping-rates-cities-woocommerce/shipping-rates-cities-woocommerce.php 92% from 13 tests
The main PHP file in "Shipping Rates Cities Woocommerce" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "2.6")
Code Analysis 95% from 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 plugin60,803 lines of code in 325 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 307 | 12,813 | 31,221 | 59,792 |
JSON | 4 | 0 | 0 | 501 |
Markdown | 8 | 99 | 0 | 348 |
YAML | 4 | 17 | 12 | 94 |
JavaScript | 2 | 8 | 0 | 68 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,016)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 44.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,016.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 44 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 220 | |
▷ Abstract classes | 16 | 7.27% |
▷ Concrete classes | 204 | 92.73% |
▷ Final classes | 0 | 0.00% |
Methods | 2,894 | |
▷ Static methods | 674 | 23.29% |
▷ Public methods | 2,260 | 78.09% |
▷ Protected methods | 86 | 2.97% |
▷ Private methods | 548 | 18.94% |
Functions | 84 | |
▷ Named functions | 66 | 78.57% |
▷ Anonymous functions | 18 | 21.43% |
Constants | 773 | |
▷ Global constants | 1 | 0.13% |
▷ Class constants | 772 | 99.87% |
▷ Public constants | 772 | 100.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
No PNG images were found in this plugin