Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.76ms] Passed 4 tests
An overview of server-side resources used by WC Expired Products
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 47.74 ▲7.73 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.29 ▼1.36 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.83 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.78 ▼13.13 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.95 ▲4.56 |
Expired Products /wp-admin/admin.php?page=wc-expired-products | 3.29 | 34.81 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WC Expired Products
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲121 | 13.69 ▼0.66 | 7.88 ▲5.91 | 43.16 ▼2.53 |
Dashboard /wp-admin | 2,202 ▲22 | 5.50 ▼0.08 | 88.02 ▼8.57 | 40.54 ▼1.35 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.99 ▼0.01 | 34.93 ▼4.33 | 38.53 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.11 ▼0.17 | 695.25 ▲50.88 | 57.83 ▼3.27 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.23 ▲0.04 | 110.51 ▲5.17 | 47.33 ▲2.30 |
Expired Products /wp-admin/admin.php?page=wc-expired-products | 953 | 1.69 | 24.61 | 38.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wc-expired-products
- > Notice in wp-content/plugins/wc-expire-products/admin/partials/wc-expired-products-admin-display.php+39
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wc-expire-products/public/partials/wc-expired-products-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wc-expire-products/admin/partials/wc-expired-products-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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:
- Plugin Name: You should set the name of your plugin on the first line (
=== wc-expire-products ===
) - Donate link: Invalid url: "nicogaldo.com.ar"
wc-expire-products/wc-expired-products.php 85% from 13 tests
The principal PHP file in "WC Expired Products" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-expire-products.php" instead of "wc-expired-products.php")
- 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
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
Good job! No executable or dangerous file extensions detected703 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 280 | 625 | 516 |
PO File | 1 | 48 | 49 | 180 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 1 | 8 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin