Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/dynamic-coupon-generator/DynamicCouponGenerator_Plugin.php+38
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.28ms] Passed 4 tests
A check of server-side resources used by Dynamic Coupon Generator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.96 ▼0.22 |
Dashboard /wp-admin | 3.46 ▲0.16 | 50.78 ▼2.17 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.66 ▲2.58 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 81.31 ▼25.29 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 41.28 ▲3.43 |
Dynamic Coupon Generator /wp-admin/admin.php?page=DynamicCouponGenerator_PluginSettings | 3.36 | 41.36 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_dynamiccoupongenerator_plugin_options |
New WordPress options |
---|
DynamicCouponGenerator_Plugin_ATextInput |
DynamicCouponGenerator_Plugin__version |
DynamicCouponGenerator_Plugin_CanDoSomething |
can_compress_scripts |
widget_recent-posts |
DynamicCouponGenerator_Plugin__installed |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Dynamic Coupon Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲15 | 14.13 ▼0.40 | 1.87 ▼0.40 | 46.46 ▲1.04 |
Dashboard /wp-admin | 2,210 ▲30 | 5.62 ▲0.02 | 94.04 ▲0.01 | 42.76 ▼2.77 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.96 ▼0.06 | 33.40 ▼1.99 | 35.05 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,538 ▲3 | 23.16 ▲5.06 | 675.63 ▲27.40 | 48.30 ▼15.68 |
Media Library /wp-admin/upload.php | 1,415 ▲21 | 4.23 ▲0.03 | 99.48 ▲0.27 | 47.05 ▲3.19 |
Dynamic Coupon Generator /wp-admin/admin.php?page=DynamicCouponGenerator_PluginSettings | 1,172 | 2.14 | 36.33 | 27.12 |
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
- This plugin did not uninstall successfully, leaving 11 options in the database
- db_upgraded
- DynamicCouponGenerator_Plugin_ATextInput
- widget_recent-comments
- DynamicCouponGenerator_Plugin_AmAwesome
- widget_theysaidso_widget
- DynamicCouponGenerator_Plugin__installed
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- DynamicCouponGenerator_Plugin__version
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-coupon-generator/dynamic-coupon-generator.php:57
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=DynamicCouponGenerator_PluginSettings
- > Network (severe)
wp-content/plugins/dynamic-coupon-generator/jquery-ui.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 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: copons, bogo, coupons, bulk-generate, free-product
dynamic-coupon-generator/dynamic-coupon-generator.php Passed 13 tests
The principal PHP file in "Dynamic Coupon Generator" v. 0.5 is loaded by WordPress automatically on each request
29 characters long description:
Bulk generate dynamic coupons
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
Success! There were no dangerous files found in this plugin2,325 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 41 | 48 | 1,222 |
PHP | 8 | 324 | 441 | 896 |
JavaScript | 2 | 48 | 6 | 207 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 13.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 53 | 66.25% |
▷ Protected methods | 27 | 33.75% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin