Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.13ms] Passed 4 tests
Analyzing server-side resources used by WP Shortcode by MyThemeShop
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 40.38 ▼5.68 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.31 ▲1.93 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.68 ▲4.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.61 ▼3.73 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.78 ▲2.96 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
wp_shortcode_activated |
wp_shortcode_notice_views |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Shortcode by MyThemeShop
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.57 ▲0.36 | 1.98 ▼3.06 | 45.20 ▲0.64 |
Dashboard /wp-admin | 2,217 ▲25 | 5.84 ▲0.89 | 101.30 ▼15.78 | 40.85 ▼3.11 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.01 ▼0.04 | 35.92 ▲3.32 | 33.74 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.15 ▲0.04 | 620.17 ▼40.76 | 56.93 ▼4.23 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▲0.03 | 94.02 ▼19.88 | 42.87 ▼2.90 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- wp_shortcode_notice_views
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- wp_shortcode_activated
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-shortcode/tinymce/langs.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-shortcode/tinymce/tinymce.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-shortcode/tinymce/shortcodes.php:11
- > 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 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-shortcode/wp-shortcode.php 92% from 13 tests
"WP Shortcode by MyThemeShop" version 1.4.17's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
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
Good job! No executable or dangerous file extensions detected1,674 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 132 | 313 | 1,021 |
JavaScript | 5 | 54 | 55 | 371 |
PO File | 1 | 79 | 106 | 192 |
CSS | 3 | 0 | 16 | 90 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 52 | |
▷ Named functions | 50 | 96.15% |
▷ Anonymous functions | 2 | 3.85% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/toggle-down.png | 0.10KB | 0.12KB | 0.00% |
images/toggle-up.png | 0.09KB | 0.12KB | 0.00% |
tinymce/shortcode.png | 0.36KB | 0.39KB | 0.00% |