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
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼11.85ms] Passed 4 tests
An overview of server-side resources used by RY WC City Select
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.12 ▼2.35 |
Dashboard /wp-admin | 3.35 ▲0.05 | 52.70 ▼8.71 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 48.38 ▼8.59 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 90.80 ▼27.76 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.85 ▲5.25 |
Server storage [IO: ▲2.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for RY WC City Select
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.69 ▼0.82 | 1.98 ▲0.38 | 42.96 ▼8.85 |
Dashboard /wp-admin | 2,209 ▲27 | 4.84 ▼1.05 | 101.56 ▼23.28 | 42.44 ▼6.79 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.05 ▲0.02 | 39.48 ▼4.19 | 34.06 ▼18.23 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.34 ▲0.03 | 676.90 ▼56.80 | 65.10 ▲4.75 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▲0.03 | 108.86 ▼6.13 | 47.47 ▼1.45 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ry-wc-city-select/ry-wc-city-select.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/ry-wc-city-select/cities/KW.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ry-wc-city-select/states/TW.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/ry-wc-city-select/cities/RO.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ry-wc-city-select/states/KW.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/ry-wc-city-select/cities/TW.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: select, city, dropdown, woocommerce
ry-wc-city-select/ry-wc-city-select.php Passed 13 tests
This is the main PHP file of "RY WC City Select" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
99 characters long description:
Show a dropdown select as the cities input on WooCommerce. Auto set the postcode for selected city.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin14,949 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 51 | 25 | 14,780 |
JavaScript | 1 | 27 | 7 | 169 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 14 | |
▷ Static methods | 3 | 21.43% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 2 | 14.29% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin