Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.27MB] [CPU: ▲2.71ms] Passed 4 tests
This is a short check of server-side resources used by Disable Comments for Any Post Types (Remove comments)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.74 | 42.17 ▲4.42 |
Dashboard /wp-admin | 4.81 ▲1.46 | 59.45 ▼1.83 |
Posts /wp-admin/edit.php | 4.85 ▲1.49 | 59.39 ▲7.30 |
Add New Post /wp-admin/post-new.php | 7.34 ▲1.45 | 97.39 ▲0.95 |
Media Library /wp-admin/upload.php | 4.66 ▲1.43 | 49.12 ▲14.77 |
Disable comments /wp-admin/options-general.php?page=comments-wbcr_comments_plus | 5.56 | 373.83 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 234 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
wbcr_comments_plus_plugin_activated |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
wbcr_comments_plus_plugin_version |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Disable Comments for Any Post Types (Remove comments)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲147 | 14.31 ▲0.20 | 1.89 ▲0.38 | 42.09 ▲5.66 |
Dashboard /wp-admin | 2,274 ▲97 | 5.62 ▼0.03 | 97.18 ▼2.71 | 43.52 ▼2.55 |
Posts /wp-admin/edit.php | 2,180 ▲80 | 2.03 ▲0.09 | 41.43 ▲2.01 | 36.90 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,577 ▲50 | 23.27 ▲0.07 | 593.34 ▲15.02 | 52.38 ▲2.44 |
Media Library /wp-admin/upload.php | 1,453 ▲56 | 4.25 ▲0.05 | 97.63 ▼8.81 | 42.41 ▼3.79 |
Disable comments /wp-admin/options-general.php?page=comments-wbcr_comments_plus | 1,374 | 2.38 | 40.88 | 46.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/comments-plus/libs/factory/templates/pages/setup-parts/class-step-custom.php:11
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/comments-plus/libs/factory/templates/pages/setup-parts/class-step-form.php:11
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_FactoryForms469_FontControl' not found in wp-content/plugins/comments-plus/libs/factory/forms/controls/google-font.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
comments-plus/comments-plus.php Passed 13 tests
The main file in "Disable Comments for Any Post Types (Remove comments)" v. 1.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
119 characters long description:
Allows administrators to globally disable comments on their site. Comments can be disabled for individual record types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin19,294 lines of code in 174 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 114 | 3,134 | 7,366 | 10,873 |
CSS | 26 | 168 | 257 | 2,578 |
LESS | 6 | 409 | 91 | 1,973 |
JSON | 1 | 0 | 0 | 1,810 |
PO File | 10 | 390 | 497 | 1,438 |
JavaScript | 16 | 189 | 205 | 620 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 15.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 95 | |
▷ Abstract classes | 16 | 16.84% |
▷ Concrete classes | 79 | 83.16% |
▷ Final classes | 0 | 0.00% |
Methods | 716 | |
▷ Static methods | 28 | 3.91% |
▷ Public methods | 541 | 75.56% |
▷ Protected methods | 140 | 19.55% |
▷ Private methods | 35 | 4.89% |
Functions | 36 | |
▷ Named functions | 21 | 58.33% |
▷ Anonymous functions | 15 | 41.67% |
Constants | 47 | |
▷ Global constants | 40 | 85.11% |
▷ Class constants | 7 | 14.89% |
▷ Public constants | 7 | 100.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
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/factory/templates/pages/templates/impressive/assets/img/webcraftic-plugin-icon.png | 1.97KB | 0.75KB | ▼ 61.79% |
libs/factory/templates/pages/templates/impressive-lite/assets/img/5-stars22.png | 3.51KB | 0.70KB | ▼ 79.99% |
libs/factory/templates/pages/templates/impressive/assets/img/5-stars22.png | 3.51KB | 0.70KB | ▼ 79.99% |
libs/factory/templates/pages/templates/impressive-lite/assets/img/webcraftic-plugin-icon.png | 1.97KB | 0.75KB | ▼ 61.79% |
libs/factory/templates/pages/templates/impressive-lite/assets/img/paypal-donate.png | 12.44KB | 4.99KB | ▼ 59.88% |