Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▲3.34ms] Passed 4 tests
This is a short check of server-side resources used by Site Sticky Notes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.11 | 49.33 ▲5.91 |
Dashboard /wp-admin | 3.49 ▲0.14 | 55.54 ▼7.01 |
Posts /wp-admin/edit.php | 3.59 ▲0.19 | 62.49 ▲10.72 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.16 | 103.05 ▲7.82 |
Media Library /wp-admin/upload.php | 3.41 ▲0.14 | 43.68 ▲6.62 |
All Notes /wp-admin/edit.php?post_type=site_notes | 3.44 | 41.72 |
Settings /wp-admin/edit.php?post_type=site_notes&page=site_notes-options | 3.38 | 40.50 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
site_notes_show_public |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Site Sticky Notes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲171 | 13.57 ▼0.67 | 9.30 ▲7.13 | 38.41 ▼16.50 |
Dashboard /wp-admin | 2,230 ▲53 | 5.54 ▼0.14 | 95.80 ▼0.86 | 42.59 ▲2.08 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 2.01 ▲0.02 | 38.75 ▲0.71 | 37.36 ▲1.98 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.22 ▲0.04 | 668.32 ▼27.37 | 51.50 ▼7.97 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.13 ▼0.11 | 106.08 ▼4.80 | 42.10 ▼5.67 |
All Notes /wp-admin/edit.php?post_type=site_notes | 1,115 | 1.93 | 36.35 | 34.10 |
Settings /wp-admin/edit.php?post_type=site_notes&page=site_notes-options | 832 | 1.69 | 26.39 | 26.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- site_notes_show_public
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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)
Everything seems fine, however 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
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 add_action() in wp-content/plugins/site-sticky-notes/includes/admin.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-sticky-notes/includes/core.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2 in site-sticky-notes/assets to your readme.txt
site-sticky-notes/site-notes.php 92% from 13 tests
The primary PHP file in "Site Sticky Notes" version 1.2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("site-sticky-notes.php" instead of "site-notes.php")
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
No dangerous file extensions were detected599 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 106 | 53 | 350 |
CSS | 2 | 20 | 0 | 148 |
JavaScript | 2 | 23 | 17 | 101 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/resize.png | 0.50KB | 0.52KB | 0.00% |