Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.43ms] Passed 4 tests
Server-side resources used by WordPress Widgets Shortcode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.43 ▼4.07 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.94 ▲1.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.32 ▼4.92 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.11 ▼26.10 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.25 ▲3.59 |
Server storage [IO: ▲0.00MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Widgets Shortcode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.19 ▼0.34 | 1.81 ▲0.26 | 44.01 ▲2.74 |
Dashboard /wp-admin | 2,192 ▲15 | 5.52 ▼0.05 | 81.09 ▼6.60 | 39.71 ▲1.59 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.02 | 33.79 ▼4.79 | 33.83 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.97 ▼0.01 | 657.35 ▲45.92 | 60.24 ▲16.87 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.00 | 95.87 ▼1.94 | 41.87 ▼2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-widgets-shortcode/wp-widgets-shortcode.php:32
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: embed, shortcodes, widgets, embed widgets, dynamic sidebar
wp-widgets-shortcode/wp-widgets-shortcode.php Passed 13 tests
"WordPress Widgets Shortcode" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
131 characters long description:
Embed any widget area(dynamic sidebar) to your WordPress pages/posts using the shortcode [widget-area id='The Name of Widget Area']
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin38 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 22 | 38 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 2 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 50.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected