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.05MB] [CPU: ▼0.65ms] Passed 4 tests
This is a short check of server-side resources used by Shortcode in Menus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.68 ▼6.68 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.00 ▼1.68 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.13 ▲2.92 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 96.97 ▲10.13 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.44 ▲2.86 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Shortcode in Menus: 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,825 ▲90 | 13.21 ▼1.16 | 1.70 ▼0.34 | 38.87 ▼5.95 |
Dashboard /wp-admin | 2,206 ▲21 | 4.81 ▼0.11 | 110.60 ▼8.52 | 39.73 ▼6.25 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.15 ▲0.10 | 43.04 ▲6.13 | 35.82 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.03 ▼0.12 | 602.44 ▼57.53 | 49.94 ▼14.88 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.24 ▲0.06 | 96.60 ▼5.54 | 45.29 ▼0.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5, #6, #7, #8 in shortcode-in-menus/assets to your readme.txt
shortcode-in-menus/shortcode-in-menus.php Passed 13 tests
"Shortcode in Menus" version 3.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
Allows you to add shortcodes in WordPress Navigation Menus
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
Success! There were no dangerous files found in this plugin276 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 93 | 273 | 239 |
JavaScript | 2 | 18 | 22 | 37 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 17 | 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
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