Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼305.67ms] Passed 4 tests
Analyzing server-side resources used by amr shortcode any widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.15 | 58.76 ▲7.09 |
Dashboard /wp-admin | 3.51 ▲0.10 | 34.39 ▼23.09 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 100.57 ▲46.49 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.00 | 90.87 ▼1,207.26 |
Media Library /wp-admin/upload.php | 3.38 ▲0.09 | 25.73 ▲0.59 |
Widgets /wp-admin/widgets.php | 5.25 | 112.29 |
Shortcode any widget /wp-admin/options-general.php?page=amr_saw | 3.35 | 23.33 |
Menus /wp-admin/nav-menus.php | 3.49 | 28.48 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by amr shortcode any widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,786 ▲42 | 15.83 ▲0.25 | 6.02 ▼0.33 | 2.39 ▼0.13 |
Dashboard /wp-admin | 2,904 ▲46 | 6.15 ▼0.02 | 118.80 ▼17.43 | 176.18 ▲10.00 |
Posts /wp-admin/edit.php | 2,703 ▲12 | 3.25 ▲0.00 | 64.45 ▼5.97 | 148.77 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,707 ▲21 | 21.71 ▲3.60 | 437.99 ▼20.44 | 178.00 ▲17.69 |
Media Library /wp-admin/upload.php | 1,710 ▲12 | 5.41 ▼0.09 | 142.95 ▼15.66 | 190.26 ▼1.90 |
Widgets /wp-admin/widgets.php | 2,471 | 23.76 | 535.83 | 143.73 |
Shortcode any widget /wp-admin/options-general.php?page=amr_saw | 1,180 | 2.36 | 68.39 | 143.43 |
Menus /wp-admin/nav-menus.php | 2,279 | 3.28 | 84.24 | 213.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amr-shortcode-any-widget/amr-shortcode-any-widget.php:13
- > 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 96% from 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
7 plugin tags: page template, templates, widget_area, widget, shortcode...
amr-shortcode-any-widget/amr-shortcode-any-widget.php 92% from 13 tests
"amr shortcode any widget" version 4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 272 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin701 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 154 | 64 | 585 |
PO File | 2 | 39 | 76 | 116 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin