Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/greedycoupon/greedycoupon.php+162
Undefined index: gd_permalink
Server metrics [RAM: ▼1.84MB] [CPU: ▼54.13ms] Passed 4 tests
Server-side resources used by GreedyCoupon - Wordpress Coupon Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 4.66 ▼40.62 |
Dashboard /wp-admin | 2.17 ▼1.13 | 7.08 ▼40.89 |
Posts /wp-admin/edit.php | 2.17 ▼1.18 | 6.48 ▼40.20 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.71 | 6.78 ▼94.79 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.64 ▼28.47 |
Add New /wp-admin/post-new.php?post_type=greedycoupon | 2.17 | 6.07 |
All Coupon /wp-admin/edit.php?post_type=greedycoupon | 2.17 | 7.70 |
Server storage [IO: ▲1.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for GreedyCoupon - Wordpress Coupon Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 7,718 ▲4,983 | 14.88 ▲0.13 | 5.98 ▲4.24 | 39.89 ▼11.11 |
Dashboard /wp-admin | 6,996 ▲4,805 | 6.02 ▲1.11 | 145.41 ▲39.17 | 74.57 ▲36.08 |
Posts /wp-admin/edit.php | 6,899 ▲4,810 | 2.81 ▲0.82 | 73.38 ▲37.49 | 34.83 ▲1.40 |
Add New Post /wp-admin/post-new.php | 3,957 ▲2,418 | 18.28 ▼5.05 | 733.94 ▲57.43 | 61.57 ▲4.22 |
Media Library /wp-admin/upload.php | 6,190 ▲4,808 | 5.42 ▲1.14 | 142.12 ▲41.12 | 46.74 ▲4.07 |
Add New /wp-admin/post-new.php?post_type=greedycoupon | 7,230 | 7.68 | 245.19 | 128.93 |
All Coupon /wp-admin/edit.php?post_type=greedycoupon | 5,860 | 2.71 | 69.16 | 29.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/greedycoupon/greedycoupon.php+162
Undefined index: gd_permalink
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=greedycoupon
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/greedycoupon/greedycoupon.php+162
Undefined index: gd_permalink
- > GET request to /wp-admin/post-new.php?post_type=greedycoupon
- > Notice in wp-content/plugins/greedycoupon/admin/coupon-meta.php+227
Undefined index: coupon_show
- > GET request to /wp-admin/post-new.php?post_type=greedycoupon
- > Notice in wp-content/plugins/greedycoupon/admin/coupon-meta.php+261
Undefined index: coupon_affiliate_link
- > GET request to /wp-admin/post-new.php?post_type=greedycoupon
- > Notice in wp-content/plugins/greedycoupon/admin/coupon-meta.php+297
Undefined index: coupon_store_name
- > GET request to /wp-admin/post-new.php?post_type=greedycoupon
- > Notice in wp-content/plugins/greedycoupon/admin/coupon-meta.php+333
Undefined index: coupon_short_desc
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=greedycoupon
- > Notice in wp-content/plugins/greedycoupon/admin/coupon-meta.php+457
Undefined index: coupon_count
- > GET request to /wp-admin/post-new.php?post_type=greedycoupon
- > Notice in wp-content/plugins/greedycoupon/admin/coupon-meta.php+521
Undefined index: coupon_0_discount
- > GET request to /wp-admin/post-new.php?post_type=greedycoupon
- > Notice in wp-content/plugins/greedycoupon/admin/coupon-meta.php+159
Undefined variable: o
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (2.), #3 (4.), #5 ()
greedycoupon/greedycoupon.php Passed 13 tests
The main PHP script in "GreedyCoupon - Wordpress Coupon Plugin" version 1.0.5 is automatically included on every request by WordPress
67 characters long description:
GreedyCoupon is an customized coupon plugin for wordpress websites.
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
Success! There were no dangerous files found in this plugin7,411 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 960 | 1,836 | 3,879 |
CSS | 13 | 40 | 95 | 2,485 |
PHP | 10 | 831 | 36 | 853 |
XML | 11 | 0 | 0 | 106 |
Markdown | 1 | 37 | 0 | 69 |
Sass | 1 | 6 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.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 0% from 2 tests
Image compression 0% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 1.03MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/arrow-left.png | 0.21KB | 0.21KB | 0.00% |
assets/images/arrow-right.png | 0.21KB | 0.20KB | ▼ 4.19% |
assets/images/discount-sticker.png | 30.23KB | 2.40KB | ▼ 92.05% |
screenshot-2.png | 406.05KB | 141.00KB | ▼ 65.27% |
(invalid) screenshot-5.png | 30.79KB | 0.00KB | ▼ 100.00% |