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 gracefully, with no errors
Server metrics [RAM: ▼1.45MB] [CPU: ▼51.18ms] Passed 4 tests
Analyzing server-side resources used by Zanto Country Detector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.59 ▼0.91 | 12.44 ▼32.99 |
Dashboard /wp-admin | 2.60 ▼0.78 | 14.36 ▼48.81 |
Posts /wp-admin/edit.php | 2.60 ▼0.79 | 15.08 ▼33.77 |
Add New Post /wp-admin/post-new.php | 2.60 ▼3.32 | 15.10 ▼89.13 |
Media Library /wp-admin/upload.php | 2.60 ▼0.66 | 14.33 ▼17.89 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: no files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_zcdp_multilingual_ls |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Zanto Country Detector
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.06 | 4.54 ▲2.66 | 38.20 ▼4.37 |
Dashboard /wp-admin | 2,203 ▲18 | 5.84 ▼0.01 | 96.85 ▼1.80 | 38.57 ▼6.25 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.04 | 39.45 ▼0.51 | 34.28 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,514 ▼14 | 17.70 ▼0.38 | 681.80 ▲59.18 | 52.53 ▲2.43 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.04 | 96.38 ▼6.20 | 41.16 ▼0.23 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Country_Detector_Widget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_zcdp_multilingual_ls
- widget_theysaidso_widget
- db_upgraded
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 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
Almost there! Just fix the following items
- 2× 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/zanto-country-detector/inc/country-redirect.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/zanto-country-detector/zanto-country-detector.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: redirect, i18n, country detector, geo, l10n...
zanto-country-detector/zanto-country-detector.php 85% from 13 tests
This is the main PHP file of "Zanto Country Detector" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected706 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 88 | 67 | 339 |
Pascal | 1 | 46 | 1,565 | 280 |
PO File | 1 | 18 | 20 | 56 |
JavaScript | 1 | 6 | 8 | 31 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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