Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.11MB] [CPU: ▼159.12ms] Passed 4 tests
An overview of server-side resources used by Custom Sticky Notes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 37.70 ▲5.95 |
Dashboard /wp-admin | 3.03 ▼0.03 | 35.35 ▼19.50 |
Posts /wp-admin/edit.php | 3.08 ▼0.03 | 38.50 ▼11.25 |
Add New Post /wp-admin/post-new.php | 5.03 ▼0.40 | 83.65 ▼599.24 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 32.30 ▼6.47 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Sticky Notes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,061 ▲465 | 16.99 ▲1.35 | 14.50 ▲4.44 | 50.88 ▼3.37 |
Dashboard /wp-admin | 3,160 ▲223 | 7.07 ▲1.08 | 158.42 ▲1.88 | 123.00 ▲4.14 |
Posts /wp-admin/edit.php | 2,926 ▲187 | 3.19 ▲0.49 | 93.56 ▲21.21 | 91.08 ▼12.17 |
Add New Post /wp-admin/post-new.php | 1,813 ▲130 | 16.53 ▼2.23 | 409.23 ▲12.62 | 131.79 ▲22.93 |
Media Library /wp-admin/upload.php | 1,994 ▲187 | 5.88 ▲0.84 | 162.11 ▲8.90 | 123.33 ▼13.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
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: 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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-sticky-notes/custom-sticky-notes.php:92
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: sticky notes, clipboard, snippets, admin bar, custom sticky notes
custom-sticky-notes/custom-sticky-notes.php Passed 13 tests
"Custom Sticky Notes" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
This plugin will add simple sticky notes in the WordPress admin bar.
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 detected336 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 57 | 151 | 255 |
PO File | 1 | 35 | 49 | 79 |
CSS | 1 | 1 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 14 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 17.65% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin