Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.32ms] Passed 4 tests
This is a short check of server-side resources used by Comment Moderation Highlighter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.75 ▼0.59 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.17 ▼4.00 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.71 ▼2.99 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.72 ▼28.85 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.53 ▼1.42 |
Comment Highlighter /wp-admin/options-general.php?page=comment-moderation-highlighter | 3.23 | 31.38 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
cmh_highlight_keywords |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Comment Moderation Highlighter: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.17 ▼1.21 | 1.76 ▲0.11 | 45.22 ▲5.50 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.01 | 96.68 ▼11.78 | 40.32 ▼1.83 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 1.99 ▼0.00 | 34.55 ▼6.21 | 31.57 ▼7.13 |
Add New Post /wp-admin/post-new.php | 1,517 ▼20 | 17.77 ▼0.23 | 674.94 ▲52.16 | 51.76 ▼0.42 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.26 ▲0.04 | 94.89 ▼11.90 | 42.17 ▼2.91 |
Comment Highlighter /wp-admin/options-general.php?page=comment-moderation-highlighter | 821 | 2.17 | 24.40 | 36.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/comment-moderation-highlighter/comment-moderation-highlighter.php
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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: comments, troll, highlighter, comment, spam...
comment-moderation-highlighter/comment-moderation-highlighter.php Passed 13 tests
The principal PHP file in "Comment Moderation Highlighter" v. 0.2 is loaded by WordPress automatically on each request
97 characters long description:
Highlights key phrases in comments during moderation to better spot manual spam or troll remarks.
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
No dangerous file extensions were detected155 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 20 | 131 |
CSS | 1 | 2 | 0 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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
PNG images were not found in this plugin