Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲0.44ms] Passed 4 tests
This is a short check of server-side resources used by Sticky Notes Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 35.62 ▼2.68 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.02 ▲1.53 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.59 ▼1.44 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.73 ▲7.21 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.94 ▲4.36 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_stickynoteswidget |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Sticky Notes Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.73 ▲0.15 | 1.61 ▲0.02 | 41.43 ▲3.56 |
Dashboard /wp-admin | 2,217 ▲49 | 5.91 ▲0.37 | 88.07 ▲0.54 | 37.83 ▼5.55 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.30 ▲0.35 | 35.78 ▼6.79 | 33.58 ▼7.01 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 22.99 ▼0.07 | 668.24 ▼9.91 | 38.52 ▼15.14 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.45 ▲0.16 | 114.17 ▲11.68 | 47.58 ▲5.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_stickynoteswidget
- 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sticky-notes-widget/sticky-notes-widget.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Sticky Note Widgets), #2 (Admin Settings)
sticky-notes-widget/sticky-notes-widget.php 92% from 13 tests
The main PHP script in "Sticky Notes Widget" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 222 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected289 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 40 | 24 | 154 |
PHP | 1 | 27 | 11 | 129 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 1.18MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 187.28KB | 103.01KB | ▼ 45.00% |
images/snw-pin-black.png | 2.17KB | 1.99KB | ▼ 8.58% |
images/snw-paper-3.png | 172.91KB | 101.86KB | ▼ 41.09% |
images/snw-footer-left.png | 1.24KB | 0.91KB | ▼ 26.01% |
images/snw-tape-2.png | 2.74KB | 1.44KB | ▼ 47.41% |