Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼140.92ms] Passed 4 tests
A check of server-side resources used by Note For Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.13 | 39.78 ▲8.43 |
Dashboard /wp-admin | 3.25 ▲0.20 | 44.31 ▲0.65 |
Posts /wp-admin/edit.php | 3.37 ▲0.26 | 45.82 ▼2.71 |
Add New Post /wp-admin/post-new.php | 5.63 ▲0.20 | 92.47 ▼556.08 |
Media Library /wp-admin/upload.php | 3.20 ▲0.19 | 36.31 ▼5.55 |
Add New /wp-admin/post-new.php?post_type=note | 3.30 | 54.36 |
Tags /wp-admin/edit-tags.php?taxonomy=note_tag&post_type=note | 3.19 | 32.89 |
Notes /wp-admin/edit.php?post_type=note | 3.24 | 35.36 |
Settings /wp-admin/edit.php?post_type=note&page=n4p-submenu-page | 3.17 | 30.89 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_n4p_widget_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Note For Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,863 ▲267 | 16.35 ▲0.89 | 11.59 ▲3.37 | 46.94 ▼7.28 |
Dashboard /wp-admin | 3,031 ▲97 | 6.16 ▲0.23 | 161.23 ▲16.15 | 121.83 ▲13.48 |
Posts /wp-admin/edit.php | 2,816 ▲80 | 2.72 ▲0.04 | 64.57 ▲2.59 | 94.22 ▲0.16 |
Add New Post /wp-admin/post-new.php | 1,553 ▼119 | 20.54 ▲1.66 | 360.11 ▲6.46 | 106.30 ▼9.36 |
Media Library /wp-admin/upload.php | 1,803 ▼7 | 5.06 ▲0.04 | 145.96 ▼1.03 | 125.52 ▲0.97 |
Add New /wp-admin/post-new.php?post_type=note | 3,238 | 9.25 | 227.25 | 173.45 |
Tags /wp-admin/edit-tags.php?taxonomy=note_tag&post_type=note | 1,775 | 2.57 | 63.42 | 78.69 |
Notes /wp-admin/edit.php?post_type=note | 1,529 | 2.65 | 63.60 | 80.02 |
Settings /wp-admin/edit.php?post_type=note&page=n4p-submenu-page | 1,453 | 2.36 | 61.38 | 92.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_n4p_widget_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/note-for-posts/includes/admin/wp-ajax-action.php:78
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/note-for-posts/includes/wp-footer-scripts.php:31
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: page, post, download, product, edd
note-for-posts/note-for-posts.php 92% from 13 tests
The main PHP file in "Note For Posts" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 detected1,477 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 245 | 654 | 912 |
CSS | 3 | 27 | 37 | 493 |
JavaScript | 3 | 31 | 21 | 72 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 11 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 21.43% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/arr.png | 5.43KB | 1.15KB | ▼ 78.84% |
assets/images/admin/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
assets/images/admin/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |