Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.27MB] [CPU: ▼16.43ms] Passed 4 tests
Server-side resources used by Simple Shortcode Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.59 ▲0.58 |
Dashboard /wp-admin | 3.32 ▼0.03 | 50.69 ▼14.34 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.22 ▼1.19 |
Add New Post /wp-admin/post-new.php | 4.83 ▼1.06 | 51.86 ▼50.77 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.87 ▲1.44 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
ssb_plugins_data_scripts |
can_compress_scripts |
db_upgraded |
ssb_plugins_data_styles |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Shortcode Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.34 ▼0.02 | 1.56 ▼0.42 | 45.77 ▲2.01 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.07 | 88.83 ▼12.62 | 39.52 ▼2.56 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.98 ▼0.04 | 34.95 ▼1.60 | 35.01 ▲1.92 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,843 | 27.79 ▲4.67 | 920.99 ▲266.73 | 40.91 ▼13.57 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.14 ▼0.08 | 95.26 ▼8.45 | 45.17 ▲1.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- ssb_plugins_data_styles
- widget_recent-posts
- ssb_plugins_data_scripts
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Unterminated comment starting line 1 in wp-content/plugins/simple-shortcode-block/core/index.php on line 1
- > PHP Warning
Unterminated comment starting line 1 in wp-content/plugins/simple-shortcode-block/index.php on line 1
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: gutenberg, dynamic shortcode, block, shortcode
simple-shortcode-block/simple-shortcode-block.php Passed 13 tests
The main PHP file in "Simple Shortcode Block" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
A simple block to render a shortcode in a dynamic way.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected626 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 30 | 56 | 326 |
PHP | 7 | 117 | 437 | 270 |
Sass | 2 | 6 | 0 | 29 |
CSS | 2 | 1 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 1 | 3.70% |
▷ Private methods | 5 | 18.52% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin