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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.91ms] Passed 4 tests
Analyzing server-side resources used by HTML Code Comments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.47 ▼1.15 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.09 ▼4.51 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.12 ▼3.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.38 ▼18.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.56 ▼0.47 |
HTML code in comments /wp-admin/options-general.php?page=html-code-comments | 3.31 | 31.50 |
Server storage [IO: ▲0.03MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
hcc_encode_html |
hcc_force_links_target |
db_upgraded |
hcc_allowed_tags |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
hcc_warning_message |
... |
Browser metrics Passed 4 tests
A check of browser resources used by HTML Code Comments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.24 ▼1.12 | 1.69 ▼0.03 | 43.26 ▼0.79 |
Dashboard /wp-admin | 2,210 ▲19 | 4.87 ▼0.03 | 103.63 ▼1.19 | 37.78 ▼5.80 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.02 | 35.19 ▼0.20 | 31.49 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.22 ▲5.73 | 673.17 ▲8.05 | 56.94 ▲1.13 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.05 | 93.57 ▼2.05 | 42.30 ▼3.04 |
HTML code in comments /wp-admin/options-general.php?page=html-code-comments | 1,345 | 2.18 | 22.96 | 34.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/html-code-comments/templates/config.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/html-code-comments/html-code-comments.php:25
- > 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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: html, tag, code, comment
html-code-comments/html-code-comments.php Passed 13 tests
Analyzing the main PHP file in "HTML Code Comments" version 1.1.1
77 characters long description:
This plugin allows to take control of the HTML code allowed in your comments.
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 plugin495 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 100 | 45 | 325 |
PO File | 1 | 34 | 35 | 109 |
CSS | 1 | 10 | 0 | 38 |
JavaScript | 1 | 7 | 0 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 17 | 70.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 29.17% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin