Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.02ms] Passed 4 tests
A check of server-side resources used by IP2Location Variables
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.21 ▲1.22 |
Dashboard /wp-admin | 3.32 ▼0.02 | 50.58 ▼14.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.80 ▼2.58 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.89 ▼22.96 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.42 ▼0.43 |
IP2Location Variables /wp-admin/options-general.php?page=ip2location-variables | 3.91 | 42.38 |
Server storage [IO: ▲3.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
ip2location_variables_database |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
IP2Location Variables: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲52 | 14.34 ▼0.37 | 1.51 ▼0.25 | 42.82 ▼4.49 |
Dashboard /wp-admin | 2,201 ▲24 | 5.55 ▼0.11 | 97.73 ▼5.69 | 42.88 ▼6.47 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.04 ▲0.09 | 39.59 ▲0.22 | 35.06 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.18 ▼0.54 | 652.10 ▲16.79 | 53.74 ▲0.33 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.26 ▲0.10 | 103.03 ▼11.05 | 45.17 ▲1.54 |
IP2Location Variables /wp-admin/options-general.php?page=ip2location-variables | 1,631 | 2.07 | 30.96 | 36.07 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- ip2location_variables_database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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 no errors were found, this is by no means 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 fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Exception: IP2Location\\WebService: OK in wp-content/plugins/ip2location-variables/vendor/ip2location/ip2location-php/IP2Location.php:2203
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ip2location-variables/ip2location-variables.php:27
- > PHP Fatal error
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)
Everything seems fine on the user side
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
9 plugin tags: php library, geolocation, ip2location library, ip2location, geo-targeting...
ip2location-variables/ip2location-variables.php Passed 13 tests
The entry point to "IP2Location Variables" version 2.9.0 is a PHP file that has certain tags in its header comment area
134 characters long description:
A library that enables you to use IP2Location variables to display and customize the contents by country in pages, plugins, or themes.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .bin - Binary Executable in Windows, macOS, Linux
- ☣ wp-content/plugins/ip2location-variables/vendor/ip2location/ip2location-php/databases/IP2LOCATION-LITE-DB1.BIN
- ☣ wp-content/plugins/ip2location-variables/IP2LOCATION-LITE-DB1.BIN
- .bin - Binary Executable in Windows, macOS, Linux
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 665 | 1,152 | 2,538 |
Markdown | 1 | 32 | 0 | 77 |
JSON | 2 | 0 | 0 | 71 |
JavaScript | 2 | 15 | 0 | 71 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 44.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 25 | 23.81% |
▷ Public methods | 71 | 67.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 34 | 32.38% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 53 | |
▷ Global constants | 2 | 3.77% |
▷ Class constants | 51 | 96.23% |
▷ Public constants | 51 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin