Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼0.13ms] 75% from 4 tests
This is a short check of server-side resources used by Shortcode Maker
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 932.06ms on /wp-admin/edit.php?post_type=sm_shortcode&page=shortcode-maker/more-products.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 40.41 ▲2.01 |
Dashboard /wp-admin | 3.72 ▲0.42 | 46.69 ▼3.02 |
Posts /wp-admin/edit.php | 3.71 ▲0.36 | 1,113.01 ▲1,068.37 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 88.74 ▼2.39 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 37.21 ▲2.88 |
Shortcode Packages /wp-admin/edit.php?post_type=sm_shortcode&page=smps_shortcode_packages | 3.61 | 939.72 |
All Shortcode /wp-admin/edit.php?post_type=sm_shortcode | 3.69 | 917.87 |
News /wp-admin/edit.php?post_type=sm_shortcode&page=shortcode-maker/news.php | 3.60 | 940.55 |
Add New Shortcode /wp-admin/post-new.php?post_type=sm_shortcode | 3.84 | 54.38 |
Cybercraft Products /wp-admin/edit.php?post_type=sm_shortcode&page=shortcode-maker/more-products.php | 3.60 | 932.06 |
Server storage [IO: ▲4.60MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 74 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
sm_shortcode_package_list |
Browser metrics Passed 4 tests
A check of browser resources used by Shortcode Maker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲108 | 14.78 ▲0.20 | 1.67 ▼0.18 | 42.51 ▼0.75 |
Dashboard /wp-admin | 2,257 ▲69 | 4.85 ▼0.22 | 115.94 ▼1.44 | 41.90 ▼1.05 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.01 ▲0.01 | 34.98 ▼1.09 | 31.28 ▼3.89 |
Add New Post /wp-admin/post-new.php | 3,832 ▲2,295 | 23.99 ▲0.73 | 756.20 ▲52.73 | 38.96 ▼17.15 |
Media Library /wp-admin/upload.php | 1,433 ▲48 | 4.18 ▼0.02 | 101.28 ▼21.08 | 43.51 ▼11.20 |
Shortcode Packages /wp-admin/edit.php?post_type=sm_shortcode&page=smps_shortcode_packages | 969 | 2.30 | 38.19 | 26.32 |
All Shortcode /wp-admin/edit.php?post_type=sm_shortcode | 1,101 | 1.95 | 32.18 | 28.00 |
News /wp-admin/edit.php?post_type=sm_shortcode&page=shortcode-maker/news.php | 792 | 2.03 | 23.32 | 22.34 |
Add New Shortcode /wp-admin/post-new.php?post_type=sm_shortcode | 5,097 | 8.85 | 212.53 | 141.33 |
Cybercraft Products /wp-admin/edit.php?post_type=sm_shortcode&page=shortcode-maker/more-products.php | 798 | 2.06 | 24.30 | 23.13 |
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: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- sm_shortcode_package_list
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=sm_shortcode&page=shortcode-maker/more-products.php
- > Notice in wp-content/plugins/shortcode-maker/news.php+69
Trying to access array offset on value of type null
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/shortcode-maker/documentation/template.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-maker/more-products.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-maker/packaged-shortcodes/packaged-shortcodes-settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shortcode-maker/pro-demo.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-maker/vote.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/shortcode-maker/packaged-shortcodes/packages/simple-light/settings-templates.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shortcode-maker/documentation/documentation.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/shortcode-maker/packaged-shortcodes/packages/simple-light/settings-template.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-maker/cc-products-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-maker/packaged-shortcodes/packages/simple-light/simple-light.php:120
- > PHP Fatal error
Uncaught Error: Class 'Smps_Simple_Light' not found in wp-content/plugins/shortcode-maker/packaged-shortcodes/packages/simple-light/definitions.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=sm_shortcode&page=smps_shortcode_packages
- > Javascript (severe) in unknown
/wp-content/plugins/shortcode-maker/assets/js/smps-admin-script.js?ver=6.3.1 1:17 Uncaught ReferenceError: VueColor is not defined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (26 tag instead of maximum 10)
- Screenshots: Screenshot #1 (screenshot-5) image missing
shortcode-maker/shortcode-maker.php 92% from 13 tests
The main PHP file in "Shortcode Maker" ver. 5.0.4.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected55,261 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 84 | 92 | 19,083 |
JavaScript | 15 | 2,406 | 4,825 | 17,296 |
LESS | 4 | 41 | 34 | 11,609 |
PHP | 20 | 507 | 371 | 4,153 |
SVG | 2 | 0 | 0 | 2,959 |
Markdown | 1 | 88 | 0 | 131 |
JSON | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 19.29 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 68 | 59.65% |
▷ Public methods | 114 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 13 | 68.42% |
▷ Anonymous functions | 6 | 31.58% |
Constants | 4 | |
▷ Global constants | 4 | 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
5 PNG files occupy 0.35MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
documentation/assets/images/1.png | 83.63KB | 25.48KB | ▼ 69.53% |
documentation/assets/images/4.png | 82.49KB | 27.51KB | ▼ 66.65% |
documentation/assets/images/3.png | 87.51KB | 29.89KB | ▼ 65.84% |
documentation/assets/images/5.png | 44.66KB | 11.52KB | ▼ 74.21% |
documentation/assets/images/2.png | 56.18KB | 15.27KB | ▼ 72.81% |