Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼16.48ms] Passed 4 tests
A check of server-side resources used by WP Toggle Comments Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.07 | 23.59 ▼17.44 |
Dashboard /wp-admin | 3.32 ▼0.03 | 46.28 ▼23.22 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.11 ▲2.81 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.40 ▼23.46 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.91 ▼1.80 |
WP toggle comments /wp-admin/options-general.php?page=wp-toggle-comments | 3.21 | 29.21 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Toggle Comments Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲146 | 14.13 ▼0.55 | 5.89 ▲4.20 | 36.12 ▼7.71 |
Dashboard /wp-admin | 2,209 ▲18 | 5.76 ▲0.80 | 95.93 ▼9.57 | 37.65 ▼5.12 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.04 | 40.27 ▲3.98 | 35.30 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.05 ▲0.00 | 668.23 ▼2.20 | 50.89 ▼9.60 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.23 ▼0.05 | 93.50 ▼10.50 | 41.37 ▼5.10 |
WP toggle comments /wp-admin/options-general.php?page=wp-toggle-comments | 894 | 2.08 | 27.04 | 23.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-toggle-comments
- > Notice in wp-content/plugins/wp-toggle-comments-form-fields/inc/options-page-wrapper.php+48
Undefined variable: using_options
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
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-toggle-comments-form-fields/inc/options-page-wrapper.php:4
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-toggle-comments-form-fields/wp-toggle-comments.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-toggle-comments-form-fields/wp-toggle-comments.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: jquery, shortcode, comments
wp-toggle-comments-form-fields/wp-toggle-comments.php 85% from 13 tests
The principal PHP file in "WP Toggle Comments Form" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-toggle-comments-form-fields.php" instead of "wp-toggle-comments.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin207 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 108 | 47 | 130 |
PO File | 1 | 9 | 11 | 36 |
JavaScript | 1 | 14 | 2 | 35 |
CSS | 2 | 5 | 8 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin