Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼140.12ms] Passed 4 tests
A check of server-side resources used by Shortcode Lister
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 41.90 ▲17.60 |
Dashboard /wp-admin | 3.09 ▲0.03 | 53.12 ▲2.41 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 52.76 ▲0.29 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 100.80 ▼554.18 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 36.08 ▼9.00 |
Shortcode Lister /wp-admin/options-general.php?page=shortcode-lister-settings | 3.00 | 31.58 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Shortcode Lister
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲149 | 15.76 ▲0.31 | 11.49 ▲2.53 | 46.30 ▼6.24 |
Dashboard /wp-admin | 2,975 ▲44 | 5.89 ▼0.03 | 140.50 ▼4.06 | 120.52 ▼4.92 |
Posts /wp-admin/edit.php | 2,747 ▲8 | 2.69 ▲0.01 | 67.49 ▼0.69 | 91.99 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,586 ▼5 | 20.79 ▲1.97 | 394.09 ▲9.68 | 111.12 ▼7.16 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.01 ▼0.01 | 170.46 ▲8.23 | 120.55 ▼5.08 |
Shortcode Lister /wp-admin/options-general.php?page=shortcode-lister-settings | 1,184 | 2.36 | 57.01 | 79.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/shortcode-lister/includes/get-shortcodes.php
- > /wp-content/plugins/shortcode-lister/includes/scripts-styles.php
- > /wp-content/plugins/shortcode-lister/includes/shortcode-lister-settings.php
- > /wp-content/plugins/shortcode-lister/shortcode-lister.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
3 plugin tags: shortcode, list, plugin
shortcode-lister/shortcode-lister.php Passed 13 tests
"Shortcode Lister" version 2.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
101 characters long description:
A plugin to display a list of all the shortcodes available for use on the post and page edit screens.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin148 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 24 | 99 | 138 |
JavaScript | 1 | 1 | 7 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 5 | |
▷ Global constants | 5 | 100.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
No PNG images were found in this plugin