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: ▲0.07MB] [CPU: ▼12.22ms] Passed 4 tests
Analyzing server-side resources used by WPDash Notes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.82 ▼0.48 |
Dashboard /wp-admin | 3.42 ▲0.08 | 49.62 ▼14.00 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.18 ▼4.26 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 89.66 ▼30.14 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.38 ▲4.68 |
Add New /wp-admin/post-new.php?post_type=wpf_post_it | 3.49 | 56.88 |
All Notes /wp-admin/edit.php?post_type=wpf_post_it | 3.43 | 50.30 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
wrm_201efb5d26868fd501ab |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WPDash Notes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲161 | 14.73 ▲0.17 | 1.72 ▲0.22 | 37.86 ▼4.04 |
Dashboard /wp-admin | 2,307 ▲133 | 5.64 ▼0.02 | 89.14 ▼1.12 | 41.81 ▲1.13 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.02 ▲0.03 | 42.65 ▲4.08 | 38.82 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,570 ▲44 | 23.72 ▲0.21 | 677.05 ▲55.01 | 52.33 ▼0.77 |
Media Library /wp-admin/upload.php | 1,461 ▲61 | 4.26 ▲0.09 | 97.63 ▼19.82 | 44.43 ▼6.77 |
Add New /wp-admin/post-new.php?post_type=wpf_post_it | 2,936 | 8.10 | 211.53 | 74.23 |
All Notes /wp-admin/edit.php?post_type=wpf_post_it | 1,792 | 2.01 | 37.26 | 34.15 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- wrm_201efb5d26868fd501ab
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpdash-notes/classes/dashboard-news.php
- > /wp-content/plugins/wpdash-notes/wpdash-notes.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Trait 'WPF\\WPDash_Notes\\Singleton' not found in wp-content/plugins/wpdash-notes/classes/plugin.php on line 5
- > PHP Warning
Use of undefined constant WPDASH_NOTES_DIR - assumed 'WPDASH_NOTES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpdash-notes/autoload.php on line 197
- > PHP Warning
Use of undefined constant WPDASH_NOTES_DIR - assumed 'WPDASH_NOTES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpdash-notes/autoload.php on line 203
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: You are using too many tags: 14 tag instead of maximum 10
wpdash-notes/wpdash-notes.php 85% from 13 tests
The main PHP script in "WPDash Notes" version 1.3.3 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,565 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 638 | 907 | 1,892 |
JavaScript | 4 | 42 | 45 | 177 |
JSON | 4 | 0 | 0 | 170 |
PO File | 1 | 68 | 72 | 159 |
CSS | 3 | 3 | 9 | 144 |
Markdown | 1 | 18 | 0 | 23 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 24.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 112 | |
▷ Static methods | 33 | 29.46% |
▷ Public methods | 82 | 73.21% |
▷ Protected methods | 12 | 10.71% |
▷ Private methods | 18 | 16.07% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 5 | |
▷ Global constants | 5 | 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