Benchmarks
Plugin footprint 83% from 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: ▲3.81MB] [CPU: ▼284.94ms] Passed 4 tests
This is a short check of server-side resources used by Admin Notes WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.18 ▲4.67 | 80.50 ▲31.23 |
Dashboard /wp-admin | 8.20 ▲4.79 | 57.12 ▲19.87 |
Posts /wp-admin/edit.php | 8.26 ▲4.62 | 58.59 ▲18.35 |
Add New Post /wp-admin/post-new.php | 8.13 ▲1.14 | 54.90 ▼1,208.83 |
Media Library /wp-admin/upload.php | 8.22 ▲4.93 | 53.98 ▲30.86 |
Server storage [IO: ▲15.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 712 new files
Database: no new tables, 1 new option
New WordPress options |
---|
acf_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Admin Notes WP
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,356 ▲601 | 21.18 ▲5.42 | 9.21 ▲2.79 | 2.71 ▼0.16 |
Dashboard /wp-admin | 3,338 ▲480 | 10.66 ▲4.44 | 195.45 ▲64.08 | 150.36 ▼9.27 |
Posts /wp-admin/edit.php | 3,199 ▲508 | 7.89 ▲4.65 | 105.27 ▲43.01 | 140.25 ▼1.42 |
Add New Post /wp-admin/post-new.php | 2,651 ▲990 | 23.57 ▲7.37 | 619.23 ▲221.52 | 177.16 ▲20.49 |
Media Library /wp-admin/upload.php | 2,588 ▲887 | 12.97 ▲7.48 | 238.68 ▲94.91 | 191.43 ▲10.35 |
Admin Notes WP /wp-admin/crb_carbon_fields_container_admin_notes_wp.php | 26 | 0.94 | 0.03 | 22.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- acf_version
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/admin-notes-wp/admin/partials/wp-admin-notes-admin-display.php
- 187× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Field/Set_Field.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-notes-wp/includes/acf/advanced-custom-fields/includes/forms/form-widget.php:40
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/admin-notes-wp/includes/acf/advanced-custom-fields/includes/fields/class-acf-field-relationship.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Widget/Widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-notes-wp/includes/acf/advanced-custom-fields/includes/upgrades.php:450
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/admin-notes-wp/includes/acf/advanced-custom-fields/includes/admin/views/html-admin-page-upgrade-network.php:24
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Container/Condition/User_Role_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Field/Checkbox_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/admin-notes-wp/includes/acf/advanced-custom-fields/includes/fields/class-acf-field-number.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Translator' not found in wp-content/plugins/admin-notes-wp/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Array_Translator.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/crb_carbon_fields_container_admin_notes_wp.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_admin_notes_wp.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: note, embed, admin, help, training...
admin-notes-wp/wp-admin-notes.php 85% from 13 tests
The primary PHP file in "Admin Notes WP" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("admin-notes-wp.php" instead of "wp-admin-notes.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin117,947 lines of code in 613 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 57 | 24,455 | 40,907 | 51,296 |
JavaScript | 187 | 11,921 | 15,171 | 35,527 |
PHP | 291 | 12,316 | 24,614 | 25,462 |
CSS | 20 | 541 | 1,207 | 3,315 |
Sass | 48 | 335 | 0 | 1,753 |
JSON | 6 | 0 | 0 | 512 |
Markdown | 4 | 35 | 0 | 82 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 231 | |
▷ Abstract classes | 13 | 5.63% |
▷ Concrete classes | 218 | 94.37% |
▷ Final classes | 1 | 0.46% |
Methods | 1,624 | |
▷ Static methods | 93 | 5.73% |
▷ Public methods | 1,446 | 89.04% |
▷ Protected methods | 165 | 10.16% |
▷ Private methods | 13 | 0.80% |
Functions | 534 | |
▷ Named functions | 454 | 85.02% |
▷ Anonymous functions | 80 | 14.98% |
Constants | 39 | |
▷ Global constants | 16 | 41.03% |
▷ Class constants | 23 | 58.97% |
▷ Public constants | 23 | 100.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
8 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/acf/advanced-custom-fields/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png | 3.68KB | 4.17KB | 0.00% |
includes/acf/advanced-custom-fields/assets/inc/datepicker/images/ui-icons_444444_256x240.png | 3.68KB | 4.17KB | 0.00% |
includes/acf/advanced-custom-fields/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png | 3.68KB | 4.17KB | 0.00% |
admin/images/screen-id-tool.png | 10.30KB | 10.32KB | 0.00% |
includes/acf/advanced-custom-fields/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png | 0.08KB | 0.08KB | 0.00% |