Benchmarks
Plugin footprint 83% 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: ▲0.00MB] [CPU: ▼6.15ms] Passed 4 tests
A check of server-side resources used by FraudLabs Pro for Easy Digital Downloads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.70 ▼6.66 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.64 ▼2.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.35 ▲1.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.65 ▼13.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.84 ▼1.90 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
FraudLabs Pro for Easy Digital Downloads: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼1.04 | 4.27 ▲2.39 | 40.19 ▼0.23 |
Dashboard /wp-admin | 2,203 ▲15 | 5.84 ▲0.95 | 105.36 ▲2.32 | 37.36 ▼9.51 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.04 ▲0.00 | 41.14 ▲4.40 | 37.76 ▲7.85 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.73 ▼0.66 | 655.68 ▲24.85 | 57.38 ▼0.41 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.16 ▼0.05 | 93.78 ▼13.65 | 40.64 ▼6.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fraudlabs-pro-for-easy-digital-downloads/vendor/fraudlabspro/fraudlabspro-php/tests/bootstrap.php
- > /wp-content/plugins/fraudlabs-pro-for-easy-digital-downloads/vendor/fraudlabspro/fraudlabspro-php/example.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fraudlabs-pro-for-easy-digital-downloads/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-easy-digital-downloads/vendor/fraudlabspro/fraudlabspro-php/tests/FraudValidationTest.php:7
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/fraudlabs-pro-for-easy-digital-downloads/vendor/fraudlabspro/fraudlabspro-php/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/fraudlabs-pro-for-easy-digital-downloads/vendor/fraudlabspro/fraudlabspro-php/example.php on line 6
- > PHP Warning
require_once(wp-content/plugins/fraudlabs-pro-for-easy-digital-downloads/vendor/fraudlabspro/fraudlabspro-php/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/fraudlabs-pro-for-easy-digital-downloads/vendor/fraudlabspro/fraudlabspro-php/example.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: easy digital downloads, edd, fraud prevention, easy digital downloads fraud detection, fraudlabspro...
fraudlabs-pro-for-easy-digital-downloads/init.php 92% from 13 tests
The main PHP script in "FraudLabs Pro for Easy Digital Downloads" version 2.2.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fraudlabs-pro-for-easy-digital-downloads.php" instead of "init.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
There were no executable files found in this plugin2,417 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 366 | 335 | 2,039 |
Markdown | 1 | 67 | 0 | 189 |
JavaScript | 2 | 17 | 0 | 101 |
JSON | 2 | 0 | 0 | 74 |
CSS | 1 | 1 | 0 | 7 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 31.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 5.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 5 | 6.67% |
▷ Public methods | 66 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 12.00% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 18 | |
▷ Global constants | 3 | 16.67% |
▷ Class constants | 15 | 83.33% |
▷ 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
7 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 1.47KB | 0.52KB | ▼ 64.65% |
assets/images/logo_200.png | 4.23KB | 2.45KB | ▼ 42.05% |
assets/images/step-2-selected.png | 3.89KB | 1.82KB | ▼ 53.23% |
assets/images/step-1.png | 4.04KB | 1.52KB | ▼ 62.47% |
assets/images/step-2.png | 4.88KB | 1.81KB | ▼ 62.92% |