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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.03ms] Passed 4 tests
This is a short check of server-side resources used by Bootstrap collapse
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.43 ▼3.05 |
Dashboard /wp-admin | 3.33 ▼0.01 | 58.28 ▼4.09 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.53 ▲2.97 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 99.90 ▼3.94 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.05 ▲5.16 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options |
---|
tbc_title_color |
theysaidso_admin_options |
tbc_inner_border |
widget_recent-posts |
widget_theysaidso_widget |
tbc_group_border |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Bootstrap collapse
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲177 | 13.83 ▼0.92 | 6.05 ▲4.13 | 43.40 ▲3.16 |
Dashboard /wp-admin | 2,241 ▲50 | 5.11 ▲0.22 | 106.79 ▼2.60 | 39.66 ▲0.26 |
Posts /wp-admin/edit.php | 2,129 ▲43 | 2.34 ▲0.28 | 44.09 ▲6.74 | 35.54 ▲1.10 |
Add New Post /wp-admin/post-new.php | 1,551 ▲27 | 18.44 ▼5.12 | 622.20 ▼21.78 | 37.77 ▼14.31 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.49 ▲0.29 | 103.80 ▲4.25 | 43.37 ▲1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bootstrap-collapse/bootstrap_collapse.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
bootstrap-collapse/bootstrap_collapse.php 92% from 13 tests
The entry point to "Bootstrap collapse" version 1.0.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bootstrap-collapse.php" instead of "bootstrap_collapse.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin306 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 57 | 46 | 127 |
PHP | 1 | 41 | 13 | 126 |
CSS | 2 | 14 | 18 | 53 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 0 | |
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 | 9 | |
▷ Named functions | 9 | 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
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 14.24KB | 9.04KB | ▼ 36.49% |
screenshot-3.png | 17.25KB | 9.29KB | ▼ 46.14% |
screenshot-1.png | 20.65KB | 11.85KB | ▼ 42.64% |