Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.05ms] Passed 4 tests
An overview of server-side resources used by Notes Widget Wrapper
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.94 ▼7.65 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.22 ▼4.14 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.20 ▲2.82 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 97.85 ▲3.97 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.99 ▲0.79 |
Notes Widget Wrapper /wp-admin/options-general.php?page=notes-widget-wrapper-widget-settings | 3.27 | 31.57 |
Server storage [IO: ▲1.13MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
notes_widget_wrapper_default_shortcode_settings |
can_compress_scripts |
notes_widget_wrapper_defaults |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Notes Widget Wrapper
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲154 | 13.63 ▼0.63 | 7.00 ▲5.18 | 37.75 ▼10.29 |
Dashboard /wp-admin | 2,209 ▲21 | 5.80 ▼0.11 | 95.19 ▼12.37 | 40.10 ▼4.81 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 1.98 ▼0.03 | 40.87 ▲1.40 | 34.49 ▲2.83 |
Add New Post /wp-admin/post-new.php | 2,162 ▲648 | 23.22 ▲5.69 | 685.25 ▼5.66 | 37.23 ▼27.03 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.25 ▲0.14 | 97.89 ▲1.50 | 41.15 ▼4.11 |
Notes Widget Wrapper /wp-admin/options-general.php?page=notes-widget-wrapper-widget-settings | 1,474 | 1.96 | 37.61 | 65.83 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- notes_widget_wrapper_defaults
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- notes_widget_wrapper_default_shortcode_settings
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/notes-widget-wrapper/admin/partials/notes-widget-wrapper-admin-display.php
- > /wp-content/plugins/notes-widget-wrapper/public/partials/notes-widget-wrapper-public-display.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/notes-widget-wrapper/admin/partials/admin-post-shortcode-editor-modal.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/notes-widget-wrapper/admin/view-notes-widget-wrapper-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/notes-widget-wrapper/admin/admin-settings-page-promo-sidebar.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/notes-widget-wrapper/admin/admin-settings-page-setup.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== notes-widget-wrapper ===
)
notes-widget-wrapper/notes-widget-wrapper.php Passed 13 tests
The principal PHP file in "Notes Widget Wrapper" v. 1.2.2 is loaded by WordPress automatically on each request
46 characters long description:
Wraps widgets in a "sticky note" style wrapper
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin11,271 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 2,030 | 7 | 9,055 |
PHP | 16 | 324 | 672 | 1,204 |
LESS | 4 | 170 | 96 | 768 |
JavaScript | 6 | 60 | 66 | 219 |
JSON | 1 | 0 | 0 | 25 |
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.24 |
Average class complexity | 14.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 4 | 11.76% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
9 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/notes-widget-wrapper-thumbnail.png | 8.42KB | 3.93KB | ▼ 53.32% |
public/images/thumbtack-red.png | 21.51KB | 9.03KB | ▼ 58.03% |
public/images/thumbtack-gray.png | 19.31KB | 8.73KB | ▼ 54.79% |
public/images/thumbtack-orange.png | 22.17KB | 8.43KB | ▼ 61.99% |
public/images/thumbtack-green.png | 24.42KB | 8.62KB | ▼ 64.70% |