Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.31ms] Passed 4 tests
An overview of server-side resources used by Twitter Bootstrap Collapse aka Accordian Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.84 ▼7.46 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.65 ▼5.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.43 ▲1.42 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.63 ▼8.83 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.37 ▲0.97 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Twitter Bootstrap Collapse aka Accordian Shortcode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.73 ▼0.83 | 1.69 ▼0.06 | 42.16 ▼2.65 |
Dashboard /wp-admin | 2,213 ▲21 | 4.87 ▼0.09 | 102.55 ▼12.65 | 38.04 ▼7.97 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.03 | 37.20 ▼1.08 | 30.55 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.93 ▼0.20 | 589.76 ▼59.35 | 95.45 ▲35.48 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.16 ▼0.06 | 95.89 ▼10.02 | 41.42 ▼0.70 |
TBS Collapse /wp-admin/tbs_collapse.php | 26 | 0.44 | 0.11 | 13.97 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitter-bootstrap-collapse-aka-accordian-shortcode/tbs_collapse.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/twitter-bootstrap-collapse-aka-accordian-shortcode/admin_view.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/tbs_collapse.php
- > Network (severe)
wp-admin/tbs_collapse.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (screenshot-2.png)
twitter-bootstrap-collapse-aka-accordian-shortcode/tbs_collapse.php 92% from 13 tests
The main PHP script in "Twitter Bootstrap Collapse aka Accordian Shortcode" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("twitter-bootstrap-collapse-aka-accordian-shortcode.php" instead of "tbs_collapse.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 plugin104 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 26 | 104 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 4 | |
▷ Named functions | 4 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 10.10KB | 5.26KB | ▼ 47.89% |
screenshot-1.png | 8.73KB | 4.74KB | ▼ 45.73% |