Benchmarks
Plugin footprint 83% 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.09MB] [CPU: ▼0.97ms] Passed 4 tests
Server-side resources used by Bootstrap Modals
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.75 ▼1.40 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.48 ▼2.81 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.43 ▲3.72 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 96.53 ▼2.85 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.80 ▲3.19 |
Bootstrap Modal /wp-admin/options-general.php?page=bootstrap-modal | 3.31 | 36.15 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Bootstrap Modals
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.75 ▼0.62 | 5.31 ▲3.42 | 37.73 ▼9.18 |
Dashboard /wp-admin | 2,207 ▲16 | 4.85 ▼0.04 | 113.60 ▲3.46 | 40.93 ▼1.67 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.08 | 39.74 ▲1.04 | 35.38 ▲2.00 |
Add New Post /wp-admin/post-new.php | 1,522 ▼10 | 23.09 ▲0.06 | 656.45 ▲12.14 | 59.71 ▼8.72 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.14 ▼0.18 | 95.96 ▼4.19 | 47.76 ▲5.54 |
Bootstrap Modal /wp-admin/options-general.php?page=bootstrap-modal | 2,144 | 3.64 | 117.55 | 33.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bootstrap-modals/inc/options-page-wrapper.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bootstrap-modal
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bootstrap-modal
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bootstrap-modal
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultString is deprecated since version 5.5.0! Use wp.i18n instead.
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bootstrap-modal
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== bootstrap-modals ===
)
bootstrap-modals/modal.php 85% from 13 tests
The primary PHP file in "Bootstrap Modals" version 1.3.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bootstrap-modals.php" instead of "modal.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin788 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 177 | 166 | 638 |
CSS | 1 | 3 | 7 | 147 |
JavaScript | 2 | 1 | 20 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin