Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼300.64ms] Passed 4 tests
A check of server-side resources used by IPLocationTools
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.14 | 54.63 ▲4.64 |
Dashboard /wp-admin | 3.53 ▲0.12 | 32.10 ▼3.13 |
Posts /wp-admin/edit.php | 3.75 ▲0.11 | 35.53 ▼3.83 |
Add New Post /wp-admin/post-new.php | 7.00 ▲0.03 | 93.39 ▼1,188.12 |
Media Library /wp-admin/upload.php | 3.41 ▲0.10 | 23.65 ▼7.49 |
Server storage [IO: ▲0.10MB] [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, no new options
Browser metrics Passed 4 tests
IPLocationTools: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,772 ▲50 | 15.80 ▲0.20 | 5.88 ▲0.33 | 2.31 ▼0.03 |
Dashboard /wp-admin | 2,894 ▲43 | 6.03 ▼0.02 | 118.58 ▼18.35 | 155.70 ▼2.07 |
Posts /wp-admin/edit.php | 2,696 ▲8 | 3.35 ▼0.00 | 64.05 ▲0.30 | 143.93 ▲2.06 |
Add New Post /wp-admin/post-new.php | 1,664 ▼109 | 16.52 ▼5.54 | 412.39 ▼53.07 | 150.74 ▼11.29 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.50 ▲0.04 | 139.84 ▲0.89 | 180.18 ▼5.38 |
IPLocationTools /wp-admin/IPLocationTools.php | 26 | 0.94 | 0.04 | 21.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
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 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
- 1× 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/iplocationtools-real-time-visitor-widget/IPLocationTools.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/IPLocationTools.php
- > Network (severe)
wp-admin/IPLocationTools.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== iplocationtools-real-time-visitor-widget ===
) - Tags: Please delete some tags, you are using 15 tag instead of maximum 10
- Screenshots: Screenshot #1 (IPLocationTools sidebar widget) image missing
iplocationtools-real-time-visitor-widget/IPLocationTools.php 85% from 13 tests
The primary PHP file in "IPLocationTools" version 1.1.10 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: A good plugin description is longer than 10 characters (currently 0 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("iplocationtools-real-time-visitor-widget.php" instead of "IPLocationTools.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected523 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 44 | 11 | 463 |
JavaScript | 1 | 9 | 0 | 60 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin