Benchmarks
Plugin footprint 82% 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.46MB] [CPU: ▼289.20ms] 75% from 4 tests
This is a short check of server-side resources used by ACF City Selector
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,829.21ms on /wp-admin/admin.php?page=acfcs-countries)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.53 | 62.47 ▲4.29 |
Dashboard /wp-admin | 3.90 ▲0.49 | 39.88 ▲2.12 |
Posts /wp-admin/edit.php | 4.13 ▲0.48 | 55.41 ▲13.54 |
Add New Post /wp-admin/post-new.php | 7.37 ▲0.40 | 103.17 ▼1,157.59 |
Media Library /wp-admin/upload.php | 3.79 ▲0.48 | 29.51 ▼5.62 |
Info /wp-admin/admin.php?page=acfcs-info | 3.77 | 35.88 |
Preview data /wp-admin/admin.php?page=acfcs-preview | 3.76 | 28.01 |
City Selector /wp-admin/options-general.php?page=acfcs-dashboard | 3.77 | 30.79 |
Settings /wp-admin/admin.php?page=acfcs-settings | 3.76 | 29.95 |
Get countries /wp-admin/admin.php?page=acfcs-countries | 3.92 | 2,829.21 |
Search /wp-admin/admin.php?page=acfcs-search | 3.76 | 31.76 |
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, 1 new option
New tables |
---|
wp_cities |
New WordPress options |
---|
acfcs_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by ACF City Selector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,824 ▲70 | 15.72 ▲0.04 | 5.74 ▼2.52 | 2.94 ▲0.35 |
Dashboard /wp-admin | 2,919 ▲65 | 6.18 ▲0.01 | 121.04 ▼15.16 | 153.79 ▼13.77 |
Posts /wp-admin/edit.php | 2,713 ▲22 | 3.36 ▲0.01 | 67.77 ▲3.42 | 141.97 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,679 ▲18 | 16.22 ▲0.06 | 416.45 ▼7.87 | 162.83 ▲11.80 |
Media Library /wp-admin/upload.php | 1,726 ▲25 | 5.57 ▲0.03 | 144.70 ▲2.98 | 189.25 ▲0.42 |
Info /wp-admin/admin.php?page=acfcs-info | 1,908 | 2.54 | 54.56 | 147.95 |
Preview data /wp-admin/admin.php?page=acfcs-preview | 1,559 | 2.76 | 54.82 | 127.33 |
City Selector /wp-admin/options-general.php?page=acfcs-dashboard | 1,652 | 2.75 | 52.98 | 151.12 |
Settings /wp-admin/admin.php?page=acfcs-settings | 1,703 | 2.82 | 54.43 | 132.38 |
Get countries /wp-admin/admin.php?page=acfcs-countries | 2,634 | 2.87 | 55.06 | 155.31 |
Search /wp-admin/admin.php?page=acfcs-search | 1,560 | 2.81 | 53.31 | 128.18 |
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
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_cities
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)
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > 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:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-city-selector/inc/acfcs-actions.php:21
- > 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
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #1 in acf-city-selector/assets to your readme.txt
acf-city-selector/ACF_City_Selector.php 92% from 13 tests
"ACF City Selector" version 1.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to 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 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin5,320 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 553 | 734 | 3,342 |
PO File | 2 | 600 | 895 | 1,306 |
CSS | 2 | 92 | 16 | 390 |
JavaScript | 4 | 48 | 41 | 282 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 91.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 11.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.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 | 44 | |
▷ Static methods | 5 | 11.36% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 43 | 95.56% |
▷ Anonymous functions | 2 | 4.44% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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-128x128.png | 6.71KB | 3.13KB | ▼ 53.32% |
assets/screenshot-1.png | 210.79KB | 53.60KB | ▼ 74.57% |
assets/banner-772x250.png | 28.64KB | 11.03KB | ▼ 61.48% |
assets/icon-256x256.png | 8.01KB | 4.29KB | ▼ 46.40% |
assets/banner-1544x500.png | 48.14KB | 19.37KB | ▼ 59.76% |