Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼3.43ms] 75% from 4 tests
This is a short check of server-side resources used by ACF City Selector
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 1,302.80ms on /wp-admin/admin.php?page=acfcs-countries)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 41.57 ▼5.23 |
Dashboard /wp-admin | 3.80 ▲0.50 | 53.15 ▼1.48 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 54.14 ▲5.96 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.52 | 95.19 ▼11.50 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 41.89 ▲4.50 |
Get countries /wp-admin/admin.php?page=acfcs-countries | 3.80 | 1,302.80 |
Info /wp-admin/admin.php?page=acfcs-info | 3.71 | 40.12 |
Preview data /wp-admin/admin.php?page=acfcs-preview | 3.70 | 36.18 |
Settings /wp-admin/admin.php?page=acfcs-settings | 3.70 | 38.47 |
Search /wp-admin/admin.php?page=acfcs-search | 3.70 | 35.25 |
City Selector /wp-admin/options-general.php?page=acfcs-dashboard | 3.70 | 37.29 |
Server storage [IO: ▲1.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 45 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cities |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
acfcs_db_version |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
ACF City Selector: 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,810 ▲49 | 14.39 ▲0.03 | 1.84 ▼0.29 | 43.02 ▼0.94 |
Dashboard /wp-admin | 2,214 ▲40 | 5.67 ▲0.08 | 86.89 ▼9.43 | 41.83 ▼5.55 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.02 ▲0.03 | 41.01 ▲1.14 | 37.57 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,553 ▲19 | 18.04 ▼0.09 | 609.18 ▼46.36 | 73.43 ▲4.00 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.30 ▲0.06 | 103.36 ▼13.52 | 45.28 ▼4.37 |
Get countries /wp-admin/admin.php?page=acfcs-countries | 1,813 | 1.84 | 27.43 | 41.85 |
Info /wp-admin/admin.php?page=acfcs-info | 1,343 | 1.82 | 25.79 | 34.06 |
Preview data /wp-admin/admin.php?page=acfcs-preview | 1,132 | 1.81 | 24.45 | 31.49 |
Settings /wp-admin/admin.php?page=acfcs-settings | 1,225 | 1.83 | 23.87 | 30.48 |
Search /wp-admin/admin.php?page=acfcs-search | 1,132 | 1.81 | 26.02 | 30.23 |
City Selector /wp-admin/options-general.php?page=acfcs-dashboard | 1,196 | 1.93 | 25.07 | 39.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_cities
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-city-selector/inc/acfcs-help-tabs.php:110
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-city-selector/inc/acfcs-actions.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-city-selector/inc/form-handling.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-city-selector/inc/acfcs-ajax.php:57
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add a description for screenshot #1 in acf-city-selector/assets to your readme.txt
acf-city-selector/ACF_City_Selector.php 92% from 13 tests
The entry point to "ACF City Selector" version 1.11.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("acf-city-selector.php" instead of "ACF_City_Selector.php")
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
There were no executable files found in this plugin5,385 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 556 | 756 | 3,395 |
PO File | 2 | 610 | 923 | 1,318 |
CSS | 2 | 92 | 16 | 390 |
JavaScript | 4 | 48 | 41 | 282 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 93.40 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 11.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 4 | 8.89% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 46 | 95.83% |
▷ Anonymous functions | 2 | 4.17% |
Constants | 2 | |
▷ Global constants | 2 | 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
5 PNG files occupy 0.30MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 8.01KB | 4.29KB | ▼ 46.40% |
assets/banner-772x250.png | 28.64KB | 11.03KB | ▼ 61.48% |
assets/banner-1544x500.png | 48.14KB | 19.37KB | ▼ 59.76% |
assets/screenshot-1.png | 210.79KB | 53.60KB | ▼ 74.57% |
assets/icon-128x128.png | 6.71KB | 3.13KB | ▼ 53.32% |