Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.46ms] Passed 4 tests
A check of server-side resources used by Eye4fraud for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.33 ▼2.66 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.44 ▼2.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.08 ▼8.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.37 ▼24.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.62 ▲0.61 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Eye4fraud for Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.67 ▲0.16 | 1.58 ▼0.53 | 38.89 ▼8.88 |
Dashboard /wp-admin | 2,195 ▲18 | 5.55 ▼0.13 | 86.22 ▼9.94 | 39.33 ▼11.18 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.99 ▲0.02 | 33.68 ▼6.52 | 35.55 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,528 ▼8 | 22.95 ▼1.95 | 704.60 ▲53.19 | 50.84 ▼15.34 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.17 ▼0.03 | 104.63 ▼3.59 | 43.40 ▼2.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
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 no errors were found, this is by no means 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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/eye4fraud-for-woocommerce/eye4fraud-woocommerce.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Eye4fraud\\Base\\BaseController' not found in wp-content/plugins/eye4fraud-for-woocommerce/inc/Admin/Admin.php:11
- > PHP Fatal error
Uncaught Error: Class 'Eye4fraud\\Base\\BaseController' not found in wp-content/plugins/eye4fraud-for-woocommerce/inc/Admin/Column.php:12
- > PHP Fatal error
Uncaught Error: Class 'Eye4fraud\\Base\\BaseController' not found in wp-content/plugins/eye4fraud-for-woocommerce/inc/Base/Required.php:13
- > PHP Fatal error
Uncaught Error: Class 'Eye4fraud\\Base\\BaseController' not found in wp-content/plugins/eye4fraud-for-woocommerce/inc/Admin/Page.php:7
- > PHP Fatal error
Uncaught Error: Class 'Eye4fraud\\Base\\BaseController' not found in wp-content/plugins/eye4fraud-for-woocommerce/inc/Services/Cron.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/eye4fraud-for-woocommerce/web/load.php:2
- > PHP Fatal error
Uncaught Error: Class 'Eye4fraud\\Base\\BaseController' not found in wp-content/plugins/eye4fraud-for-woocommerce/inc/Base/Enqueue.php:12
- > PHP Fatal error
Uncaught Error: Class 'Eye4fraud\\Base\\BaseController' not found in wp-content/plugins/eye4fraud-for-woocommerce/inc/Base/SettingsLinks.php:12
- > PHP Fatal error
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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
eye4fraud-for-woocommerce/eye4fraud-woocommerce.php 77% from 13 tests
Analyzing the main PHP file in "Eye4fraud for Woocommerce" version 2.0.19
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 178 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eye4fraud-for-woocommerce.php" instead of "eye4fraud-woocommerce.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
There were no executable files found in this plugin32,190 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 2,568 | 217 | 26,122 |
JavaScript | 7 | 118 | 141 | 3,922 |
PHP | 30 | 528 | 582 | 1,915 |
SVG | 2 | 0 | 2 | 105 |
JSON | 3 | 0 | 0 | 81 |
Sass | 2 | 6 | 0 | 45 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 1 | 4.76% |
Methods | 99 | |
▷ Static methods | 31 | 31.31% |
▷ Public methods | 97 | 97.98% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.02% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 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
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/woologo.png | 6.20KB | 5.75KB | ▼ 7.17% |
assets/images/Chain.png | 14.72KB | 8.82KB | ▼ 40.05% |
assets/images/woolo.png | 4.44KB | 4.11KB | ▼ 7.28% |
assets/images/plus.png | 2.20KB | 2.04KB | ▼ 7.18% |
assets/images/logo-shopify.png | 6.61KB | 3.68KB | ▼ 44.37% |