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.00MB] [CPU: ▼2.51ms] Passed 4 tests
A check of server-side resources used by WooCommerce Dynamic Coupons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.02 ▼2.57 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.50 ▼2.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.34 ▲1.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.81 ▼3.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.16 ▼0.89 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
WooCommerce Dynamic Coupons: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.26 ▼1.12 | 1.60 ▼0.36 | 40.66 ▼2.28 |
Dashboard /wp-admin | 2,209 ▲17 | 4.85 ▼0.04 | 98.33 ▼10.42 | 38.23 ▼0.45 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▲0.00 | 39.71 ▲0.39 | 35.79 ▲2.19 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.29 ▲5.55 | 580.52 ▼98.79 | 53.17 ▼8.84 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▼0.00 | 95.95 ▼8.33 | 43.87 ▲0.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
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 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
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in woo-dynamic-coupons/assets to your readme.txt
woo-dynamic-coupons/woocommerce-dynamic-coupons.php 77% from 13 tests
The main PHP script in "WooCommerce Dynamic Coupons" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-dynamic-coupons.php" instead of "woocommerce-dynamic-coupons.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
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "3.0")
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
Good job! No executable or dangerous file extensions detected11,053 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 75 | 1,219 | 1,558 | 5,597 |
CSS | 1 | 1 | 7 | 4,880 |
SVG | 1 | 0 | 0 | 288 |
PHP | 4 | 130 | 102 | 236 |
JavaScript | 1 | 42 | 1 | 42 |
Markdown | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ 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 | 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
No PNG images were found in this plugin