Benchmarks
Plugin footprint 83% 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: ▲1.52MB] [CPU: ▲6.86ms] Passed 4 tests
This is a short check of server-side resources used by Popup Box - Best WordPress Popup Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.71 ▲3.25 | 53.85 ▲13.65 |
Dashboard /wp-admin | 4.79 ▲1.49 | 71.68 ▲21.45 |
Posts /wp-admin/edit.php | 4.83 ▲1.47 | 62.62 ▲13.18 |
Add New Post /wp-admin/post-new.php | 7.50 ▲1.62 | 88.93 ▼9.46 |
Media Library /wp-admin/upload.php | 4.75 ▲1.52 | 43.69 ▲10.05 |
Popups /wp-admin/admin.php?page=ays-pb | 4.83 | 51.90 |
Categories /wp-admin/admin.php?page=ays-pb-categories | 4.81 | 61.19 |
Custom Fields /wp-admin/admin.php?page=ays-pb-attributes | 4.80 | 51.19 |
Export/Import /wp-admin/admin.php?page=ays-pb-export-import | 4.80 | 60.16 |
How to use /wp-admin/admin.php?page=ays-pb-how-to-use | 4.80 | 41.41 |
Our Products /wp-admin/admin.php?page=ays-pb-featured-plugins | 4.80 | 43.71 |
Analytics /wp-admin/admin.php?page=ays-pb-reports | 4.80 | 52.38 |
PRO Features /wp-admin/admin.php?page=ays-pb-pb-features | 4.95 | 48.07 |
Submissions /wp-admin/admin.php?page=ays-pb-subscribes | 4.80 | 48.85 |
General Settings /wp-admin/admin.php?page=ays-pb-settings | 4.89 | 48.66 |
Server storage [IO: ▲6.04MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 217 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_ays_pb_settings |
wp_ays_pb_categories |
wp_ays_pb |
New WordPress options |
---|
ays_pb_banner_time |
theysaidso_admin_options |
ays_pb_db_version |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
ays_pb_sale_btn |
ays_pb_sale_dismiss_for_two_month_spring |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Popup Box - Best WordPress Popup Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,171 ▲409 | 13.94 ▼0.41 | 14.71 ▲12.84 | 38.59 ▼6.68 |
Dashboard /wp-admin | 2,253 ▲79 | 5.55 ▼0.01 | 105.38 ▲17.00 | 98.10 ▲55.89 |
Posts /wp-admin/edit.php | 2,173 ▲73 | 2.01 ▼0.02 | 37.04 ▼4.77 | 32.59 ▼2.10 |
Add New Post /wp-admin/post-new.php | 1,586 ▲60 | 23.10 ▲0.16 | 664.82 ▼0.46 | 51.35 ▼0.82 |
Media Library /wp-admin/upload.php | 1,473 ▲79 | 4.16 ▼0.01 | 94.90 ▼0.27 | 63.83 ▲23.78 |
Popups /wp-admin/admin.php?page=ays-pb | 2,797 | 14.74 | 349.10 | 155.77 |
Categories /wp-admin/admin.php?page=ays-pb-categories | 2,034 | 5.84 | 99.30 | 109.04 |
Custom Fields /wp-admin/admin.php?page=ays-pb-attributes | 2,137 | 16.11 | 318.21 | 88.69 |
Export/Import /wp-admin/admin.php?page=ays-pb-export-import | 1,775 | 5.78 | 68.19 | 65.65 |
How to use /wp-admin/admin.php?page=ays-pb-how-to-use | 1,816 | 5.74 | 72.45 | 78.02 |
Our Products /wp-admin/admin.php?page=ays-pb-featured-plugins | 1,837 | 5.79 | 68.82 | 71.87 |
Analytics /wp-admin/admin.php?page=ays-pb-reports | 1,688 | 5.72 | 70.94 | 69.73 |
PRO Features /wp-admin/admin.php?page=ays-pb-pb-features | 2,982 | 5.75 | 69.98 | 83.64 |
Submissions /wp-admin/admin.php?page=ays-pb-subscribes | 1,655 | 5.80 | 64.07 | 68.62 |
General Settings /wp-admin/admin.php?page=ays-pb-settings | 3,224 | 6.02 | 74.01 | 86.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- ays_pb_banner_time
- widget_recent-posts
- widget_recent-comments
- ays_pb_sale_btn
- ays_pb_sale_dismiss_for_two_month_spring
- db_upgraded
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 0% 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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ays-popup-box/public/partials/ays-pb-public-display.php
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ays-popup-box/admin/partials/how-to-use/ays-pb-how-to-use.php:9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ays-popup-box/admin/partials/settings/popup-box-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ays-popup-box/admin/partials/attributes/actions/ays-pb-attributes-actions.php:3
- > PHP Warning
Use of undefined constant AYS_PB_ADMIN_URL - assumed 'AYS_PB_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ays-popup-box/admin/partials/ays-pb-categories-display.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ays-popup-box/admin/partials/reports/ays-pb-reports-display.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ays-popup-box/admin/partials/export-import/ays-pb-export-import.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/ays-popup-box/includes/lists/class-ays-pb-list-table.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ays-popup-box/admin/partials/ays-pb-categories-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/ays-popup-box/admin/partials/features/ays-pb-plugin-featured-display.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/ays-popup-box/includes/lists/class-ays-pb-popup-categories-list-table.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: lead generation, marketing, exit popup, modal popup, pop up...
ays-popup-box/ays-pb.php 92% from 13 tests
The main PHP script in "Popup Box - Best WordPress Popup Plugin" version 3.9.5 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ays-popup-box.php" instead of "ays-pb.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin34,559 lines of code in 130 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 2,344 | 1,860 | 18,398 |
CSS | 13 | 1,488 | 2,449 | 6,518 |
PO File | 3 | 2,164 | 3,371 | 5,659 |
JavaScript | 11 | 511 | 565 | 3,622 |
SVG | 72 | 102 | 0 | 362 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,544)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 315)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 180.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,544.00 |
Average method complexity | 13.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 315.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 218 | |
▷ Static methods | 36 | 16.51% |
▷ Public methods | 206 | 94.50% |
▷ Protected methods | 2 | 0.92% |
▷ Private methods | 10 | 4.59% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
68 PNG files occupy 1.30MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/remove-hover.png | 2.58KB | 2.55KB | ▼ 1.36% |
admin/images/integrations/sendgrid_logo.png | 0.49KB | 0.45KB | ▼ 8.80% |
admin/images/avatars/personal_avatar.png | 19.02KB | 7.39KB | ▼ 61.18% |
admin/images/avatars/pro_avatar.png | 22.69KB | 8.75KB | ▼ 61.46% |
admin/images/integrations/mailerlite.png | 1.25KB | 1.11KB | ▼ 10.86% |