Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.43ms] Passed 4 tests
A check of server-side resources used by Magic Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 32.77 ▼2.24 |
Dashboard /wp-admin | 3.34 ▲0.03 | 42.86 ▼3.62 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.53 ▲1.73 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.57 ▼8.69 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.42 ▲0.85 |
All Magic Shortcodes /wp-admin/edit.php?post_type=ct_ms | 3.30 | 33.20 |
Add New /wp-admin/post-new.php?post_type=ct_ms | 3.32 | 41.60 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Magic Shortcodes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲122 | 13.65 ▼0.98 | 4.77 ▲3.06 | 37.59 ▼3.06 |
Dashboard /wp-admin | 2,234 ▲25 | 5.86 ▼0.00 | 112.06 ▲14.61 | 44.11 ▲5.87 |
Posts /wp-admin/edit.php | 2,117 ▲31 | 2.06 ▲0.02 | 40.72 ▲1.42 | 36.31 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.24 ▲0.05 | 675.59 ▼11.56 | 57.93 ▲5.87 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.23 ▼0.14 | 95.95 ▼8.71 | 40.41 ▼4.20 |
All Magic Shortcodes /wp-admin/edit.php?post_type=ct_ms | 1,089 | 2.00 | 35.82 | 29.55 |
Add New /wp-admin/post-new.php?post_type=ct_ms | 1,464 | 2.57 | 53.19 | 51.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/magic-shortcodes-builder-lite/public/partials/magic-shortcodes-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/magic-shortcodes-builder-lite/admin/views/magic-shortcodes-admin-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% 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:
- Plugin Name: You should set the name of your plugin on the first line (
=== magic-shortcodes-builder-lite ===
)
magic-shortcodes-builder-lite/magic-shortcodes.php 77% from 13 tests
The main PHP file in "Magic Shortcodes" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("magic-shortcodes-builder-lite.php" instead of "magic-shortcodes.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 351 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected379 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 149 | 547 | 295 |
CSS | 2 | 1 | 8 | 78 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 2.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 26 | 78.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 21.21% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG images were not found in this plugin