Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼6.83ms] Passed 4 tests
Server-side resources used by Decent Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 41.19 ▼4.52 |
Dashboard /wp-admin | 3.49 ▲0.18 | 52.42 ▼2.01 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 48.30 ▼0.17 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 88.40 ▼20.63 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 41.86 ▲7.69 |
Decent Comments /wp-admin/plugins.php?page=decent-comments-options | 3.38 | 33.89 |
Server storage [IO: ▲0.31MB] [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 |
widget_decent_comments_widget |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Decent Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.72 ▲0.08 | 1.67 ▼0.15 | 40.35 ▼2.49 |
Dashboard /wp-admin | 2,202 ▲28 | 5.65 ▲0.12 | 86.23 ▼8.66 | 42.02 ▲0.08 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.97 ▼0.13 | 37.05 ▼0.80 | 34.21 ▲0.51 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 21.10 ▲2.86 | 677.22 ▲14.21 | 61.85 ▲2.53 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.26 ▲0.08 | 99.54 ▼6.56 | 45.59 ▲6.01 |
Decent Comments /wp-admin/plugins.php?page=decent-comments-options | 777 | 1.99 | 25.48 | 25.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_decent_comments_widget
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Screenshot #1 (Decent Comments widget configuration.) image missing
decent-comments/decent-comments.php 92% from 13 tests
Analyzing the main PHP file in "Decent Comments" version 1.12.0
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 257 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
Good job! No executable or dangerous file extensions detected2,924 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 10 | 679 | 759 | 1,857 |
PHP | 6 | 180 | 522 | 1,045 |
CSS | 1 | 0 | 19 | 22 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 51.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 13.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 84.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 15 | 71.43% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 14 | |
▷ Named functions | 14 | 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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 40.91KB | 13.99KB | ▼ 65.80% |