Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.38ms] Passed 4 tests
This is a short check of server-side resources used by ELEX WooCommerce Choose Your Delivery Date
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.34 ▼7.43 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.69 ▼6.82 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.50 ▲4.28 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 97.22 ▲8.61 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.57 ▲0.44 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
elex-choose-your-delivery-date/elex-woocommerce-choose-your-delivery-date.php_activation_date |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
ELEX WooCommerce Choose Your Delivery Date: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,128 ▲341 | 13.52 ▼0.65 | 9.65 ▲7.66 | 38.38 ▼6.21 |
Dashboard /wp-admin | 2,418 ▲254 | 5.56 ▼0.02 | 95.84 ▼15.11 | 48.06 ▲5.57 |
Posts /wp-admin/edit.php | 2,330 ▲230 | 2.13 ▲0.15 | 41.09 ▲1.45 | 42.58 ▲4.38 |
Add New Post /wp-admin/post-new.php | 1,752 ▲226 | 23.24 ▲0.16 | 676.66 ▲68.79 | 54.12 ▲2.18 |
Media Library /wp-admin/upload.php | 1,629 ▲229 | 4.30 ▲0.10 | 101.07 ▼7.29 | 50.64 ▲8.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- elex-choose-your-delivery-date/elex-woocommerce-choose-your-delivery-date.php_activation_date
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/elex-choose-your-delivery-date/includes/market.php
- > /wp-content/plugins/elex-choose-your-delivery-date/review_and_troubleshoot_notify/resources/logo.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-choose-your-delivery-date/review_and_troubleshoot_notify/resources/review.php:58
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/elex-choose-your-delivery-date/elex-woocommerce-choose-your-delivery-date.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/elex-choose-your-delivery-date/includes/market.php:299
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/elex-choose-your-delivery-date/elex-woocommerce-choose-your-delivery-date.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-choose-your-delivery-date/review_and_troubleshoot_notify/resources/troubleshoot.php:59
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/elex-choose-your-delivery-date/elex-woocommerce-choose-your-delivery-date.php on line 16
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid url: ""
elex-choose-your-delivery-date/elex-woocommerce-choose-your-delivery-date.php 77% from 13 tests
The primary PHP file in "ELEX WooCommerce Choose Your Delivery Date" version 1.2.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- 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: The principal plugin file should be the same as the plugin slug ("elex-choose-your-delivery-date.php" instead of "elex-woocommerce-choose-your-delivery-date.php")
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "2.6.0")
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
Good job! No executable or dangerous file extensions detected1,993 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 91 | 48 | 1,154 |
CSS | 4 | 0 | 34 | 818 |
JavaScript | 2 | 3 | 1 | 21 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.57MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/Advanced-Bulk-Edit.png | 69.40KB | 15.94KB | ▼ 77.03% |
resources/images/WSDesk-Helpdesk.png | 161.93KB | 43.90KB | ▼ 72.89% |
resources/images/Catalog-Mode.png | 85.64KB | 21.17KB | ▼ 75.28% |
resources/images/Request-a-Quote.png | 92.71KB | 24.02KB | ▼ 74.09% |
resources/images/Google-Shopping-Feeds.png | 80.41KB | 19.81KB | ▼ 75.37% |