Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼143.94ms] Passed 4 tests
This is a short check of server-side resources used by Hide Comments Feature
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 39.57 ▲17.88 |
Dashboard /wp-admin | 3.08 ▲0.03 | 48.70 ▲3.63 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 44.18 ▲0.28 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 87.68 ▼578.68 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 31.02 ▼0.98 |
All Comments /wp-admin/edit-comments.php | 3.09 | 35.66 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
hide_comments_plugin_version |
Browser metrics Passed 4 tests
A check of browser resources used by Hide Comments Feature
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,652 ▲56 | 15.90 ▲0.29 | 11.30 ▲2.22 | 48.82 ▲0.48 |
Dashboard /wp-admin | 2,929 ▼2 | 5.92 ▼0.01 | 152.63 ▼2.51 | 111.75 ▼4.78 |
Posts /wp-admin/edit.php | 2,602 ▼137 | 2.84 ▲0.12 | 67.02 ▼5.45 | 92.96 ▲8.57 |
Add New Post /wp-admin/post-new.php | 1,574 ▼109 | 18.36 ▼0.07 | 382.30 ▼45.28 | 106.67 ▲1.10 |
Media Library /wp-admin/upload.php | 1,767 ▼55 | 5.01 ▼0.00 | 188.10 ▲37.50 | 116.72 ▲1.51 |
All Comments /wp-admin/edit-comments.php | 2,383 | 2.88 | 68.49 | 81.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hide-comments-feature/template-comments.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/hide-comments-feature/hide-comments.php:75
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (There is no Comments menu link!), #2 (The comments template disappeared (magically) from the Twenty Twelve theme.)
hide-comments-feature/hide-comments.php 85% from 13 tests
"Hide Comments Feature" version 0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("hide-comments-feature.php" instead of "hide-comments.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin148 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 56 | 75 | 110 |
PO File | 2 | 6 | 4 | 38 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 12 | |
▷ Static methods | 11 | 91.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 12.18KB | 6.02KB | ▼ 50.57% |
screenshot-1.png | 36.50KB | 14.78KB | ▼ 59.51% |