Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.36MB] [CPU: ▼4.02ms] Passed 4 tests
A check of server-side resources used by Easy Referral for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 43.80 ▼3.62 |
Dashboard /wp-admin | 3.71 ▲0.36 | 52.97 ▼15.88 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 54.90 ▲4.65 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 99.76 ▼1.21 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 41.57 ▲5.75 |
Server storage [IO: ▲2.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 344 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Referral for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.00 | 1.69 ▼0.06 | 40.70 ▼0.66 |
Dashboard /wp-admin | 2,192 ▲15 | 5.56 ▼0.06 | 82.14 ▼15.87 | 38.63 ▼2.72 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▼0.02 | 41.45 ▲4.68 | 34.94 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.31 ▲0.39 | 642.29 ▼37.62 | 59.42 ▲4.42 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.15 ▼0.04 | 95.37 ▼7.48 | 42.52 ▼4.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/easy-referral-for-woocommerce/vendor/cmb2/cmb2/apigen/hook-docs.php
- 143× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/easy-referral-for-woocommerce/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/easy-referral-for-woocommerce/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Hashids\\HashidsInterface' not found in wp-content/plugins/easy-referral-for-woocommerce/vendor/hashids/hashids/src/Hashids.php:25
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/easy-referral-for-woocommerce/vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/easy-referral-for-woocommerce/vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/easy-referral-for-woocommerce/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Cmb2Grid\\Grid\\Row' not found in wp-content/plugins/easy-referral-for-woocommerce/vendor/origgami/cmb2-grid/Grid/Group/GroupRow.php:18
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/easy-referral-for-woocommerce/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/easy-referral-for-woocommerce/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-referral-for-woocommerce/vendor/cmb2/cmb2/init.php:126
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in easy-referral-for-woocommerce/assets to your readme.txt
easy-referral-for-woocommerce/easy-referral-for-woocommerce.php 85% from 13 tests
The entry point to "Easy Referral for WooCommerce" version 1.0.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.0.0")
- Domain Path: The domain path folder was not found ("/src/languages")
Code Analysis Passed 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
There were no executable files found in this plugin27,617 lines of code in 271 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 210 | 3,278 | 9,019 | 13,046 |
CSS | 16 | 1,277 | 1,179 | 5,758 |
JSON | 9 | 1 | 0 | 4,178 |
JavaScript | 12 | 469 | 647 | 2,431 |
Sass | 16 | 300 | 25 | 1,379 |
Markdown | 5 | 256 | 0 | 757 |
YAML | 1 | 9 | 33 | 28 |
PO File | 1 | 1 | 1 | 21 |
XML | 1 | 5 | 4 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 209 | |
▷ Abstract classes | 10 | 4.78% |
▷ Concrete classes | 199 | 95.22% |
▷ Final classes | 0 | 0.00% |
Methods | 919 | |
▷ Static methods | 101 | 10.99% |
▷ Public methods | 765 | 83.24% |
▷ Protected methods | 139 | 15.13% |
▷ Private methods | 15 | 1.63% |
Functions | 50 | |
▷ Named functions | 41 | 82.00% |
▷ Anonymous functions | 9 | 18.00% |
Constants | 17 | |
▷ Global constants | 5 | 29.41% |
▷ Class constants | 12 | 70.59% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-last.png | 0.17KB | 0.11KB | ▼ 36.05% |
vendor/cmb2/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
vendor/cmb2/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |