Benchmarks
Plugin footprint 65% 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.57MB] [CPU: ▼36.35ms] Passed 4 tests
This is a short check of server-side resources used by FV Thoughtful Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 43.10 ▲1.81 |
Dashboard /wp-admin | 3.37 ▲0.07 | 28.42 ▼27.08 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 25.88 ▼32.33 |
Add New Post /wp-admin/post-new.php | 3.37 ▼2.52 | 29.53 ▼73.15 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 25.03 ▼12.84 |
FV Thoughtful Comments /wp-admin/options-general.php?page=manage_fv_thoughtful_comments | 3.37 | 26.37 |
FV Thoughtful Comments /wp-admin/tools.php?page=fv_thoughtful_comments | 3.37 | 23.21 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
thoughtful_comments |
Browser metrics Passed 4 tests
A check of browser resources used by FV Thoughtful Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.43 ▼0.16 | 1.69 ▼0.53 | 43.07 ▼6.50 |
Dashboard /wp-admin | 2,215 ▲38 | 5.56 ▼0.10 | 93.27 ▲7.04 | 41.04 ▲2.10 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▼0.02 | 35.85 ▼5.33 | 30.87 ▼6.40 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 22.93 ▼0.26 | 676.10 ▲8.40 | 64.77 ▲2.04 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.21 ▲0.09 | 97.83 ▼18.99 | 42.30 ▼6.25 |
FV Thoughtful Comments /wp-admin/options-general.php?page=manage_fv_thoughtful_comments | 1,125 | 2.24 | 38.37 | 33.74 |
FV Thoughtful Comments /wp-admin/tools.php?page=fv_thoughtful_comments | 893 | 1.67 | 28.41 | 30.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function get_option was called with an argument that is deprecated since version 5.5.0! The "comment_whitelist" option key has been renamed to "comment_previously_approved".
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- thoughtful_comments
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=fv_thoughtful_comments
- > User deprecated in wp-includes/functions.php+5737
Function get_option was called with an argument that is deprecated since version 5.5.0! The "comment_whitelist" option key has been renamed to "comment_previously_approved".
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/thoughtful-comments/fv-thoughtful-comments.php:88
- > PHP Fatal error
Uncaught Error: Class 'Walker_Comment' not found in wp-content/plugins/thoughtful-comments/walkers.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/tools.php?page=fv_thoughtful_comments
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: postboxes is not defined" "ReferenceError: postboxes is not defined\n at HTMLDocument.\u003Canonymous> (/wp-admin/tools.php?page=fv_thoughtful_comments:187:11)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/tools.php?page=fv_thoughtful_comments
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: postboxes is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (The front end comment moderation which editor and admin users are able to see and use.), #2 (Number of unapproved comments shown for editor and admin users in the frontend. The number is highlighted as there are some unapproved comments and there's a tooltip.), #3 (Per-user moderation settings.), #4 (Admin screen settings.)
thoughtful-comments/fv-thoughtful-comments.php 92% from 13 tests
The principal PHP file in "FV Thoughtful Comments" v. 0.3.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("thoughtful-comments.php" instead of "fv-thoughtful-comments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,525 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 397 | 708 | 1,124 |
PO File | 2 | 77 | 81 | 221 |
JavaScript | 1 | 20 | 6 | 128 |
CSS | 1 | 0 | 1 | 37 |
Markdown | 1 | 11 | 0 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 75.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 4.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 81 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 81 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 32.49KB | 32.53KB | 0.00% |
screenshot-3.png | 25.31KB | 10.19KB | ▼ 59.73% |
screenshot-2.png | 39.32KB | 19.24KB | ▼ 51.08% |
screenshot-4.png | 32.17KB | 21.20KB | ▼ 34.10% |