Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp-sticker-notes/plugin.php+43
Undefined index: wpst_id
Server metrics [RAM: ▼1.87MB] [CPU: ▼58.72ms] Passed 4 tests
Server-side resources used by Wordpress Sticky Notes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.35 | 5.05 ▼41.01 |
Dashboard /wp-admin | 2.17 ▼1.17 | 5.98 ▼45.37 |
Posts /wp-admin/edit.php | 2.17 ▼1.22 | 7.67 ▼45.49 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.75 | 5.86 ▼102.99 |
Media Library /wp-admin/upload.php | 2.17 ▼1.10 | 6.07 ▼30.87 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_sticker_notes |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
wpst_db_version |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordpress Sticky Notes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,994 ▲233 | 13.55 ▼1.01 | 14.70 ▲12.77 | 50.43 ▲5.48 |
Dashboard /wp-admin | 2,198 ▲18 | 5.56 ▼0.14 | 83.72 ▼2.46 | 79.49 ▲34.94 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.97 ▼0.06 | 33.63 ▼7.30 | 34.82 ▼5.38 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.03 ▼0.63 | 761.07 ▲86.31 | 51.92 ▲3.10 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.08 ▼0.14 | 95.75 ▼13.46 | 73.58 ▲24.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-sticker-notes/plugin.php+43
Undefined index: wpst_id
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- wpst_db_version
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-sticker-notes/pages/admin_main.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-sticker-notes/plugin.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: wordpress, plugin, sticky, sticker, notes
wp-sticker-notes/plugin.php 92% from 13 tests
The principal PHP file in "Wordpress Sticky Notes" v. 2.1.5 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-sticker-notes.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,029 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 45 | 25 | 361 |
PHP | 3 | 41 | 39 | 358 |
CSS | 2 | 13 | 20 | 289 |
SVG | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 17 | |
▷ Named functions | 17 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
scripts/images/Notes-icon.png | 14.75KB | 0.86KB | ▼ 94.19% |
scripts/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
scripts/images/pushed-pin-hi_35.png | 16.35KB | 1.72KB | ▼ 89.50% |