89% advanced-comments-widget

Code Review | Advanced Comments Widget

WordPress plugin Advanced Comments Widget scored89%from 54 tests.

About plugin

  • Plugin page: advanced-comments...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.5
  • WordPress version: 6.3.1
  • First release: Mar 21, 2016
  • Latest release: Apr 16, 2016
  • Number of updates: 11
  • Update frequency: every 3.1 days
  • Top authors: dbmartin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,969 total downloads


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 gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.31ms] Passed 4 tests

Server-side resources used by Advanced Comments Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1343.26 ▲1.35
Dashboard /wp-admin3.43 ▲0.1352.64 ▲0.06
Posts /wp-admin/edit.php3.54 ▲0.1951.81 ▼3.36
Add New Post /wp-admin/post-new.php6.01 ▲0.1397.97 ▼7.30
Media Library /wp-admin/upload.php3.35 ▲0.1338.06 ▲1.44

Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Comments Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.35 ▲0.151.75 ▼0.1245.19 ▲5.99
Dashboard /wp-admin2,198 ▲215.59 ▲0.0194.87 ▲9.0642.18 ▼1.43
Posts /wp-admin/edit.php2,103 ▼02.03 ▼0.0837.76 ▼4.4736.79 ▼0.27
Add New Post /wp-admin/post-new.php1,532 ▼323.23 ▲4.94594.60 ▼54.3449.26 ▼22.46
Media Library /wp-admin/upload.php1,406 ▲34.27 ▲0.05100.80 ▼0.0743.03 ▼1.76

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • widget_acw-recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

advanced-comments-widget/advanced-comments-widget.php 92% from 13 tests

"Advanced Comments Widget" version 1.1.2'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:
  • Domain Path: The domain path points to an invalid folder, "/lang" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected686 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity18.00
▷ Minimum class complexity5.00
▷ Maximum class complexity28.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods2468.57%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.72MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png1.96KB1.30KB▼ 33.30%
assets/screenshot-1.png76.60KB31.63KB▼ 58.70%
assets/screenshot-3.png106.88KB42.28KB▼ 60.44%
assets/banner-772x250.png2.40KB1.73KB▼ 27.98%
assets/icon-128x128.png1.08KB0.85KB▼ 20.96%