Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.59ms] Passed 4 tests
This is a short check of server-side resources used by Disable Comments | WPZest
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.20 ▼2.60 |
Dashboard /wp-admin | 3.43 ▲0.12 | 49.01 ▼2.25 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 50.88 ▲0.55 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 85.72 ▼10.07 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 33.36 ▲0.64 |
Disable Comments /wp-admin/options-general.php?page=books-shortcode-ref | 3.32 | 36.51 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 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
This is an overview of browser requirements for Disable Comments | WPZest
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.37 ▲0.10 | 1.81 ▼0.74 | 46.48 ▼1.07 |
Dashboard /wp-admin | 2,196 ▲28 | 5.62 ▲0.05 | 94.85 ▲3.70 | 41.23 ▼3.78 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.03 | 40.97 ▲3.71 | 36.46 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.41 ▲0.19 | 662.69 ▲60.10 | 63.66 ▲15.56 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▼0.03 | 97.37 ▲0.44 | 46.24 ▲0.80 |
Disable Comments /wp-admin/options-general.php?page=books-shortcode-ref | 1,092 | 2.21 | 33.89 | 58.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=books-shortcode-ref
- > Notice in wp-content/plugins/disable-comments-wpz/dc-wpzest.php+349
Undefined variable: everywhere
- > GET request to /wp-admin/options-general.php?page=books-shortcode-ref
- > Notice in wp-content/plugins/disable-comments-wpz/dc-wpzest.php+427
Undefined variable: checkedmedia
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/disable-comments-wpz/dc-wpzest.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Screenshot #5 (Disable Comments in settings of wordpress Dashboard) image not found
- Tags: You are using too many tags: 17 tag instead of maximum 10
disable-comments-wpz/dc-wpzest.php 77% from 13 tests
The main PHP file in "Disable Comments | WPZest" ver. 1.51 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disable-comments-wpz.php" instead of "dc-wpzest.php")
- Description: Keep the plugin description shorter than 140 characters (currently 203 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin970 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 60 | 45 | 484 |
PO File | 5 | 75 | 89 | 287 |
CSS | 1 | 28 | 5 | 153 |
JavaScript | 2 | 11 | 12 | 46 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 2 | |
▷ Static methods | 1 | 50.00% |
▷ Public methods | 1 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 50.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 51.20KB | 22.23KB | ▼ 56.58% |
assets/screenshot-4.png | 65.78KB | 28.47KB | ▼ 56.71% |
assets/screenshot-3.png | 55.50KB | 22.11KB | ▼ 60.15% |
assets/screenshot-1.png | 48.43KB | 19.55KB | ▼ 59.62% |
assets/icon-128x128.png | 16.39KB | 10.88KB | ▼ 33.63% |