Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.83MB] [CPU: ▼31.92ms] Passed 4 tests
This is a short check of server-side resources used by My Own Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.91 ▼0.60 |
Dashboard /wp-admin | 3.12 ▼0.19 | 26.71 ▼20.71 |
Posts /wp-admin/edit.php | 3.12 ▼0.24 | 25.55 ▼22.86 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 25.61 ▼70.79 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 23.41 ▼13.30 |
My Own Shortcodes /wp-admin/options-general.php?page=klick_mos | 3.12 | 25.95 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
klick-mos-logging |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Own Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲164 | 13.66 ▼0.69 | 4.85 ▲3.06 | 39.08 ▼7.49 |
Dashboard /wp-admin | 2,216 ▲28 | 5.86 ▼0.02 | 98.41 ▼13.91 | 39.07 ▼6.10 |
Posts /wp-admin/edit.php | 2,102 ▲16 | 2.05 ▲0.04 | 42.33 ▲5.23 | 34.11 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 18.17 ▲0.62 | 666.80 ▼26.23 | 66.97 ▲19.99 |
Media Library /wp-admin/upload.php | 1,401 ▲16 | 4.29 ▲0.09 | 101.52 ▼0.67 | 47.41 ▲3.10 |
My Own Shortcodes /wp-admin/options-general.php?page=klick_mos | 2,116 | 6.59 | 135.70 | 87.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=klick_mos
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/options-general.php?page=klick_mos
- > Warning in wp-content/plugins/my-own-shortcodes/includes/class-klick-mos-shortcodes.php+102
count(): Parameter must be an array or an object that implements Countable
SRP 0% from 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
Please fix the following items
- 15× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/my-own-shortcodes/includes/class-klick-mos-abstract-logger.php
- > /wp-content/plugins/my-own-shortcodes/includes/class-klick-mos-commands.php
- > /wp-content/plugins/my-own-shortcodes/includes/class-klick-mos-abstract-notice.php
- > /wp-content/plugins/my-own-shortcodes/includes/class-klick-mos-notifier.php
- > /wp-content/plugins/my-own-shortcodes/includes/class-klick-mos-shortcodes.php
- > /wp-content/plugins/my-own-shortcodes/includes/class-klick-mos-dashboard.php
- > /wp-content/plugins/my-own-shortcodes/includes/class-klick-mos-email-logger.php
- > /wp-content/plugins/my-own-shortcodes/my-own-shortcodes.php
- > /wp-content/plugins/my-own-shortcodes/includes/class-klick-mos-logger.php
- > /wp-content/plugins/my-own-shortcodes/templates/klick-mos-tabs-header.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/my-own-shortcodes/templates/klick-mos-tab-our-other-plugins.php:3
- > PHP Warning
Use of undefined constant KLICK_MOS_PLUGIN_URL - assumed 'KLICK_MOS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-own-shortcodes/templates/klick-mos-tab-our-other-plugins.php on line 3
- > PHP Warning
Use of undefined constant KLICK_MOS_PLUGIN_URL - assumed 'KLICK_MOS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-own-shortcodes/templates/klick-mos-tab-my-shortcodes.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function Klick_Mos() in wp-content/plugins/my-own-shortcodes/templates/klick-mos-tab-my-shortcodes.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=klick_mos
- > Network (severe)
wp-content/plugins/my-own-shortcodes//images/our-more-plugins/APV.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=klick_mos
- > Network (severe)
wp-content/plugins/my-own-shortcodes//images/our-more-plugins/ATS.svg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Shortcode Add Tab), #2 (Shortcode List Tab), #3 (How to use)
my-own-shortcodes/my-own-shortcodes.php 92% from 13 tests
The principal PHP file in "My Own Shortcodes" v. 0.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin2,248 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 310 | 560 | 950 |
SVG | 11 | 0 | 11 | 521 |
CSS | 6 | 20 | 12 | 447 |
JavaScript | 4 | 44 | 150 | 244 |
Markdown | 2 | 47 | 0 | 86 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 6 | 7.14% |
▷ Public methods | 83 | 98.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.19% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mos-banner.png | 65.45KB | 23.16KB | ▼ 64.62% |
images/notices/mos_sample_notice_icon2.png | 9.63KB | 4.69KB | ▼ 51.23% |
images/notices/mos_sample_notice_icon3.png | 30.17KB | 6.04KB | ▼ 79.98% |
images/notices/mos_sample_notice_icon.png | 20.74KB | 1.79KB | ▼ 91.39% |
images/small_icon.png | 18.12KB | 0.45KB | ▼ 97.52% |