Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.68MB] [CPU: ▼16.96ms] Passed 4 tests
Server-side resources used by Tailored Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 32.22 ▼10.32 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.91 ▼0.27 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.19 ▲1.46 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.77 | 35.37 ▼58.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.15 ▲1.07 |
Tailored Shortcodes /wp-admin/edit.php?post_type=tailored_shortcode | 3.29 | 33.14 |
Add Shortcode /wp-admin/post-new.php?post_type=tailored_shortcode | 3.11 | 29.92 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Tailored Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.18 ▼1.55 | 1.81 ▼0.20 | 39.87 ▼9.21 |
Dashboard /wp-admin | 2,233 ▲54 | 4.86 ▼0.95 | 110.59 ▲10.48 | 42.79 ▼3.73 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.05 ▼0.13 | 40.42 ▲0.39 | 34.67 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,571 ▲28 | 18.31 ▼0.04 | 608.76 ▼3.75 | 64.26 ▲11.55 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.19 ▼0.00 | 95.79 ▼1.44 | 41.24 ▼1.13 |
Tailored Shortcodes /wp-admin/edit.php?post_type=tailored_shortcode | 1,080 | 1.98 | 31.66 | 28.11 |
Add Shortcode /wp-admin/post-new.php?post_type=tailored_shortcode | 1,733 | 5.24 | 93.98 | 43.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=tailored_shortcode
- > Notice in wp-content/plugins/tailored-shortcodes/plugin.php+89
Undefined index: save_shortcode
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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tailored-shortcodes/plugin.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: No tags were detected
tailored-shortcodes/plugin.php 85% from 13 tests
The principal PHP file in "Tailored Shortcodes" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tailored-shortcodes.php" instead of "plugin.php")
- Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin122 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 32 | 122 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin