Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.72ms] Passed 4 tests
An overview of server-side resources used by azurecurve Shortcodes in Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.62 ▼1.44 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.04 ▼3.80 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.50 ▼8.89 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.19 ▼4.76 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.34 ▲1.62 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 3.23 | 32.10 |
Shortcodes in Widgets /wp-admin/admin.php?page=azc-siw | 3.23 | 30.38 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
azurecurve Shortcodes in Widgets: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲93 | 13.29 ▼1.09 | 1.90 ▼0.24 | 47.66 ▼1.60 |
Dashboard /wp-admin | 2,234 ▲79 | 4.85 ▼0.86 | 97.93 ▼17.00 | 71.64 ▲27.31 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.00 ▼0.03 | 34.39 ▼2.21 | 32.29 ▼4.16 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 23.26 ▲0.11 | 730.55 ▲14.96 | 52.60 ▼10.61 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.23 ▲0.04 | 93.67 ▼13.52 | 65.07 ▲16.01 |
Plugins /wp-admin/admin.php?page=azc-plugin-menus | 853 | 2.02 | 23.37 | 28.18 |
Shortcodes in Widgets /wp-admin/admin.php?page=azc-siw | 814 | 2.07 | 23.29 | 26.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-shortcodes-in-widgets/includes/menu.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-shortcodes-in-widgets/includes/menu.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
4 plugin tags: widgets, shortcodes, shortcode, widget
azurecurve-shortcodes-in-widgets/azurecurve-shortcodes-in-widgets.php Passed 13 tests
The principal PHP file in "azurecurve Shortcodes in Widgets" v. 2.0.2 is loaded by WordPress automatically on each request
40 characters long description:
Allows shortcodes to be used in widgets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin245 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 26 | 229 |
CSS | 1 | 0 | 2 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.74 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Favicon-16x16.png | 0.40KB | 0.34KB | ▼ 14.81% |