Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/comment-form-message/includes/class.abd_section.inc.php+77
Undefined offset: 5
Server metrics [RAM: ▼1.80MB] [CPU: ▼49.48ms] Passed 4 tests
Analyzing server-side resources used by Comment Form Message
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 6.51 ▼33.48 |
Dashboard /wp-admin | 2.21 ▼1.10 | 8.08 ▼42.58 |
Posts /wp-admin/edit.php | 2.21 ▼1.15 | 9.02 ▼43.71 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.68 | 10.47 ▼78.13 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 7.30 ▼26.81 |
Comment Form Message /wp-admin/options-general.php?page=wpcci_options_page | 2.21 | 8.29 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
abd_libs_version |
theysaidso_admin_options |
wpcci_version |
wpcci_just_activated |
Browser metrics Passed 4 tests
An overview of browser requirements for Comment Form Message
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.27 ▼1.31 | 1.69 ▼0.52 | 40.26 ▼2.11 |
Dashboard /wp-admin | 2,212 ▲38 | 4.87 ▼1.03 | 110.19 ▲8.47 | 39.97 ▼4.62 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▲0.00 | 41.12 ▲0.28 | 35.21 ▼2.14 |
Add New Post /wp-admin/post-new.php | 6,703 ▲5,169 | 22.66 ▼0.53 | 991.82 ▲348.16 | 79.07 ▲17.71 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.12 ▼0.09 | 97.49 ▼0.49 | 42.71 ▲0.83 |
Comment Form Message /wp-admin/options-general.php?page=wpcci_options_page | 1,645 | 6.71 | 150.58 | 100.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/comment-form-message/includes/class.abd_section.inc.php+77
Undefined offset: 5
- Zombie WordPress options were found after uninstall: 9 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- abd_libs_version
- widget_recent-posts
- wpcci_version
- widget_theysaidso_widget
- widget_recent-comments
- wpcci_just_activated
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpcci_options_page
- > Notice in wp-content/plugins/comment-form-message/includes/class.abd_meta_box.inc.php+42
Undefined offset: 5
- > GET request to /wp-admin/options-general.php?page=wpcci_options_page
- > Notice in wp-content/plugins/comment-form-message/includes/class.abd_meta_box.inc.php+42
Undefined offset: 4
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpcci_options_page
- > Notice in wp-content/plugins/comment-form-message/includes/class.abd_options_page.inc.php+41
Only variables should be passed by reference
- > GET request to /wp-admin/options-general.php?page=wpcci_options_page
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wpcci_options_page
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 42× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'abd_meta_option' not found in wp-content/plugins/comment-form-message/includes/class.abd_date_picker_meta_option.inc.php:12
- > PHP Fatal error
Uncaught Error: Class 'abd_foundation' not found in wp-content/plugins/comment-form-message/includes/class.abd_help_tab.inc.php:11
- > PHP Fatal error
Uncaught Error: Class 'abd_single_choice_option' not found in wp-content/plugins/comment-form-message/includes/class.abd_inline_radio_option.inc.php:11
- > PHP Fatal error
Uncaught Error: Class 'abd_option' not found in wp-content/plugins/comment-form-message/includes/class.abd_date_picker_option.inc.php:11
- > PHP Fatal error
Uncaught Error: Class 'abd_textarea_meta_option' not found in wp-content/plugins/comment-form-message/includes/class.abd_wysiwyg_meta_option.inc.php:12
- > PHP Fatal error
Uncaught Error: Class 'abd_option' not found in wp-content/plugins/comment-form-message/includes/class.abd_upload_option.inc.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/comment-form-message/comment-form-message.php:34
- > PHP Fatal error
Uncaught Error: Class 'abd_text_meta_option' not found in wp-content/plugins/comment-form-message/includes/class.abd_textarea_meta_option.inc.php:12
- > PHP Fatal error
Uncaught Error: Class 'abd_meta_option' not found in wp-content/plugins/comment-form-message/includes/abstract.class.abd_multiple_choice_meta_option.inc.php:13
- > PHP Fatal error
Uncaught Error: Class 'abd_meta_option' not found in wp-content/plugins/comment-form-message/includes/class.abd_text_meta_option.inc.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: comments, comments notice, comments form message, comments policy, comment message...
comment-form-message/comment-form-message.php Passed 13 tests
"Comment Form Message" version 1.38's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
80 characters long description:
Add a custom message near the comments form on a sitewide and/or per post basis.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,603 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 332 | 466 | 2,238 |
CSS | 3 | 35 | 66 | 332 |
PO File | 1 | 9 | 14 | 29 |
JavaScript | 1 | 0 | 13 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 8 | 18.60% |
▷ Concrete classes | 35 | 81.40% |
▷ Final classes | 0 | 0.00% |
Methods | 229 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 174 | 75.98% |
▷ Protected methods | 27 | 11.79% |
▷ Private methods | 28 | 12.23% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
45 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/preview/object-unlocked.png | 0.64KB | 0.73KB | 0.00% |
icons/object-locked.png | 1.79KB | 1.75KB | ▼ 2.40% |
icons/task-attention.png | 2.48KB | 1.86KB | ▼ 25.16% |
includes/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.25KB | 0.15KB | ▼ 39.62% |
icons/preview/dialog-information.png | 1.12KB | 1.28KB | 0.00% |