Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼34.53ms] Passed 4 tests
An overview of server-side resources used by MoonClerk WP Shortcode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.93 ▲2.95 |
Dashboard /wp-admin | 3.00 ▼0.34 | 22.58 ▼35.59 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 27.69 ▼24.86 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 23.31 ▼67.81 |
Media Library /wp-admin/upload.php | 3.00 ▼0.22 | 23.60 ▼9.86 |
MoonClerk /wp-admin/tools.php?page=moonclerk-wp-shortcode/moonclerk-wp-shortcode.php | 3.00 | 25.77 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
MoonClerk WP Shortcode: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.27 ▼1.08 | 1.83 ▼0.24 | 44.07 ▲4.82 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.95 | 110.79 ▼2.23 | 43.77 ▼2.80 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.04 | 35.06 ▼7.21 | 34.18 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.49 ▼5.56 | 688.88 ▲34.31 | 51.35 ▲0.83 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.01 | 105.35 ▲8.86 | 49.11 ▲7.42 |
MoonClerk /wp-admin/tools.php?page=moonclerk-wp-shortcode/moonclerk-wp-shortcode.php | 833 | 2.02 | 25.91 | 33.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > 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 were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=moonclerk-wp-shortcode/moonclerk-wp-shortcode.php
- > 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.)
SRP 0% from 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/moonclerk-wp-shortcode/moonclerk-wp-shortcode.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/moonclerk-wp-shortcode/page.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/moonclerk-wp-shortcode/shortcodes.php:53
- > PHP Fatal error
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Copy the shortcode for the payment form from your MoonClerk account.), #2 (Paste the shortcode into the Text or Visual editor area of your Wordpress admin.), #3 (The form will embed in that page or post.)
moonclerk-wp-shortcode/moonclerk-wp-shortcode.php Passed 13 tests
"MoonClerk WP Shortcode" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
This plugin gives you the ability to add MoonClerk embeds via Shortcodes.
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
No dangerous file extensions were detected115 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 36 | 52 | 86 |
Markdown | 1 | 15 | 0 | 20 |
JavaScript | 1 | 2 | 3 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 PNG files occupy 0.17MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 76.95KB | 22.46KB | ▼ 70.81% |
screenshot-2.png | 66.17KB | 19.37KB | ▼ 70.73% |
screenshot-1.png | 32.66KB | 9.50KB | ▼ 70.91% |