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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼16.83ms] Passed 4 tests
This is a short check of server-side resources used by Comment Form Shortcode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 34.22 ▼3.83 |
Dashboard /wp-admin | 3.34 ▼0.00 | 44.12 ▼13.84 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.42 ▼1.68 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.20 ▼47.97 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.80 ▲0.49 |
Comment Form Shortcode /wp-admin/options-general.php?page=comment-form-shortcode | 3.23 | 30.25 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Comment Form Shortcode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.72 ▼0.67 | 1.70 ▼0.06 | 40.50 ▼0.69 |
Dashboard /wp-admin | 2,210 ▲22 | 5.79 ▲0.95 | 95.30 ▼5.60 | 37.87 ▼12.61 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.06 | 39.45 ▲0.70 | 34.29 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 18.37 ▼4.91 | 591.05 ▼76.05 | 67.91 ▲8.54 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.21 ▼0.00 | 92.67 ▼5.24 | 42.75 ▼3.21 |
Comment Form Shortcode /wp-admin/options-general.php?page=comment-form-shortcode | 1,129 | 4.14 | 66.28 | 97.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/comment-form-shortcode/class/our_plugins.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-form-shortcode/comment-form-shortcode.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=comment-form-shortcode
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/options-general.php?page=comment-form-shortcode
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/options-general.php?page=comment-form-shortcode
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
- > GET request to /wp-admin/options-general.php?page=comment-form-shortcode
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
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
3 plugin tags: form, shortcode, comment
comment-form-shortcode/comment-form-shortcode.php Passed 13 tests
The main PHP script in "Comment Form Shortcode" version 1.3 is automatically included on every request by WordPress
93 characters long description:
Comment Form Shortcode allow you to show comment inside post,page and widget using [comment].
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
There were no executable files found in this plugin8,236 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 31 | 29 | 6,214 |
JavaScript | 3 | 588 | 279 | 1,567 |
SVG | 1 | 0 | 0 | 229 |
PHP | 2 | 59 | 13 | 226 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin