89% gplus-comments

Code Review | Comments Evolved for WordPress

WordPress plugin Comments Evolved for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: gplus-comments
  • Plugin version: 1.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.2
  • WordPress version: 6.3.1
  • First release: Apr 24, 2013
  • Latest release: Aug 19, 2016
  • Number of updates: 141
  • Update frequency: every 8.6 days
  • Top authors: bholtsclaw (81.56%)kfirshahar (13.48%)alexfedor1026 (3.55%)idanm (3.55%)

Code review

54 tests

User reviews

80 reviews

Install metrics

2,000+ active /148,515 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.87ms] Passed 4 tests

Analyzing server-side resources used by Comments Evolved for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.13 ▼2.84
Dashboard /wp-admin3.33 ▲0.0246.03 ▼5.01
Posts /wp-admin/edit.php3.38 ▲0.0250.32 ▲6.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.30 ▲4.06
Media Library /wp-admin/upload.php3.25 ▲0.0234.47 ▲0.31
Comments Evolved /wp-admin/options-general.php?page=comments-evolved3.2331.83

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
comments-evolved
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Comments Evolved for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,952 ▲21713.77 ▼0.835.90 ▲4.0271.55 ▲26.56
Dashboard /wp-admin2,210 ▲226.04 ▲0.97107.47 ▼11.7050.87 ▲7.34
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0439.00 ▲2.3541.27 ▲7.24
Add New Post /wp-admin/post-new.php1,517 ▲10623.39 ▲5.45620.37 ▼1.4561.80 ▲5.14
Media Library /wp-admin/upload.php1,389 ▲74.19 ▼0.04102.56 ▲0.9338.29 ▼4.47
Comments Evolved /wp-admin/options-general.php?page=comments-evolved1,0251.8126.0334.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • comments-evolved

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

gplus-comments/comments-evolved.php 85% from 13 tests

"Comments Evolved for WordPress" version 1.6.3'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:
  • Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("gplus-comments.php" instead of "comments-evolved.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,123 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP132383281,794
LESS1291180
CSS22711149

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity164.50
▷ Minimum class complexity131.00
▷ Maximum class complexity198.00
Average method complexity4.85
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods85
▷ Static methods11.18%
▷ Public methods6981.18%
▷ Protected methods1618.82%
▷ Private methods00.00%
Functions23
▷ Named functions2086.96%
▷ Anonymous functions313.04%
Constants30
▷ Global constants30100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.08MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icons/monotone/gplus.png0.25KB0.47KB0.00%
assets/images/icons/monotone/facebook.png0.63KB0.72KB0.00%
assets/images/ui_tab_arrow_h.png0.11KB0.13KB0.00%
assets/images/icons/default/livefyre.png6.80KB0.78KB▼ 88.54%
assets/images/icons/monotone/wordpress.png2.08KB2.47KB0.00%