Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼1.15MB] [CPU: ▼37.40ms] Passed 4 tests
Analyzing server-side resources used by Disable Post Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.82 ▼0.64 | 18.18 ▼26.65 |
Dashboard /wp-admin | 2.86 ▼0.44 | 19.36 ▼28.36 |
Posts /wp-admin/edit.php | 2.86 ▼0.49 | 17.86 ▼26.41 |
Add New Post /wp-admin/post-new.php | 2.86 ▼3.02 | 18.50 ▼68.18 |
Media Library /wp-admin/upload.php | 2.86 ▼0.36 | 16.38 ▼18.64 |
Delete Comments /wp-admin/tools.php?page=disable_comments_tools | 2.87 | 19.35 |
Disable Comments /wp-admin/options-general.php?page=disable_comments_settings | 2.87 | 19.45 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
disable_post_comments_options |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Disable Post Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲49 | 14.85 ▲0.64 | 1.62 ▼0.65 | 43.30 ▼0.20 |
Dashboard /wp-admin | 2,223 ▲35 | 5.77 ▲0.88 | 99.40 ▼17.25 | 40.29 ▼9.25 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.00 ▼0.04 | 36.54 ▼5.31 | 33.32 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.51 ▲6.13 | 661.17 ▼27.88 | 64.32 ▲13.93 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.18 ▼0.07 | 100.39 ▼8.51 | 46.71 ▲0.47 |
Delete Comments /wp-admin/tools.php?page=disable_comments_tools | 848 | 1.70 | 29.88 | 36.12 |
Disable Comments /wp-admin/options-general.php?page=disable_comments_settings | 845 | 1.86 | 26.69 | 25.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/disable-post-comments/disable-post-comments.php+119
Undefined index: disabled_post_types
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=disable_comments_settings
- > Notice in wp-content/plugins/disable-post-comments/includes/dpc-settings-page.php+63
Undefined index: disabled_post_types
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=disable_comments_settings
- > Notice in wp-content/plugins/disable-post-comments/includes/dpc-settings-page.php+58
Undefined index: remove_everywhere
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=disable_comments_settings
- > Warning in wp-content/plugins/disable-post-comments/includes/dpc-settings-page.php+63
in_array() expects parameter 2 to be array, null given
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=disable_comments_settings
- > Network (severe)
wp-content/plugins/disable-post-comments/css/dpc_style.css?ver=1.0.3 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in disable-post-comments/assets to your readme.txt
disable-post-comments/disable-post-comments.php Passed 13 tests
The main PHP script in "Disable Post Comments" version 1.0.3 is automatically included on every request by WordPress
137 characters long description:
This plugin allows administrators can disable wordpress all post type comments on their site and also can be disabled specific post type.
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
No dangerous file extensions were detected1,820 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 10 | 254 | 299 | 1,190 |
PHP | 5 | 90 | 90 | 534 |
CSS | 1 | 3 | 0 | 77 |
JavaScript | 2 | 1 | 1 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 72.00 |
▷ Minimum class complexity | 72.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 37 | |
▷ Static methods | 1 | 2.70% |
▷ Public methods | 28 | 75.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 24.32% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin