Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼3.26ms] Passed 4 tests
A check of server-side resources used by FraudLabs Pro for WP e-Commerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 42.86 ▲4.74 |
Dashboard /wp-admin | 3.52 ▲0.21 | 50.72 ▼2.18 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 46.53 ▼1.14 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 82.34 ▼10.34 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 38.30 ▲0.62 |
FraudLabs Pro /wp-admin/options-general.php?page=fraudlabs-pro | 3.41 | 31.23 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 27 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_wpsc_fraudlabspro |
New WordPress options |
---|
fraudlabspro_test_ip |
fraudlabspro_notification_on_reject |
theysaidso_admin_options |
can_compress_scripts |
fraudlabspro_api_key |
fraudlabspro_enabled |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
fraudlabspro_debug_log_enabled |
... |
Browser metrics Passed 4 tests
A check of browser resources used by FraudLabs Pro for WP e-Commerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲38 | 13.67 ▼0.72 | 3.98 ▲2.15 | 40.91 ▼2.96 |
Dashboard /wp-admin | 2,212 ▲27 | 5.85 ▼0.01 | 95.56 ▼0.96 | 41.30 ▲3.59 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▼0.00 | 35.93 ▲0.12 | 36.64 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 23.37 ▲0.31 | 618.53 ▼47.04 | 63.29 ▲11.93 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.20 ▲0.02 | 94.18 ▲0.42 | 40.39 ▼1.62 |
FraudLabs Pro /wp-admin/options-general.php?page=fraudlabs-pro | 899 | 2.07 | 24.96 | 30.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- fraudlabspro_notification_on_approve
- fraudlabspro_notification_on_review
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- fraudlabspro_notification_on_reject
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fraudlabs-pro-for-wp-e-commerce/vendor/fraudlabspro/fraudlabspro-php/tests/bootstrap.php
- > /wp-content/plugins/fraudlabs-pro-for-wp-e-commerce/vendor/fraudlabspro/fraudlabspro-php/example.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/fraudlabs-pro-for-wp-e-commerce/vendor/fraudlabspro/fraudlabspro-php/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/fraudlabs-pro-for-wp-e-commerce/vendor/fraudlabspro/fraudlabspro-php/example.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fraudlabs-pro-for-wp-e-commerce/fraudlabspro-wp-ecommerce.php:26
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/fraudlabs-pro-for-wp-e-commerce/fraudlabspro-wp-ecommerce.php on line 24
- > PHP Warning
require_once(wp-content/plugins/fraudlabs-pro-for-wp-e-commerce/vendor/fraudlabspro/fraudlabspro-php/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/fraudlabs-pro-for-wp-e-commerce/vendor/fraudlabspro/fraudlabspro-php/example.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fraudlabs-pro-for-wp-e-commerce/vendor/fraudlabspro/fraudlabspro-php/tests/SmsVerificationTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fraudlabs-pro-for-wp-e-commerce/vendor/fraudlabspro/fraudlabspro-php/tests/FraudValidationTest.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: fraud prevention, wpec, fraud detection, wp-e-commerce, wpsc...
fraudlabs-pro-for-wp-e-commerce/fraudlabspro-wp-ecommerce.php 85% from 13 tests
The main PHP script in "FraudLabs Pro for WP e-Commerce" version 1.6.0 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fraudlabs-pro-for-wp-e-commerce.php" instead of "fraudlabspro-wp-ecommerce.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
No dangerous file extensions were detected1,870 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 273 | 303 | 1,530 |
Markdown | 1 | 67 | 0 | 189 |
JSON | 2 | 0 | 0 | 74 |
JavaScript | 2 | 9 | 0 | 70 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 26.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 3 | 4.76% |
▷ Public methods | 56 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 11.11% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 17 | |
▷ Global constants | 2 | 11.76% |
▷ Class constants | 15 | 88.24% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin