Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.82ms] Passed 4 tests
A check of server-side resources used by Magic Coupon And Deal
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 38.07 ▼6.33 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.44 ▼5.78 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 49.44 ▲3.11 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 85.46 ▼6.65 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.16 ▼4.50 |
Coupons /wp-admin/edit.php?post_type=coupons | 3.32 | 36.69 |
Magic Coupon And Deal /wp-admin/plugins.php?page=mcad | 3.28 | 29.82 |
Add New /wp-admin/post-new.php?post_type=coupons | 6.03 | 78.10 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Magic Coupon And Deal
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲200 | 13.56 ▼0.82 | 8.37 ▲6.50 | 38.68 ▼3.68 |
Dashboard /wp-admin | 2,241 ▲53 | 5.83 ▼0.10 | 104.96 ▲2.87 | 39.16 ▼0.54 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.02 ▲0.01 | 40.23 ▲1.32 | 36.29 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.59 ▲0.43 | 669.17 ▼20.46 | 57.51 ▲5.51 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.12 ▼0.07 | 109.91 ▲2.79 | 48.84 ▲2.61 |
Coupons /wp-admin/edit.php?post_type=coupons | 1,097 | 1.98 | 29.51 | 26.07 |
Magic Coupon And Deal /wp-admin/plugins.php?page=mcad | 881 | 2.02 | 24.92 | 29.88 |
Add New /wp-admin/post-new.php?post_type=coupons | 1,769 | 18.54 | 856.05 | 70.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/magic-coupon-and-deal/public/partials/magic-coupon-and-deal-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/magic-coupon-and-deal/public/partials/templates/single-coupon.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/magic-coupon-and-deal/admin/partials/magic-coupon-and-deal-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: offers, coupon, deal, coupon plugin, coupon-website
magic-coupon-and-deal/magic-coupon-and-deal.php Passed 13 tests
The principal PHP file in "Magic Coupon And Deal" v. 1.0.0 is loaded by WordPress automatically on each request
63 characters long description:
A WP plugin that convert your wordpress blog to coupon website.
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
No dangerous file extensions were detected639 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 185 | 577 | 625 |
CSS | 2 | 3 | 17 | 8 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
A brief analysis 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.19 |
Average class complexity | 5.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 2 | 4.26% |
▷ Public methods | 39 | 82.98% |
▷ Protected methods | 3 | 6.38% |
▷ Private methods | 5 | 10.64% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin