Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼337.94ms] Passed 4 tests
A check of server-side resources used by Plugin Notes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.07 | 34.56 ▼0.50 |
Dashboard /wp-admin | 3.13 ▲0.08 | 42.43 ▼2.33 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 41.92 ▼2.29 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 82.12 ▼1,335.98 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 35.97 ▼11.17 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Plugin Notes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲68 | 16.15 ▲0.64 | 8.35 ▲0.15 | 48.51 ▼2.96 |
Dashboard /wp-admin | 2,934 ▲78 | 6.13 ▲0.26 | 137.95 ▲2.19 | 101.18 ▼12.80 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▼0.01 | 63.58 ▼6.64 | 94.60 ▲2.21 |
Add New Post /wp-admin/post-new.php | 1,489 ▼167 | 17.13 ▼1.35 | 351.16 ▼56.51 | 104.59 ▼6.07 |
Media Library /wp-admin/upload.php | 1,775 ▲3 | 5.01 ▲0.00 | 154.09 ▼11.41 | 114.97 ▼8.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: meta, memo, plugin, plugins, plugin notes
plugin-notes/plugin-notes.php Passed 13 tests
This is the main PHP file of "Plugin Notes" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
53 characters long description:
Allows you to add notes to plugins. Simple and sweet.
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 detected1,588 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 364 | 587 | 1,313 |
JavaScript | 2 | 26 | 20 | 109 |
PO File | 1 | 18 | 18 | 90 |
CSS | 2 | 1 | 0 | 76 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 34.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 72 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/external.png | 48.32KB | 0.31KB | ▼ 99.37% |