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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼11.48ms] Passed 4 tests
A check of server-side resources used by Country Caching Extension
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 45.13 ▼4.92 |
Dashboard /wp-admin | 3.32 ▼0.02 | 52.09 ▼13.05 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.98 ▼2.15 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.94 ▼25.80 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.73 ▲3.02 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
CCZC_VERSION |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
cczc_caching_options |
Browser metrics Passed 4 tests
A check of browser resources used by Country Caching Extension
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.51 ▼0.03 | 2.16 ▲0.45 | 44.18 ▲4.41 |
Dashboard /wp-admin | 2,214 ▲43 | 5.55 ▼0.11 | 85.59 ▼5.91 | 40.80 ▼5.82 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.03 ▲0.01 | 35.55 ▼4.40 | 33.66 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.13 ▼0.17 | 701.43 ▲13.80 | 48.53 ▼2.76 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.21 ▲0.03 | 97.57 ▼13.55 | 45.26 ▼2.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/country-caching-extension/inc/cczc_settings_form.php+104
unlink(wp-content/ac-plugins/cca_qc_geoip_plugin.php): No such file or directory
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/country-caching-extension/caching_plugins/cca_qc_geoip_plugin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
9 plugin tags: geo-location, location, cache, caching, geoip...
country-caching-extension/country_cache_zen.php 92% from 13 tests
This is the main PHP file of "Country Caching Extension" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("country-caching-extension.php" instead of "country_cache_zen.php")
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
Everything looks great! No dangerous files found in this plugin2,446 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 275 | 226 | 1,490 |
Pascal | 4 | 145 | 4,698 | 919 |
CSS | 1 | 6 | 0 | 37 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 39.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 167.00 |
Average method complexity | 5.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 1 | 1.69% |
▷ Public methods | 31 | 52.54% |
▷ Protected methods | 6 | 10.17% |
▷ Private methods | 22 | 37.29% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin