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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.65ms] Passed 4 tests
A check of server-side resources used by IP2Phrase
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.98 ▼4.00 |
Dashboard /wp-admin | 3.32 ▲0.01 | 44.57 ▲0.32 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.77 ▼4.26 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.27 ▲1.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.25 ▲3.84 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for IP2Phrase
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲32 | 14.37 ▲0.12 | 1.99 ▲0.18 | 44.58 ▲2.38 |
Dashboard /wp-admin | 2,199 ▲29 | 5.60 ▼0.04 | 85.53 ▼15.87 | 37.16 ▼4.10 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.96 ▼0.00 | 36.48 ▼4.96 | 35.07 ▼4.20 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.51 ▲0.47 | 601.69 ▼106.26 | 47.71 ▼11.28 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.05 | 94.66 ▼23.05 | 42.98 ▼3.59 |
IP2Phrase /wp-admin/IP2Phrase.php | 26 | 0.41 | 0.08 | 13.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
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)
Everything seems fine, however 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
- 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/ip2phrase-widget/IP2Phrase.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/IP2Phrase.php
- > Network (severe)
wp-admin/IP2Phrase.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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Screenshot #1 (Tags available) image required
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== ip2phrase-widget ===
)
ip2phrase-widget/IP2Phrase.php 85% from 13 tests
The primary PHP file in "IP2Phrase" version 1.0.14 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: A good plugin description is longer than 10 characters (currently 0 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ip2phrase-widget.php" instead of "IP2Phrase.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected345 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 9 | 285 |
JavaScript | 1 | 9 | 0 | 60 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.64 |
▷ 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 | 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
No PNG files were detected