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 gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.99ms] Passed 4 tests
Analyzing server-side resources used by IP Geolocation info
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.79 ▼3.11 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.60 ▼9.10 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 48.02 ▼0.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.67 ▼18.66 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.25 ▼1.09 |
IP Geolocation Info settings /wp-admin/options-general.php?page=ip-geolocation-info | 3.24 | 30.34 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for IP Geolocation info
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲180 | 15.71 ▲1.33 | 15.90 ▲14.22 | 35.42 ▼8.00 |
Dashboard /wp-admin | 2,210 ▲25 | 4.86 ▼0.02 | 106.93 ▲2.13 | 40.81 ▼3.54 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.05 ▲0.05 | 39.00 ▲2.67 | 35.74 ▲3.91 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.40 ▲0.12 | 576.26 ▼84.87 | 47.83 ▼5.57 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.30 ▲0.17 | 96.35 ▼21.56 | 41.36 ▼6.98 |
IP Geolocation Info settings /wp-admin/options-general.php?page=ip-geolocation-info | 792 | 2.06 | 25.94 | 28.95 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ip-geolocation-info/ip-geolocation-info.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ip-geolocation-info/src/WhoisXmlApiCom_Geoip_Plugin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: geolocation, whoisxmlapi, content, ip, comments...
ip-geolocation-info/ip-geolocation-info.php Passed 13 tests
The main PHP script in "IP Geolocation info" version 1.0.1 is automatically included on every request by WordPress
63 characters long description:
Add IP geolocation tooltips to the comments and article content
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,943 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 733 | 1,214 | 2,368 |
CSS | 3 | 63 | 44 | 325 |
PHP | 3 | 57 | 13 | 250 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 3 | 15.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected