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
Install script ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼16.86ms] Passed 4 tests
A check of server-side resources used by Critical.net - Fraud Detector and Chargeback Prevention Solution
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.88 ▼0.18 |
Dashboard /wp-admin | 3.42 ▲0.12 | 46.46 ▼2.27 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 48.59 ▼0.83 |
Add New Post /wp-admin/post-new.php | 3.30 ▼2.59 | 33.50 ▼62.15 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 35.95 ▼2.17 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
cnfp_api_url |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
cnfp_front_url |
cnfp_version |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Critical.net - Fraud Detector and Chargeback Prevention Solution
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 13.29 ▼1.18 | 1.67 ▲0.02 | 44.11 ▼3.86 |
Dashboard /wp-admin | 2,229 ▲38 | 4.88 ▼1.00 | 99.16 ▼6.82 | 31.87 ▼9.80 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.06 ▲0.03 | 37.31 ▲0.11 | 33.91 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,684 ▲171 | 22.60 ▲5.15 | 653.80 ▼30.45 | 47.58 ▼9.17 |
Media Library /wp-admin/upload.php | 1,478 ▲93 | 4.24 ▼0.00 | 95.75 ▼18.37 | 40.91 ▼9.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- cnfp_front_url
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/critical-net-fraud-prevention/templates/admin-settings.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: fraud detector, blacklist customer, chargeback prevention, prevent fake orders, fraud prevention
critical-net-fraud-prevention/critical-net-fraud-prevention.php 92% from 13 tests
The main PHP file in "Critical.net - Fraud Detector and Chargeback Prevention Solution" ver. 1.15.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 243 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin631 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 143 | 343 | 597 |
CSS | 2 | 0 | 6 | 34 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 7.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 35 | |
▷ Static methods | 10 | 28.57% |
▷ Public methods | 33 | 94.29% |
▷ Protected methods | 1 | 2.86% |
▷ Private methods | 1 | 2.86% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
PNG images were not found in this plugin