Benchmarks
Plugin footprint Passed 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: ▼317.03ms] Passed 4 tests
A check of server-side resources used by Shorty - The Shortcode Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.48 | 62.74 ▲44.41 |
Dashboard /wp-admin | 3.48 ▲0.08 | 36.39 ▲0.25 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 42.45 ▼1.99 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.02 | 97.35 ▼1,269.50 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 27.02 ▲3.14 |
Add New /wp-admin/post-new.php?post_type=shortcode | 3.69 | 45.12 |
All Shortcodes /wp-admin/edit.php?post_type=shortcode | 3.46 | 27.04 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Shorty - The Shortcode Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,785 ▲31 | 15.66 ▼0.38 | 7.14 ▲0.79 | 2.22 ▼0.37 |
Dashboard /wp-admin | 2,916 ▲58 | 6.12 ▼0.08 | 120.55 ▼20.23 | 163.23 ▼9.08 |
Posts /wp-admin/edit.php | 2,724 ▲33 | 3.25 ▲0.01 | 63.25 ▼2.71 | 142.00 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,719 ▲58 | 21.15 ▲5.30 | 459.89 ▲23.01 | 165.54 ▲6.42 |
Media Library /wp-admin/upload.php | 1,737 ▲39 | 5.48 ▼0.02 | 137.68 ▼5.54 | 188.41 ▼0.60 |
Add New /wp-admin/post-new.php?post_type=shortcode | 2,890 | 10.07 | 199.13 | 215.22 |
All Shortcodes /wp-admin/edit.php?post_type=shortcode | 1,414 | 3.16 | 60.43 | 113.30 |
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
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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 items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/shorty/shorty.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shorty/includes/admin/tinymce/tinymce.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: manage shortcode, editor, shortcode manager, shorty, manage shortcodes...
shorty/shorty.php 85% from 13 tests
The entry point to "Shorty - The Shortcode Manager" version 1.2.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin430 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 109 | 105 | 299 |
PO File | 1 | 29 | 34 | 86 |
JavaScript | 2 | 7 | 2 | 45 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/tinymce/assets/button.png | 1.53KB | 0.81KB | ▼ 47.06% |