Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/shortcode-mastery-lite/includes/vendor/twig/twig/lib/Twig/Node.php+198
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲0.32MB] [CPU: ▼2.38ms] Passed 4 tests
This is a short check of server-side resources used by Shortcode Mastery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 41.74 ▲2.98 |
Dashboard /wp-admin | 3.62 ▲0.32 | 48.23 ▲1.35 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 48.86 ▲1.12 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 86.87 ▼12.38 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 35.53 ▲0.38 |
All Shortcodes /wp-admin/admin.php?page=shortcode-mastery | 3.52 | 35.03 |
Create Shortcode /wp-admin/admin.php?page=shortcode-mastery-create | 3.60 | 42.28 |
Server storage [IO: ▲7.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 951 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shortcode Mastery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲192 | 13.22 ▼1.07 | 1.74 ▲0.04 | 46.76 ▲4.00 |
Dashboard /wp-admin | 2,331 ▲140 | 4.92 ▲0.06 | 95.70 ▼8.44 | 68.16 ▲25.38 |
Posts /wp-admin/edit.php | 2,214 ▲122 | 2.02 ▼0.01 | 33.33 ▼7.03 | 33.01 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,630 ▲116 | 17.57 ▲0.01 | 646.07 ▼25.28 | 35.13 ▼20.73 |
Media Library /wp-admin/upload.php | 1,519 ▲134 | 4.27 ▼0.02 | 116.83 ▲8.40 | 48.27 ▼2.11 |
All Shortcodes /wp-admin/admin.php?page=shortcode-mastery | 999 | 1.76 | 24.50 | 34.37 |
Create Shortcode /wp-admin/admin.php?page=shortcode-mastery-create | 2,994 | 8.98 | 187.52 | 86.60 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
- 234× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Sandbox_SecurityError' not found in wp-content/plugins/shortcode-mastery-lite/includes/vendor/twig/twig/lib/Twig/Sandbox/SecurityNotAllowedTagError.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/shortcode-mastery-lite/includes/vendor/twig/twig/test/Twig/Tests/Profiler/Dumper/AbstractTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/shortcode-mastery-lite/includes/vendor/twig/twig/test/Twig/Tests/ContainerRuntimeLoaderTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/shortcode-mastery-lite/includes/vendor/twig/twig/lib/Twig/Node/ForLoop.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/shortcode-mastery-lite/includes/vendor/twig/twig/lib/Twig/Extension/Escaper.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Twig_ExtensionInterface' not found in wp-content/plugins/shortcode-mastery-lite/includes/vendor/twig/twig/lib/Twig/Extension.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/shortcode-mastery-lite/includes/vendor/twig/twig/test/Twig/Tests/Node/Expression/NullCoalesceTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/shortcode-mastery-lite/includes/vendor/twig/twig/test/Twig/Tests/Node/IncludeTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/shortcode-mastery-lite/includes/vendor/twig/twig/test/Twig/Tests/TokenStreamTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/shortcode-mastery-lite/includes/vendor/twig/twig/test/Twig/Tests/Extension/SandboxTest.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shortcode-mastery-create
- > Network (severe)
wp-content/plugins/shortcode-mastery-lite/images/sm-white.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: shortcode builder, shortcodes, shortcode
shortcode-mastery-lite/shortcode-mastery-lite.php 92% from 13 tests
The main PHP file in "Shortcode Mastery" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin136,359 lines of code in 646 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 37 | 10,211 | 8,293 | 110,081 |
PHP | 480 | 6,561 | 7,766 | 21,052 |
reStructuredText | 89 | 2,418 | 2,137 | 3,372 |
C | 1 | 171 | 186 | 860 |
CSS | 3 | 52 | 6 | 442 |
JSON | 4 | 0 | 0 | 220 |
SVG | 8 | 16 | 7 | 200 |
YAML | 1 | 9 | 1 | 44 |
XML | 1 | 4 | 0 | 29 |
HTML | 11 | 0 | 0 | 17 |
C/C++ Header | 1 | 7 | 13 | 15 |
Twig | 8 | 6 | 0 | 14 |
Markdown | 1 | 4 | 0 | 8 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 268.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 43 | |
Traits | 0 | |
Classes | 465 | |
▷ Abstract classes | 15 | 3.23% |
▷ Concrete classes | 450 | 96.77% |
▷ Final classes | 6 | 1.33% |
Methods | 1,585 | |
▷ Static methods | 39 | 2.46% |
▷ Public methods | 1,400 | 88.33% |
▷ Protected methods | 139 | 8.77% |
▷ Private methods | 46 | 2.90% |
Functions | 76 | |
▷ Named functions | 72 | 94.74% |
▷ Anonymous functions | 4 | 5.26% |
Constants | 57 | |
▷ Global constants | 7 | 12.28% |
▷ Class constants | 50 | 87.72% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sm-white@2x.png | 7.77KB | 4.03KB | ▼ 48.07% |
images/sm-new.png | 11.48KB | 4.79KB | ▼ 58.29% |
images/sm-tiny.png | 3.62KB | 2.44KB | ▼ 32.48% |