Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼146.69ms] Passed 4 tests
Server-side resources used by IPQualityScore Fraud Detection
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.12 ▲0.29 | 42.70 ▲5.40 |
Dashboard /wp-admin | 3.41 ▲0.36 | 51.50 ▲2.15 |
Posts /wp-admin/edit.php | 3.46 ▲0.36 | 54.71 ▲3.84 |
Add New Post /wp-admin/post-new.php | 5.71 ▲0.28 | 94.79 ▼591.03 |
Media Library /wp-admin/upload.php | 3.30 ▲0.29 | 34.09 ▼1.71 |
/wp-admin/admin.php?page=ipq_oauth_success | 3.20 | 25.21 |
/wp-admin/admin.php?page=ipq_oauth_failure | 3.26 | 29.83 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 36 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_ipqs_email_cache |
wp_ipqs_cache |
New WordPress options |
---|
ipq_device_tracker_orders |
ipq_database_version |
ipq_allow_public_access_points |
ipqualityscore_key |
ipq_allow_crawlers |
ipq_strictness |
ipq_loading_order_post_id |
ipq_block_order_post_id |
ipq_allow_timed_out_emails |
Browser metrics Passed 4 tests
Checking browser requirements for IPQualityScore Fraud Detection
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,701 ▲105 | 16.03 ▲0.49 | 11.18 ▲0.03 | 48.56 ▼0.55 |
Dashboard /wp-admin | 2,958 ▲27 | 5.90 ▼0.08 | 144.63 ▼9.17 | 121.19 ▲1.02 |
Posts /wp-admin/edit.php | 2,752 ▲13 | 2.70 ▼0.02 | 67.13 ▼5.52 | 84.05 ▼5.77 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.55 ▼0.22 | 410.02 ▼7.56 | 109.44 ▼4.11 |
Media Library /wp-admin/upload.php | 1,749 ▼61 | 5.04 ▲0.02 | 143.18 ▼12.98 | 130.80 ▲11.77 |
/wp-admin/admin.php?page=ipq_oauth_success | 11 | 0.90 | 0.06 | 3.71 |
/wp-admin/admin.php?page=ipq_oauth_failure | 1,006 | 2.09 | 61.48 | 37.00 |
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
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_ipqs_email_cache
- This plugin did not uninstall successfully, leaving 2 options in the database
- ipq_loading_order_post_id
- ipq_block_order_post_id
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ipqualityscore-fraud-detection/templates/SettingsTable.php
- > /wp-content/plugins/ipqualityscore-fraud-detection/templates/BeforeOrderAlways.php
- 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: setting in wp-content/plugins/ipqualityscore-fraud-detection/templates/SettingsTable.php on line 11
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/ipqualityscore-fraud-detection/templates/AdminOrderPanel.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ipqualityscore-fraud-detection/IPQualityScore.php:1684
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/ipqualityscore-fraud-detection/templates/Wrapper.php:1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/ipqualityscore-fraud-detection/templates/AdminOrderPanel.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ipqualityscore-fraud-detection/templates/SettingsTable.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/ipqualityscore-fraud-detection/templates/OrderAfter.php:2
- > PHP Notice
Undefined variable: setting in wp-content/plugins/ipqualityscore-fraud-detection/templates/SettingsTable.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_add_inline_script() in wp-content/plugins/ipqualityscore-fraud-detection/templates/EvictFailure.php:11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ipqualityscore-fraud-detection/templates/SettingsTable.php on line 13
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ipq_oauth_failure
- > Network (severe)
wp-content/plugins/ipqualityscore-fraud-detection/js/Evict.js?ver=5.8.1 - 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
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #3 (Another preview of the risk analysis for orders.), #4 (Fraud Score available when reviewing recent WooCommerce orders.)
- Tags: There are too many tags (14 tag instead of maximum 10)
ipqualityscore-fraud-detection/IPQualityScore.php 85% from 13 tests
This is the main PHP file of "IPQualityScore Fraud Detection" version 1.83, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 414 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ipqualityscore-fraud-detection.php" instead of "IPQualityScore.php")
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 detected2,552 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 263 | 133 | 1,965 |
JavaScript | 10 | 31 | 4 | 457 |
CSS | 4 | 12 | 0 | 125 |
HTML | 2 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.85 |
Average class complexity | 318.00 |
▷ Minimum class complexity | 318.00 |
▷ Maximum class complexity | 318.00 |
Average method complexity | 6.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.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 | 61 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 52.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 29 | 47.54% |
Functions | 14 | |
▷ Named functions | 6 | 42.86% |
▷ Anonymous functions | 8 | 57.14% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/assets/logo-email.png | 12.74KB | 7.27KB | ▼ 42.93% |
assets/screenshot-2.png | 19.00KB | 10.34KB | ▼ 45.57% |
assets/screenshot-4.png | 14.04KB | 8.39KB | ▼ 40.28% |
assets/screenshot-1.png | 76.88KB | 37.99KB | ▼ 50.58% |
assets/screenshot-3.png | 14.04KB | 8.39KB | ▼ 40.28% |