Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.15ms] Passed 4 tests
This is a short check of server-side resources used by Chauhan Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 33.72 ▼4.87 |
Dashboard /wp-admin | 3.39 ▲0.08 | 49.48 ▼0.83 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 41.17 ▼3.19 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.62 ▼3.69 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.15 ▲6.47 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 9 new options
New WordPress options |
---|
cfb_version |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_chauhanfacebookcomments |
widget_recent-comments |
theysaidso_admin_options |
cfb_options |
Browser metrics Passed 4 tests
Chauhan Comments: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.29 ▼1.12 | 1.67 ▼0.09 | 40.24 ▲3.38 |
Dashboard /wp-admin | 2,224 ▲36 | 5.79 ▲0.89 | 100.76 ▼9.23 | 81.30 ▲29.59 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.01 ▼0.02 | 38.41 ▼2.74 | 33.61 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.38 ▼0.02 | 660.00 ▲33.89 | 61.05 ▲7.31 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.22 ▼0.10 | 100.15 ▼2.59 | 80.68 ▲32.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- widget_chauhanfacebookcomments
- widget_recent-posts
- cfb_version
- theysaidso_admin_options
- can_compress_scripts
- cfb_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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 fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/chauhan-comments/index.php
- > /wp-content/plugins/chauhan-comments/chauhan-comments.php
- > /wp-content/plugins/chauhan-comments/images/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (**Facebook Comments box**: Facebook Comments box) image required
chauhan-comments/chauhan-comments.php 92% from 13 tests
"Chauhan Comments" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin304 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 50 | 48 | 304 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 0.41KB | 0.40KB | ▼ 2.14% |
images/info.png | 0.83KB | 0.65KB | ▼ 21.78% |