Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.66ms] Passed 4 tests
This is a short check of server-side resources used by JC Coupon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.20 ▼4.82 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.47 ▲3.75 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.53 ▼0.49 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.95 ▼17.09 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.64 ▲6.57 |
Manage Coupons /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php_manage | 3.23 | 32.71 |
Add Coupon /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php_add | 3.21 | 28.47 |
Import Coupons /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php_import | 3.23 | 30.66 |
Manage Categories /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php_categories_settings | 3.23 | 31.97 |
JC WP-Coupons Lite /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php | 3.23 | 25.33 |
Server storage [IO: ▲1.26MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 90 new files
Database: 2 new tables, 16 new options
New tables |
---|
wp_jcorgcr_categories |
wp_jcorgcr_coupons |
New WordPress options |
---|
widget_recent-comments |
jcorgcr_db_version |
can_compress_scripts |
db_upgraded |
jcorgcr_obfuscate |
jcorgcr_default_notification_email |
jcorgcr_default_failure_limit |
jcorgcr_default_height |
widget_recent-posts |
jcorgcr_default_theme_color |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for JC Coupon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲202 | 13.92 ▼0.45 | 5.68 ▲3.89 | 41.50 ▼0.13 |
Dashboard /wp-admin | 2,243 ▲54 | 5.38 ▲0.49 | 111.34 ▲6.11 | 82.71 ▲43.18 |
Posts /wp-admin/edit.php | 2,157 ▲68 | 2.32 ▲0.28 | 39.28 ▼0.43 | 33.54 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,718 ▲185 | 22.73 ▼0.36 | 644.39 ▼51.28 | 31.56 ▼17.15 |
Media Library /wp-admin/upload.php | 1,457 ▲69 | 4.62 ▲0.45 | 91.17 ▼13.82 | 68.61 ▲24.85 |
Manage Coupons /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php_manage | 1,015 | 2.45 | 35.76 | 35.25 |
Add Coupon /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php_add | 1,424 | 2.55 | 52.77 | 87.74 |
Import Coupons /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php_import | 940 | 2.28 | 30.57 | 36.03 |
Manage Categories /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php_categories_settings | 891 | 2.29 | 27.86 | 31.23 |
JC WP-Coupons Lite /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php | 1,080 | 2.29 | 28.29 | 30.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_jcorgcr_coupons
- wp_jcorgcr_categories
- Zombie WordPress options were found after uninstall: 16 options
- theysaidso_admin_options
- jcorgcr_obfuscate
- jcorgcr_default_notification_email
- jcorgcr_default_width
- jcorgcr_db_version
- widget_recent-comments
- jcorgcr_default_coupon_category
- disply_jcorgcr_url
- jcorgcr_default_failure_limit
- db_upgraded
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php_manage
- > POST request to /wp-content/plugins/jaspreetchahals-coupons-lite/jcorgcrjax.php?req_type=mcp&s=0&srt=id&_wpnonce=2426c65e68
- > Notice in wp-content/plugins/jaspreetchahals-coupons-lite/jcorgcrjax.php+71
Undefined index: category_id
- 31 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php_add
- > Notice in wp-content/plugins/jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php+559
Undefined variable: coupon
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php:15
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Manage Coupons - screenshot-1.png), #2 (Add Coupons - screenshot-2.png), #3 (Coupon Usage - screenshot-3.png)
jaspreetchahals-coupons-lite/jaspreetchahals-coupons-lite.php 92% from 13 tests
Analyzing the main PHP file in "JC Coupon" version 3.2
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 196 characters long)
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
Good job! No executable or dangerous file extensions detected2,555 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 100 | 345 | 1,149 |
PHP | 3 | 92 | 48 | 1,054 |
JavaScript | 5 | 99 | 71 | 352 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 2.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 | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
73 PNG files occupy 1.00MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/scissors_blue.png | 1.54KB | 0.54KB | ▼ 64.98% |
screenshots/jcouponadd.PNG | 114.22KB | 38.07KB | ▼ 66.67% |
css/ui-darkness/images/ui-bg_inset-soft_30_f58400_1x100.png | 0.11KB | 0.18KB | 0.00% |
images/star_grey.png | 0.74KB | 0.67KB | ▼ 9.80% |
images/scisors.png | 4.70KB | 1.99KB | ▼ 57.62% |