Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.69ms] Passed 4 tests
This is a short check of server-side resources used by DCO Shortcodes Menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.79 ▼3.61 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.20 ▲2.69 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 52.14 ▼1.45 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 88.87 ▼8.37 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 40.17 ▲3.87 |
DCO Shortcodes Menu /wp-admin/edit.php?post_type=dco_shortcode | 3.34 | 38.90 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
DCO Shortcodes Menu: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.28 ▼0.07 | 1.74 ▼0.16 | 44.65 ▲2.82 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▲0.00 | 86.81 ▼4.83 | 39.38 ▼3.70 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.06 | 35.96 ▼7.01 | 32.69 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 22.95 ▼0.56 | 691.40 ▼8.22 | 35.78 ▼20.50 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.06 | 100.50 ▼0.28 | 42.12 ▼2.96 |
DCO Shortcodes Menu /wp-admin/edit.php?post_type=dco_shortcode | 1,106 | 1.91 | 32.50 | 30.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: editor, shortcodes menu, insert shortcode, tinymce, shortcode
dco-shortcodes-menu/dco-shortcodes-menu.php Passed 13 tests
The main file in "DCO Shortcodes Menu" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
Allows you to add shortcodes menu to the editor
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin955 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 134 | 14 | 752 |
JavaScript | 2 | 10 | 6 | 169 |
Sass | 1 | 5 | 0 | 21 |
CSS | 1 | 4 | 1 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 52 | 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 | 3 | |
▷ Global constants | 3 | 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
No PNG files were detected