84% chauhan-comments

Code Review | Chauhan Comments

WordPress plugin Chauhan Comments scored84%from 54 tests.

About plugin

  • Plugin page: chauhan-comments
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2019
  • Latest release: Sep 19, 2019
  • Number of updates: 2
  • Update frequency: every 7.0 days
  • Top authors: gautamsinghchauhan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /473 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0833.72 ▼4.87
Dashboard /wp-admin3.39 ▲0.0849.48 ▼0.83
Posts /wp-admin/edit.php3.44 ▲0.0841.17 ▼3.19
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.62 ▼3.69
Media Library /wp-admin/upload.php3.31 ▲0.0838.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.29 ▼1.121.67 ▼0.0940.24 ▲3.38
Dashboard /wp-admin2,224 ▲365.79 ▲0.89100.76 ▼9.2381.30 ▲29.59
Posts /wp-admin/edit.php2,104 ▲122.01 ▼0.0238.41 ▼2.7433.61 ▼0.67
Add New Post /wp-admin/post-new.php1,545 ▲318.38 ▼0.02660.00 ▲33.8961.05 ▲7.31
Media Library /wp-admin/upload.php1,406 ▲154.22 ▼0.10100.15 ▼2.5980.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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP25048304

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 code0.50
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/logo.png0.41KB0.40KB▼ 2.14%
images/info.png0.83KB0.65KB▼ 21.78%