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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.98ms] Passed 4 tests
An overview of server-side resources used by ALF Disable Product for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.78 ▼1.17 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.31 ▼4.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.48 ▼0.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.58 ▼20.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.20 ▼1.21 |
Server storage [IO: ▲0.08MB] [DB: ▲0.32MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for ALF Disable Product for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.82 ▲1.60 | 2.00 ▼2.18 | 43.14 ▲0.99 |
Dashboard /wp-admin | 2,203 ▲15 | 5.81 ▲0.93 | 99.48 ▲0.18 | 50.44 ▲9.85 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.04 | 40.69 ▼0.45 | 35.20 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.74 ▲0.47 | 579.87 ▼53.61 | 49.41 ▼6.64 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▲0.00 | 97.51 ▲3.37 | 40.60 ▼2.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.32MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
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 everything seems fine, this is not 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× PHP files output text when accessed directly:
- > /wp-content/plugins/alf-disable-product-for-woocommerce/public/partials/alf-disable-product-for-woocommerce-public-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/alf-disable-product-for-woocommerce/admin/partials/alf-disable-product-for-woocommerce-product-tab-data.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/alf-disable-product-for-woocommerce/admin/partials/alf-disable-product-for-woocommerce-product-category-edit.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/alf-disable-product-for-woocommerce/admin/partials/alf-disable-product-for-woocommerce-product-category.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Contributors: Contributors not specified
- Screenshots: Screenshot #1 (ALF Disable Product for Woocommerce) image missing
alf-disable-product-for-woocommerce/alf-disable-product-for-woocommerce.php 92% from 13 tests
The principal PHP file in "ALF Disable Product for Woocommerce" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "3.9.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin768 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 158 | 658 | 517 |
JavaScript | 2 | 18 | 31 | 92 |
CSS | 2 | 0 | 5 | 73 |
PO File | 1 | 76 | 152 | 59 |
Markdown | 1 | 12 | 0 | 27 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 10.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 38 | 88.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.63% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin