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.00MB] [CPU: ▼5.07ms] Passed 4 tests
Server-side resources used by Fraud Prevention For Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.78 ▼3.90 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.29 ▼1.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.76 ▼0.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.77 ▼14.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 39.58 ▲5.34 |
Server storage [IO: ▲9.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 288 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
fs_accounts |
widget_theysaidso_widget |
fs_active_plugins |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
fs_debug_mode |
Browser metrics Passed 4 tests
An overview of browser requirements for Fraud Prevention For Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 13.53 ▼1.13 | 4.47 ▲2.83 | 41.65 ▼3.92 |
Dashboard /wp-admin | 2,198 ▲18 | 5.57 ▼0.02 | 95.63 ▼1.12 | 46.99 ▲7.02 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▼0.02 | 38.46 ▼0.75 | 34.71 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,536 ▲4 | 22.93 ▼0.16 | 663.72 ▲28.03 | 51.38 ▼11.77 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.11 ▼0.10 | 117.08 ▲10.16 | 48.66 ▲2.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_accounts
- widget_recent-comments
- can_compress_scripts
- fs_debug_mode
- fs_active_plugins
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
- Screenshots: Add an image for screenshot #6 (Block user by firstname)
woo-blocker-lite-prevent-fake-orders-and-blacklist-fraud-customers/woocommerce-blocker.php 77% from 13 tests
This is the main PHP file of "Fraud Prevention For Woocommerce" version 2.1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-blocker-lite-prevent-fake-orders-and-blacklist-fraud-customers.php" instead of "woocommerce-blocker.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.1" instead of "3.0")
- Description: The description should be shorter than 140 characters (currently 142 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin44,254 lines of code in 179 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 141 | 8,452 | 18,113 | 38,727 |
CSS | 23 | 280 | 64 | 2,404 |
PO File | 1 | 411 | 581 | 1,373 |
JavaScript | 10 | 106 | 105 | 911 |
SVG | 3 | 0 | 0 | 692 |
XML | 1 | 12 | 19 | 147 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 89.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 2 | 3.57% |
▷ Concrete classes | 54 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 1,343 | |
▷ Static methods | 201 | 14.97% |
▷ Public methods | 941 | 70.07% |
▷ Protected methods | 17 | 1.27% |
▷ Private methods | 385 | 28.67% |
Functions | 114 | |
▷ Named functions | 113 | 99.12% |
▷ Anonymous functions | 1 | 0.88% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
50 PNG files occupy 3.51MB with 1.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/thedotstore-images/screenshots/Custom-style.png | 270.00KB | 63.43KB | ▼ 76.51% |
admin/images/thedotstore-images/popular-plugins/Enhanced-Ecommerce-Google-Analytics-For-WooCommerce.png | 5.10KB | 5.15KB | 0.00% |
admin/images/thedotstore-images/check-mark.png | 0.68KB | 0.48KB | ▼ 28.57% |
images/Getting_Started_03.png | 38.73KB | 14.49KB | ▼ 62.58% |
admin/images/thedotstore-images/popular-plugins/wcbm-logo.png | 3.00KB | 3.00KB | 0.10% |