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.04MB] [CPU: ▼0.91ms] Passed 4 tests
This is a short check of server-side resources used by Guatemala States and Cities for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.57 ▲0.49 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.34 ▼4.98 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.80 ▲0.71 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 99.55 ▲5.47 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.21 ▲0.12 |
Server storage [IO: ▲0.92MB] [DB: ▲0.06MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_dl_wc_gt_ciudad |
wp_dl_wc_gt_municipio |
wp_dl_wc_gt_departamento |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Guatemala States and Cities for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.14 ▼0.44 | 1.69 ▲0.17 | 38.15 ▼1.71 |
Dashboard /wp-admin | 2,189 ▲21 | 5.54 ▼0.04 | 85.35 ▼3.18 | 41.13 ▼2.64 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.03 | 38.82 ▲3.57 | 35.49 ▲3.78 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.52 ▲0.48 | 637.64 ▼34.39 | 58.10 ▲0.49 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▼0.03 | 93.84 ▼7.10 | 43.67 ▼0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/wc-guatemala/places/GT.php on line 19
- > PHP Fatal error
Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/wc-guatemala/places/GT.php:20
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/wc-guatemala/places/GT.php on line 18
- > PHP Fatal error
Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/wc-guatemala/states/GT.php:14
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/wc-guatemala/states/GT.php on line 13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wc-guatemala/wc-guatemala-departamentos-y-ciudades.php 85% from 13 tests
The principal PHP file in "Guatemala States and Cities for WooCommerce" v. 3.0.4 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-guatemala.php" instead of "wc-guatemala-departamentos-y-ciudades.php")
- Requires at least: Required version does not match the one declared in readme.txt ("5.8" instead of "5.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected7,097 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 5,504 |
PHP | 7 | 171 | 191 | 1,188 |
JavaScript | 2 | 58 | 16 | 328 |
PO File | 1 | 17 | 18 | 77 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 4 | 13.33% |
▷ Public methods | 26 | 86.67% |
▷ Protected methods | 1 | 3.33% |
▷ Private methods | 3 | 10.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.60MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 46.70KB | 18.44KB | ▼ 60.52% |
assets/screenshot-2.PNG | 23.89KB | 12.72KB | ▼ 46.76% |
assets/banner-1544x500.png | 129.17KB | 47.06KB | ▼ 63.57% |
assets/screenshot-6.PNG | 67.26KB | 31.61KB | ▼ 53.00% |
assets/screenshot-5.PNG | 116.30KB | 61.90KB | ▼ 46.77% |