Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.21MB] [CPU: ▼45.36ms] Passed 4 tests
Server-side resources used by Bootstrap modal popup
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.77 ▼0.69 | 13.83 ▼25.32 |
Dashboard /wp-admin | 2.81 ▼0.53 | 16.54 ▼46.16 |
Posts /wp-admin/edit.php | 2.82 ▼0.54 | 15.84 ▼27.53 |
Add New Post /wp-admin/post-new.php | 2.81 ▼3.07 | 15.02 ▼82.41 |
Media Library /wp-admin/upload.php | 2.81 ▼0.41 | 16.82 ▼18.62 |
Bootstrap modal popup /wp-admin/options-general.php?page=bmp-setting-admin | 2.82 | 15.32 |
Server storage [IO: ▲0.84MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
bmp_options |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bootstrap modal popup
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 14.69 ▲0.35 | 2.25 ▲0.55 | 47.55 ▲4.93 |
Dashboard /wp-admin | 2,199 ▲25 | 5.63 ▲0.06 | 95.88 ▼5.97 | 42.98 ▼0.14 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.05 | 35.73 ▼4.46 | 36.31 ▲2.94 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.10 ▼0.07 | 672.26 ▲2.55 | 56.33 ▼1.41 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.24 ▲0.04 | 95.31 ▼20.27 | 45.57 ▼3.82 |
Bootstrap modal popup /wp-admin/options-general.php?page=bmp-setting-admin | 1,551 | 6.61 | 135.94 | 59.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/bootstrap-modal-popup/bootstrap_modal_popup.php+47
Illegal string offset 'cookie_timeout'
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- bmp_options
- widget_recent-posts
Smoke tests 50% 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/options-general.php?page=bmp-setting-admin
- > Warning in wp-content/plugins/bootstrap-modal-popup/bootstrap_modal_popup.php+47
Illegal string offset 'cookie_timeout'
- > GET request to /wp-admin/options-general.php?page=bmp-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=bmp-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bootstrap-modal-popup/bootstrap_modal_popup.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Example of popup), #2 (Admin view)
bootstrap-modal-popup/bootstrap_modal_popup.php 85% from 13 tests
"Bootstrap modal popup" version 0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Make the plugin description longer than 10 characters (currently 5 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bootstrap-modal-popup.php" instead of "bootstrap_modal_popup.php")
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
Success! There were no dangerous files found in this plugin265 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 64 | 74 | 265 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.83MB with 0.56MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 326.72KB | 108.87KB | ▼ 66.68% |
screenshot-1.png | 524.92KB | 171.16KB | ▼ 67.39% |