Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.62MB] [CPU: ▼186.34ms] Passed 4 tests
An overview of server-side resources used by Client IP Detector Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.01 ▼0.83 | 10.14 ▼24.90 |
Dashboard /wp-admin | 2.03 ▼1.03 | 11.75 ▼33.85 |
Posts /wp-admin/edit.php | 2.03 ▼1.08 | 10.54 ▼51.12 |
Add New Post /wp-admin/post-new.php | 2.03 ▼3.40 | 10.63 ▼635.47 |
Media Library /wp-admin/upload.php | 2.03 ▼0.97 | 11.60 ▼22.34 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 3 new options
New WordPress options |
---|
IPv6_counter |
IPv4_counter |
widget_client-ip-detector-widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Client IP Detector Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.83 ▼0.14 | 10.28 ▼0.99 | 47.20 ▼2.60 |
Dashboard /wp-admin | 2,973 ▲36 | 5.92 ▼0.24 | 144.54 ▼13.42 | 108.95 ▼11.25 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 73.67 ▼25.81 | 84.04 ▼19.81 |
Add New Post /wp-admin/post-new.php | 1,676 ▼7 | 18.92 ▲0.10 | 412.80 ▲7.23 | 109.16 ▼3.10 |
Media Library /wp-admin/upload.php | 1,810 ▲59 | 5.00 ▲0.02 | 147.23 ▼0.24 | 115.37 ▼6.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method Client_IP_Detector_Widget::register() should not be called statically
- This plugin does not fully uninstall, leaving 3 options in the database
- widget_client-ip-detector-widget
- IPv6_counter
- IPv4_counter
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/client-ip-detector/client-ip-detector.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (ScreenShot of placed client-ip-detector on a WordPress powered WebSite. (Widget Output.jpg))
client-ip-detector/client-ip-detector.php Passed 13 tests
"Client IP Detector Plugin" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
100 characters long description:
A Simple widget to display client IP Address and print if the client is connecting via IPv6 or IPv4.
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
Good job! No executable or dangerous file extensions detected85 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 9 | 85 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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