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: ▲0.13MB] [CPU: ▼5.59ms] Passed 4 tests
Analyzing server-side resources used by Boot-Modal
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.92 ▼0.43 |
Dashboard /wp-admin | 3.45 ▲0.14 | 48.07 ▼4.52 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.91 ▲0.58 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 80.17 ▼17.62 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.12 ▲0.21 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
bootmodal_plugin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Boot-Modal
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.69 ▼0.71 | 4.41 ▲2.40 | 43.38 ▼3.89 |
Dashboard /wp-admin | 2,225 ▲40 | 4.96 ▼0.90 | 107.89 ▲5.52 | 80.21 ▲35.43 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 1.97 ▼0.05 | 40.87 ▲2.36 | 36.36 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,684 ▲150 | 22.40 ▼1.05 | 739.15 ▲125.86 | 45.94 ▼15.60 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.23 ▲0.03 | 98.71 ▲3.81 | 47.13 ▲4.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- bootmodal_plugin_options
- widget_theysaidso_widget
Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× 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/boot-modal/boot_modal.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
3 plugin tags: modal, shortcode, bootstrap
boot-modal/boot_modal.php 85% from 13 tests
This is the main PHP file of "Boot-Modal" version 1.9.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("boot-modal.php" instead of "boot_modal.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,705 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 102 | 66 | 609 |
JavaScript | 3 | 93 | 45 | 438 |
PO File | 2 | 137 | 157 | 393 |
CSS | 4 | 2 | 28 | 163 |
Sass | 2 | 10 | 0 | 102 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo_small.png | 1.23KB | 0.58KB | ▼ 52.61% |
img/tinymce-icon.png | 1.73KB | 0.44KB | ▼ 74.41% |
img/logo.png | 6.96KB | 2.96KB | ▼ 57.43% |
img/logo_big.png | 1.81KB | 0.66KB | ▼ 63.44% |