Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.58MB] [CPU: ▼137.90ms] 75% from 4 tests
This is a short check of server-side resources used by Note - A live edit text widget
Please take the time to fix the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 4,343.52ms on /wp-admin/options-general.php?page=note)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▲0.59 | 40.98 ▲9.93 |
Dashboard /wp-admin | 3.66 ▲0.60 | 46.67 ▲0.09 |
Posts /wp-admin/edit.php | 3.71 ▲0.60 | 51.48 ▲4.32 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.52 | 92.98 ▼563.74 |
Media Library /wp-admin/upload.php | 3.60 ▲0.60 | 37.41 ▲7.72 |
Note /wp-admin/options-general.php?page=note | 3.60 | 4,343.52 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 2 new options
New WordPress options |
---|
note |
widget_note-widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Note - A live edit text widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.64 ▲0.04 | 11.17 ▲1.99 | 43.26 ▼2.96 |
Dashboard /wp-admin | 2,972 ▲41 | 5.91 ▼0.18 | 146.36 ▼6.26 | 106.70 ▲4.72 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 66.65 ▼1.28 | 91.91 ▲2.26 |
Add New Post /wp-admin/post-new.php | 1,618 ▼65 | 21.33 ▲2.54 | 297.80 ▼77.60 | 100.71 ▼13.47 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.00 | 150.67 ▼1.92 | 113.86 ▲1.18 |
Note /wp-admin/options-general.php?page=note | 2,178 | 9.77 | 257.77 | 207.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/note/includes/admin/views/html-note-help.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/note/includes/admin/views/html-note-options-sidebar.php:2
- > PHP Fatal error
Uncaught Error: Class 'Note_Admin_Options_Views' not found in wp-content/plugins/note/includes/admin/views/html-note-options-uninstall-data-field.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/note/includes/admin/views/html-note-options-uninstall-section.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/note/includes/admin/views/html-note-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/note/includes/admin/views/html-note-options-general-section.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=note
- > Other (warning) in unknown
/wp-admin/options-general.php?page=note 159 Allow attribute will take precedence over 'allowfullscreen'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Invalid URI ("")
note/note.php 92% from 13 tests
The main file in "Note - A live edit text widget" v. 1.4.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,221 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 763 | 291 | 3,999 |
PHP | 28 | 792 | 1,910 | 2,653 |
JavaScript | 9 | 756 | 1,457 | 2,569 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 37.92 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 12 | 100.00% |
Methods | 129 | |
▷ Static methods | 39 | 30.23% |
▷ Public methods | 123 | 95.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 4.65% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected