Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼8.59ms] Passed 4 tests
A check of server-side resources used by Wb Sticky Notes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.52 ▼0.02 |
Dashboard /wp-admin | 3.47 ▲0.12 | 45.45 ▼15.50 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 47.74 ▲6.03 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 79.92 ▼22.74 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.43 ▲3.90 |
Sticky Notes /wp-admin/tools.php?page=wb-sticky-notes | 3.37 | 30.28 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 58 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wb_stn_notes |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wb Sticky Notes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,071 ▲325 | 14.72 ▲0.34 | 5.00 ▲3.22 | 37.62 ▼6.89 |
Dashboard /wp-admin | 2,369 ▲184 | 5.91 ▲0.07 | 114.27 ▲12.40 | 43.26 ▲7.24 |
Posts /wp-admin/edit.php | 2,239 ▲150 | 2.68 ▲0.51 | 47.94 ▲8.21 | 35.51 ▼0.71 |
Add New Post /wp-admin/post-new.php | 6,440 ▲4,893 | 24.03 ▲5.63 | 940.85 ▲327.04 | 42.67 ▼17.54 |
Media Library /wp-admin/upload.php | 1,551 ▲166 | 4.77 ▲0.55 | 109.81 ▲15.68 | 43.70 ▲2.06 |
Sticky Notes /wp-admin/tools.php?page=wb-sticky-notes | 1,311 | 2.14 | 55.45 | 49.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wb_stn_notes
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wb-sticky-notes/public/partials/wb-sticky-notes-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wb-sticky-notes/admin/classes/class-wb-sticky-notes-feedback.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #3 in wb-sticky-notes/assets to your readme.txt
wb-sticky-notes/wb-sticky-notes.php Passed 13 tests
Analyzing the main PHP file in "Wb Sticky Notes" version 1.1.4
29 characters long description:
Create wonderful sticky notes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,863 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 194 | 697 | 1,280 |
JavaScript | 2 | 21 | 35 | 442 |
CSS | 2 | 27 | 21 | 141 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 6 | 11.32% |
▷ Public methods | 33 | 62.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 37.74% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |