Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.11MB] [CPU: ▲22.25ms] 75% from 4 tests
A check of server-side resources used by Coupons
It is recommended to improve the following
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.11MB on /wp-admin/post-new.php?post_type=issc-coupon)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.76 ▲5.29 | 72.38 ▲26.49 |
Dashboard /wp-admin | 8.78 ▲5.47 | 84.55 ▲32.31 |
Posts /wp-admin/edit.php | 8.78 ▲5.42 | 87.30 ▲27.93 |
Add New Post /wp-admin/post-new.php | 10.16 ▲4.27 | 114.52 ▲2.27 |
Media Library /wp-admin/upload.php | 8.78 ▲5.55 | 75.63 ▲36.46 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 8.78 | 64.60 |
IntellaSoft Coupon Creator /wp-admin/admin.php?page=coupons | 8.78 | 62.71 |
Coupons /wp-admin/edit.php?post_type=issc-coupon | 8.78 | 68.34 |
Add New /wp-admin/post-new.php?post_type=issc-coupon | 8.78 | 73.35 |
Server storage [IO: ▲6.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 534 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
fs_gdpr |
can_compress_scripts |
fs_debug_mode |
db_upgraded |
theysaidso_admin_options |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Coupons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲89 | 14.29 ▼0.31 | 1.98 ▲0.22 | 31.07 ▼17.85 |
Dashboard /wp-admin | 2,253 ▲76 | 5.65 ▲0.01 | 104.10 ▲0.40 | 48.13 ▲4.77 |
Posts /wp-admin/edit.php | 2,162 ▲59 | 2.07 ▲0.09 | 44.64 ▲3.21 | 39.80 ▲3.40 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 22.26 ▼0.72 | 689.62 ▼25.04 | 58.74 ▲3.95 |
Media Library /wp-admin/upload.php | 1,461 ▲64 | 4.45 ▲0.25 | 103.97 ▲0.38 | 44.89 ▼2.19 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 1,080 | 1.79 | 29.94 | 28.76 |
IntellaSoft Coupon Creator /wp-admin/admin.php?page=coupons | 1,250 | 1.82 | 33.34 | 51.88 |
Coupons /wp-admin/edit.php?post_type=issc-coupon | 1,120 | 2.01 | 38.46 | 30.85 |
Add New /wp-admin/post-new.php?post_type=issc-coupon | 2,204 | 3.35 | 103.81 | 39.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/coupons/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- widget_theysaidso_widget
- fs_gdpr
- fs_debug_mode
- fs_active_plugins
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- fs_accounts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
The following issues need your attention
- 43× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/coupons/plugins/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coupons/plugins/cmb2/example-functions.php:105
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/coupons/plugins/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/coupons/plugins/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/coupons/plugins/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coupons/inc/notices.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/coupons/plugins/cmb2/includes/CMB2_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/coupons/plugins/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/coupons/plugins/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/coupons/plugins/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% 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 coupons/assets to your readme.txt
coupons/coupons.php 85% from 13 tests
Analyzing the main PHP file in "Coupons" version 1.5.0
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin85,202 lines of code in 344 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 169 | 9,466 | 22,521 | 37,905 |
PO File | 120 | 14,315 | 18,502 | 32,323 |
JSON | 2 | 0 | 0 | 6,602 |
CSS | 23 | 250 | 1,190 | 4,568 |
JavaScript | 10 | 395 | 642 | 1,625 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 3 | 249 | 0 | 768 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 47.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 113 | |
▷ Abstract classes | 11 | 9.73% |
▷ Concrete classes | 102 | 90.27% |
▷ Final classes | 0 | 0.00% |
Methods | 1,674 | |
▷ Static methods | 264 | 15.77% |
▷ Public methods | 1,242 | 74.19% |
▷ Protected methods | 104 | 6.21% |
▷ Private methods | 328 | 19.59% |
Functions | 134 | |
▷ Named functions | 134 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 133 | |
▷ Global constants | 102 | 76.69% |
▷ Class constants | 31 | 23.31% |
▷ Public constants | 31 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugins/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
plugins/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
freemius/assets/img/coupons.png | 9.16KB | 5.26KB | ▼ 42.58% |
plugins/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
plugins/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |