Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▲0.98ms] Passed 4 tests
A check of server-side resources used by WP Notes Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 44.07 ▲2.96 |
Dashboard /wp-admin | 3.72 ▲0.42 | 50.51 ▼0.53 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 56.02 ▲9.00 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 102.59 ▼4.25 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 39.20 ▲5.74 |
All Notes /wp-admin/edit.php?post_type=nw-item | 3.74 | 42.67 |
WP Notes Widget /wp-admin/options-general.php?page=wp-notes-widget-settings | 3.60 | 37.90 |
Add New /wp-admin/post-new.php?post_type=nw-item | 3.81 | 52.05 |
Server storage [IO: ▲2.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 91 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_wp-notes-class |
default_wp_notes_created |
wpnw_version |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
wp_notes_widget_default_shortcode_settings |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Notes Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲190 | 13.52 ▼0.86 | 9.67 ▲7.89 | 38.86 ▼4.59 |
Dashboard /wp-admin | 2,245 ▲68 | 5.75 ▲0.02 | 84.88 ▼9.87 | 39.41 ▼3.18 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.00 ▼0.02 | 38.59 ▲2.22 | 35.26 ▼0.84 |
Add New Post /wp-admin/post-new.php | 2,338 ▲812 | 23.57 ▲5.98 | 641.51 ▼52.31 | 56.27 ▲2.28 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 4.28 ▲0.10 | 101.29 ▼7.91 | 45.86 ▼1.15 |
All Notes /wp-admin/edit.php?post_type=nw-item | 1,852 | 2.12 | 34.71 | 33.07 |
WP Notes Widget /wp-admin/options-general.php?page=wp-notes-widget-settings | 1,741 | 2.09 | 31.02 | 79.04 |
Add New /wp-admin/post-new.php?post_type=nw-item | 2,895 | 4.15 | 71.39 | 51.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 12 options
- theysaidso_admin_options
- widget_wp-notes-class
- wp_notes_widget_defaults
- wp_notes_widget_twitter_credentials
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- default_wp_notes_created
- wp_notes_widget_default_shortcode_settings
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-notes-widget/public/partials/public-widget-footer-partial.php
- > /wp-content/plugins/wp-notes-widget/public/partials/wp-notes-public-display.php
- > /wp-content/plugins/wp-notes-widget/admin/partials/wp-notes-admin-display.php
- 55× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: text_colour in wp-content/plugins/wp-notes-widget/public/partials/public-widget-header-partial.php on line 3
- > PHP Notice
Undefined variable: text_colour in wp-content/plugins/wp-notes-widget/public/partials/public-widget-header-partial.php on line 3
- > PHP Notice
Undefined variable: title in wp-content/plugins/wp-notes-widget/public/partials/public-widget-header-partial.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-notes-widget/admin/admin-settings-page-setup.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-notes-widget/public/partials/public-widget-empty-list-item-partial.php:8
- > PHP Notice
Undefined variable: font_style in wp-content/plugins/wp-notes-widget/public/partials/public-widget-header-partial.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-notes-widget/public/partials/public-widget-note-list-item-partial.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-notes-widget/admin/admin-settings-page-promo-sidebar.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-notes-widget/public/partials/public-widget-header-partial.php:9
- > PHP Notice
Undefined variable: do_not_force_uppercase in wp-content/plugins/wp-notes-widget/public/partials/public-widget-header-partial.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: widget, notes, sidebar, twitter, tweet...
wp-notes-widget/wp-notes-widget.php Passed 13 tests
"WP Notes Widget" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
'Sticky note' style widget to display short, important, time sensitive information.
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 plugin15,701 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 2,045 | 11 | 9,089 |
PHP | 31 | 874 | 1,474 | 3,435 |
SVG | 2 | 0 | 0 | 1,429 |
LESS | 4 | 241 | 168 | 1,097 |
JavaScript | 8 | 185 | 84 | 625 |
JSON | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 8 | 8.08% |
▷ Public methods | 66 | 66.67% |
▷ Protected methods | 27 | 27.27% |
▷ Private methods | 6 | 6.06% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.38MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/thumbtack-pink.png | 25.37KB | 8.53KB | ▼ 66.39% |
admin/images/wp-notes-thumbnail-32.png | 2.88KB | 1.73KB | ▼ 39.84% |
public/images/thumbtack-orange.png | 22.17KB | 8.43KB | ▼ 61.99% |
public/images/thumbtack-yellow.png | 23.46KB | 8.57KB | ▼ 63.47% |
public/images/thumbtack-pushpin-2-md.png | 38.54KB | 13.69KB | ▼ 64.49% |