Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.58ms] Passed 4 tests
A check of server-side resources used by IP Loc8
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.53 ▲0.98 |
Dashboard /wp-admin | 3.33 ▲0.02 | 63.59 ▲0.59 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.36 ▼2.83 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.70 ▼9.05 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.66 ▲3.88 |
IP Location /wp-admin/options-general.php?page=iploc8_settings | 3.21 | 37.07 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for IP Loc8
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.48 ▼0.20 | 2.01 ▲0.45 | 43.28 ▲0.71 |
Dashboard /wp-admin | 2,225 ▲19 | 4.84 ▼1.04 | 108.00 ▲0.43 | 43.07 ▼2.72 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.04 ▲0.04 | 41.87 ▲1.69 | 39.41 ▲6.89 |
Add New Post /wp-admin/post-new.php | 1,547 ▲2 | 23.24 ▲0.01 | 685.47 ▲82.28 | 53.15 ▼30.51 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.15 ▼0.00 | 114.33 ▼7.06 | 47.34 ▼6.21 |
IP Location /wp-admin/options-general.php?page=iploc8_settings | 849 | 2.08 | 28.41 | 35.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% 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 0% 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 take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ip-loc8/classes/class.geolocator.php
- > /wp-content/plugins/ip-loc8/classes/class.init.php
- > /wp-content/plugins/ip-loc8/classes/class.admin.php
- > /wp-content/plugins/ip-loc8/classes/class.locator.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ip-loc8/ip-loc8.php:14
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: qtranslate, geolocation, ip geolocation
ip-loc8/ip-loc8.php Passed 13 tests
The main file in "IP Loc8" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
This plugins provides city and country info based on the user IP address
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin382 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 84 | 132 | 382 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 23 | 92.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
No PNG images were found in this plugin