Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.68MB] [CPU: ▼50.15ms] Passed 4 tests
An overview of server-side resources used by IP2CurrencyConverter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.33 ▼1.14 | 9.35 ▼30.50 |
Dashboard /wp-admin | 2.34 ▼1.01 | 13.65 ▼47.53 |
Posts /wp-admin/edit.php | 2.34 ▼1.02 | 11.01 ▼35.02 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.55 | 12.42 ▼87.53 |
Media Library /wp-admin/upload.php | 2.34 ▼0.89 | 9.97 ▼21.98 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for IP2CurrencyConverter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲47 | 14.67 ▼0.04 | 1.71 ▼0.00 | 43.68 ▼0.05 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▲0.10 | 90.85 ▼0.47 | 40.62 ▼4.48 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.00 | 39.31 ▲1.63 | 33.99 ▼3.95 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.32 ▲0.25 | 657.98 ▼30.85 | 52.01 ▲0.20 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.13 ▼0.07 | 101.47 ▼0.12 | 41.57 ▼0.71 |
IP2CurrencyConverter /wp-admin/IP2CurrencyConverter.php | 26 | 0.41 | 0.06 | 13.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method IP2CurrencyConverter::register() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 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/ip2currency-converter/IP2CurrencyConverter.php:11
- > 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 user-side errors
- > GET request to /wp-admin/IP2CurrencyConverter.php
- > Network (severe)
wp-admin/IP2CurrencyConverter.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Vertical widget) image not found
- Plugin Name: Please specify the plugin name on the first line (
=== ip2currency-converter ===
)
ip2currency-converter/IP2CurrencyConverter.php 85% from 13 tests
Analyzing the main PHP file in "IP2CurrencyConverter" version 1.0.8
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 187 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ip2currency-converter.php" instead of "IP2CurrencyConverter.php")
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
Good job! No executable or dangerous file extensions detected394 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 45 | 11 | 334 |
JavaScript | 1 | 9 | 0 | 60 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 were not PNG files found in your plugin