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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.54ms] Passed 4 tests
Server-side resources used by IPLocationTools
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.18 ▼0.98 |
Dashboard /wp-admin | 3.32 ▼0.03 | 49.74 ▼12.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.04 ▼0.04 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.89 ▼11.91 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.04 ▼0.67 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
IPLocationTools: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲51 | 14.27 ▲0.09 | 1.68 ▼0.01 | 44.80 ▼0.56 |
Dashboard /wp-admin | 2,196 ▲18 | 5.54 ▼0.14 | 87.99 ▼17.79 | 39.77 ▼5.74 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▲0.01 | 35.45 ▼4.95 | 34.49 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.34 ▲0.10 | 687.87 ▼23.66 | 52.00 ▼1.27 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.22 ▲0.06 | 112.24 ▲10.85 | 48.31 ▲5.50 |
IPLocationTools /wp-admin/IPLocationTools.php | 26 | 0.41 | 0.08 | 13.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > 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 just a short smoke test looking for browser issues
There are user-side issues you should fix
- > 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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== iplocationtools-real-time-visitor-widget ===
) - Tags: You are using too many tags: 15 tag instead of maximum 10
- Screenshots: Add an image for screenshot #1 (IPLocationTools sidebar widget)
iplocationtools-real-time-visitor-widget/IPLocationTools.php 85% from 13 tests
"IPLocationTools" version 1.1.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: A good plugin description is longer than 10 characters (currently 0 characters long)
- Main file name: The principal 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 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin523 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 short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin