Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.55ms] Passed 4 tests
Analyzing server-side resources used by WP Comment Notes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.87 ▲2.84 |
Dashboard /wp-admin | 3.35 ▲0.01 | 44.05 ▼13.98 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 48.89 ▲4.17 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 94.05 ▲4.77 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.13 ▲6.26 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Comment Notes: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.42 ▲0.13 | 1.79 ▲0.18 | 44.91 ▲8.54 |
Dashboard /wp-admin | 2,203 ▲11 | 5.79 ▲0.82 | 94.17 ▼14.77 | 41.63 ▼1.09 |
Posts /wp-admin/edit.php | 2,091 ▲5 | 2.03 ▲0.01 | 39.17 ▲2.39 | 35.00 ▲1.04 |
Add New Post /wp-admin/post-new.php | 6,302 ▲4,783 | 21.64 ▼1.54 | 841.57 ▲174.57 | 77.88 ▲20.03 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.02 | 93.38 ▼1.95 | 41.05 ▼3.03 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-comment-notes/wp-comment-notes.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: comments, comment notes, comment
wp-comment-notes/wp-comment-notes.php Passed 13 tests
The main PHP script in "WP Comment Notes" version 1.0.0 is automatically included on every request by WordPress
50 characters long description:
Add custom notes before or after the comment form.
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
Everything looks great! No dangerous files found in this plugin244 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 88 | 93 | 167 |
CSS | 2 | 6 | 0 | 45 |
SVG | 2 | 0 | 0 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin