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
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲1.60ms] Passed 4 tests
An overview of server-side resources used by Inline Shortcodes for Bootstrap Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.90 ▲4.09 |
Dashboard /wp-admin | 3.40 ▲0.06 | 54.44 ▼7.39 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.97 ▲3.75 |
Add New Post /wp-admin/post-new.php | 7.22 ▲1.33 | 642.56 ▲550.82 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 40.69 ▲5.96 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Inline Shortcodes for Bootstrap Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,471 ▲1,725 | 13.55 ▼1.04 | 1.77 ▼0.00 | 44.00 ▲0.82 |
Dashboard /wp-admin | 3,875 ▲1,687 | 5.32 ▲0.45 | 116.56 ▲4.61 | 39.96 ▼3.67 |
Posts /wp-admin/edit.php | 3,761 ▲1,672 | 2.53 ▲0.50 | 36.93 ▼0.51 | 30.35 ▼5.01 |
Add New Post /wp-admin/post-new.php | 3,200 ▲1,658 | 23.33 ▲5.24 | 790.43 ▲152.13 | 67.02 ▲6.22 |
Media Library /wp-admin/upload.php | 3,055 ▲1,667 | 4.51 ▲0.32 | 98.89 ▼8.10 | 42.70 ▼1.17 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
- 6× 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/inline-shortcodes-for-bootstrap/core/tinymce.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/inline-shortcodes-for-bootstrap/front/shortcode.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/inline-shortcodes-for-bootstrap/conf.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/inline-shortcodes-for-bootstrap/conf.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inline-shortcodes-for-bootstrap/front/scripts.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inline-shortcodes-for-bootstrap/core/scripts.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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: bootstrap, shortcode
inline-shortcodes-for-bootstrap/init.php 85% from 13 tests
This is the main PHP file of "Inline Shortcodes for Bootstrap Plugin" version 1.0beta..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.0beta...")
- Main file name: The principal plugin file should be the same as the plugin slug ("inline-shortcodes-for-bootstrap.php" instead of "init.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
There were no executable files found in this plugin18,174 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 107 | 146 | 9,534 |
JavaScript | 7 | 819 | 612 | 3,485 |
Sass | 13 | 28 | 24 | 1,520 |
LESS | 13 | 28 | 34 | 1,510 |
SVG | 2 | 0 | 0 | 928 |
HTML | 30 | 71 | 1 | 695 |
PHP | 8 | 74 | 200 | 502 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 6.00KB | 4.74KB | ▼ 20.99% |