99% advanced-comments-widget

Code Review | Advanced Comments Widget

WordPress plugin Advanced Comments Widget scored 99% 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: 5.9.2
  • 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,710 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼288.48ms] Passed 4 tests

Analyzing server-side resources used by Advanced Comments Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2056.61 ▲4.97
Dashboard /wp-admin3.53 ▲0.1333.83 ▼4.06
Posts /wp-admin/edit.php3.77 ▲0.1339.95 ▲2.67
Add New Post /wp-admin/post-new.php7.03 ▲0.0495.75 ▼1,152.90
Media Library /wp-admin/upload.php3.42 ▲0.1325.28 ▲0.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Comments Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲2215.97 ▼0.066.18 ▼0.602.36 ▲0.35
Dashboard /wp-admin2,895 ▲346.20 ▼0.07118.84 ▼14.79154.22 ▼4.68
Posts /wp-admin/edit.php2,691 ▲33.24 ▲0.0164.24 ▼0.31154.86 ▲12.25
Add New Post /wp-admin/post-new.php1,664 ▼8816.19 ▼5.34408.84 ▼20.82150.13 ▼8.79
Media Library /wp-admin/upload.php1,704 ▲65.49 ▲0.06147.00 ▲0.24182.12 ▼9.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: You can take inspiration from this readme.txt

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

The main PHP script in "Advanced Comments Widget" version 1.1.2 is automatically included on every request by WordPress
The following require your attention:
  • Domain Path: The domain path folder was not found ("/lang")

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
Everything looks great! No dangerous files found in this plugin686 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4213510623
Markdown120035
JavaScript110628

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.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
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods35
▷ Static methods2468.57%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.72MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png76.60KB31.63KB▼ 58.70%
assets/icon-256x256.png1.96KB1.30KB▼ 33.30%
assets/screenshot-3.png106.88KB42.28KB▼ 60.44%
assets/banner-772x250.png2.40KB1.73KB▼ 27.98%
assets/screenshot-4.png550.10KB198.15KB▼ 63.98%