Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.45ms] Passed 4 tests
This is a short check of server-side resources used by Shortcake (Shortcode UI) Richtext
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.19 ▼2.98 |
Dashboard /wp-admin | 3.32 ▲0.01 | 42.81 ▼4.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.10 ▲0.22 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.51 ▼2.12 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.98 ▲3.97 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Shortcake (Shortcode UI) Richtext
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.52 ▼0.03 | 1.68 ▲0.09 | 37.15 ▼3.68 |
Dashboard /wp-admin | 2,199 ▲28 | 5.62 ▲0.04 | 91.17 ▲4.92 | 38.22 ▼2.22 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▲0.01 | 40.12 ▲6.68 | 35.81 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,530 ▼7 | 22.97 ▲4.79 | 587.77 ▼46.00 | 58.03 ▼13.28 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▲0.05 | 96.46 ▲0.66 | 40.71 ▼0.98 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shortcode-ui-richtext/tests/phpunit/test-class-plugin-base.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function ShortcodeUiRichtext\\plugin_dir_path() in wp-content/plugins/shortcode-ui-richtext/php/class-plugin-base.php:133
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shortcode-ui-richtext/tests/phpunit/test-shortcode-ui-richtext.php:15
- > PHP Fatal error
Uncaught Error: Class 'ShortcodeUiRichtext\\Plugin_Base' not found in wp-content/plugins/shortcode-ui-richtext/php/class-plugin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function ShortcodeUiRichtext\\plugin_dir_path() in wp-content/plugins/shortcode-ui-richtext/php/class-plugin-base.php:133
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/shortcode-ui-richtext/tests/phpunit/test-class-plugin.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: shortcodes
shortcode-ui-richtext/shortcode-ui-richtext.php 85% from 13 tests
"Shortcake (Shortcode UI) Richtext" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected419 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 56 | 248 | 172 |
Markdown | 1 | 47 | 0 | 101 |
JavaScript | 1 | 20 | 17 | 90 |
XML | 1 | 1 | 0 | 28 |
JSON | 1 | 1 | 0 | 18 |
CSS | 1 | 2 | 3 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin