Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼17.35ms] Passed 4 tests
A check of server-side resources used by Sale Countdown WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.12 ▼11.88 |
Dashboard /wp-admin | 3.32 ▼0.02 | 49.76 ▼18.14 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.24 ▼12.77 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.53 ▼26.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 38.29 ▼0.21 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Sale Countdown WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.45 | 4.92 ▲2.47 | 43.53 ▼2.54 |
Dashboard /wp-admin | 2,203 ▲12 | 4.86 ▼0.03 | 103.79 ▼26.58 | 43.80 ▼10.40 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.01 | 36.38 ▼1.92 | 32.83 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.13 ▼0.31 | 661.21 ▲6.14 | 52.31 ▼4.36 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.29 ▲0.07 | 103.84 ▲1.33 | 43.74 ▼2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/flash-sale-countdown-for-woocommerce/flash-sale-countdown.php on line 20
- > PHP Fatal error
Uncaught Error: Call to a member function get_id() on null in wp-content/plugins/flash-sale-countdown-for-woocommerce/templates/archive-countdown.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function get_id() on null in wp-content/plugins/flash-sale-countdown-for-woocommerce/templates/single-countdown.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/flash-sale-countdown-for-woocommerce/flash-sale-countdown.php:21
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/flash-sale-countdown-for-woocommerce/flash-sale-countdown.php on line 20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/flash-sale-countdown-for-woocommerce/flash-sale-countdown.php on line 20
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid url: ""
flash-sale-countdown-for-woocommerce/flash-sale-countdown.php 77% from 13 tests
This is the main PHP file of "Sale Countdown WooCommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("flash-sale-countdown-for-woocommerce.php" instead of "flash-sale-countdown.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.8.2" instead of "4.4")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin197 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 15 | 22 | 113 |
JavaScript | 1 | 14 | 10 | 46 |
CSS | 1 | 7 | 1 | 38 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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 | 3 | |
▷ Global constants | 3 | 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 are no PNG files in this plugin