Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▲1.95ms] Passed 4 tests
An overview of server-side resources used by Dropwp Disable Products
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.05 ▼0.99 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.84 ▲0.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.45 ▲6.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 103.71 ▲15.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.72 ▲2.43 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dropwp Disable Products
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.30 ▼0.09 | 1.94 ▼0.02 | 44.45 ▼0.59 |
Dashboard /wp-admin | 2,195 ▲15 | 5.69 ▲0.03 | 90.60 ▼3.75 | 40.95 ▼3.67 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▼0.05 | 39.49 ▼1.76 | 35.11 ▲1.70 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 17.52 ▼6.07 | 642.38 ▼51.50 | 49.12 ▼11.54 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.22 ▼0.01 | 98.31 ▼9.70 | 45.67 ▼2.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 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 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
No output text or server-side errors detected 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 issues were found
Optimizations
Plugin configuration 93% 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: woocomerce, products, disable, draft, helper
dropwp-disable-products/dropwp_disableproducts.php 85% from 13 tests
The primary PHP file in "Dropwp Disable Products" version 1.0.3 is used by WordPress to initiate all plugin functionality
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 ("dropwp-disable-products.php" instead of "dropwp_disableproducts.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin666 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 3 | 67 | 0 | 301 |
PHP | 5 | 47 | 62 | 201 |
CSS | 1 | 11 | 0 | 106 |
PO File | 1 | 191 | 426 | 58 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 13 | |
▷ Static methods | 3 | 23.08% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
8 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/open.png | 0.86KB | 0.80KB | ▼ 6.92% |
img/ir-a-manuales.png | 0.58KB | 0.57KB | ▼ 3.34% |
img/dropwp.png | 0.98KB | 1.24KB | 0.00% |
img/logo.png | 5.62KB | 3.61KB | ▼ 35.74% |
img/abrir-ticket.png | 0.57KB | 0.43KB | ▼ 25.47% |