Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.13ms] 75% from 4 tests
An overview of server-side resources used by Modal Popup Box - Popup Builder, Show Offers And News in Popup
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 646.40ms on /wp-admin/edit.php?post_type=modalpopupbox&page=sr-featured-plugin-page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 47.45 ▲10.37 |
Dashboard /wp-admin | 3.45 ▲0.11 | 42.79 ▼19.62 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 46.40 ▼1.87 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 87.26 ▼1.10 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 33.36 ▲2.09 |
Featured Plugin /wp-admin/edit.php?post_type=modalpopupbox&page=sr-featured-plugin-page | 3.63 | 646.40 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.39 | 32.29 |
Add New /wp-admin/post-new.php?post_type=modalpopupbox | 3.61 | 45.70 |
All Modal Popup Box /wp-admin/edit.php?post_type=modalpopupbox | 3.31 | 32.52 |
Our Theme /wp-admin/edit.php?post_type=modalpopupbox&page=sr-theme-page | 3.32 | 29.57 |
Server storage [IO: ▲4.09MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Modal Popup Box - Popup Builder, Show Offers And News in Popup: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲183 | 13.43 ▼0.92 | 8.22 ▲6.38 | 37.67 ▲0.70 |
Dashboard /wp-admin | 2,268 ▲88 | 5.64 ▲0.06 | 96.10 ▲6.36 | 47.83 ▲6.09 |
Posts /wp-admin/edit.php | 2,182 ▲82 | 2.06 ▲0.05 | 40.76 ▲4.16 | 40.87 ▲5.38 |
Add New Post /wp-admin/post-new.php | 1,589 ▲49 | 23.33 ▲4.94 | 585.03 ▼80.13 | 51.88 ▼14.63 |
Media Library /wp-admin/upload.php | 1,484 ▲81 | 4.25 ▲0.07 | 92.95 ▼0.87 | 46.21 ▲4.61 |
Featured Plugin /wp-admin/edit.php?post_type=modalpopupbox&page=sr-featured-plugin-page | 3,457 | 1.78 | 29.11 | 259.85 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,080 | 2.03 | 21.92 | 28.14 |
Add New /wp-admin/post-new.php?post_type=modalpopupbox | 3,355 | 8.20 | 215.38 | 376.28 |
All Modal Popup Box /wp-admin/edit.php?post_type=modalpopupbox | 1,160 | 1.97 | 32.68 | 32.69 |
Our Theme /wp-admin/edit.php?post_type=modalpopupbox&page=sr-theme-page | 1,006 | 2.18 | 24.85 | 40.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=modalpopupbox
- > Notice in wp-content/plugins/modal-popup-box/modal-popup-box.php+105
Undefined variable: columns
- > GET request to /wp-admin/edit.php?post_type=modalpopupbox
- > Notice in wp-content/plugins/modal-popup-box/modal-popup-box.php+105
Trying to access array offset on value of type null
SRP 50% 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 fix the following items
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/modal-popup-box/modal-popup-box.php:314
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/modal-popup-box/our-theme/awp-theme.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/modal-popup-box/class-tgm-plugin-activation.php:2129
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/modal-popup-box/include/modal-popup-box-output.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/modal-popup-box/include/modal-popup-box-output.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/modal-popup-box/include/animation-effect.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/modal-popup-box/include/modal-popup-box-output.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/modal-popup-box/featured-plugins/featured-plugins.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/edit.php?post_type=modalpopupbox&page=sr-featured-plugin-page
- > Network (severe)
wp-content/plugins/modal-popup-box/css/bootstrap.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=modalpopupbox&page=sr-featured-plugin-page
- > Network (severe)
wp-content/plugins/modal-popup-box/js/bootstrap.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=modalpopupbox&page=sr-featured-plugin-page
- > Network (severe)
wp-content/plugins/modal-popup-box/js/featured-plugins/acl-media-upload-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=modalpopupbox&page=sr-featured-plugin-page
- > Network (severe)
wp-content/plugins/modal-popup-box/js/featured-plugins/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=modalpopupbox&page=sr-featured-plugin-page
- > Network (severe)
wp-content/plugins/modal-popup-box/featured-plugins/fonts/bootstrap/glyphicons-halflings-regular-2.html - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=modalpopupbox&page=sr-featured-plugin-page
- > Network (severe)
wp-content/plugins/modal-popup-box/featured-plugins/fonts/bootstrap/glyphicons-halflings-regular-3.html - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=modalpopupbox&page=sr-theme-page
- > Network (severe)
wp-content/plugins/modal-popup-box/js/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: modal popup, popup maker, popup box, responsive popups, popup builder...
modal-popup-box/modal-popup-box.php 92% from 13 tests
"Modal Popup Box - Popup Builder, Show Offers And News in Popup" version 1.4.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin46,582 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 16 | 3,362 | 620 | 34,068 |
JavaScript | 10 | 586 | 269 | 7,410 |
PHP | 8 | 618 | 1,715 | 3,248 |
SVG | 3 | 0 | 0 | 1,628 |
PO File | 1 | 102 | 108 | 228 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 117 | |
▷ Static methods | 5 | 4.27% |
▷ Public methods | 92 | 78.63% |
▷ Protected methods | 25 | 21.37% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.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
3 PNG files occupy 0.53MB with 0.35MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
our-theme/img/aneeq-premium.png | 165.42KB | 57.84KB | ▼ 65.04% |
assets/img/modal-pop-up-box.png | 309.42KB | 99.25KB | ▼ 67.92% |
assets/img/modal-popup-box.png | 69.21KB | 25.70KB | ▼ 62.87% |