90% disqus-latest-comments

Code Review | Disqus Latest Comments Addon

WordPress plugin Disqus Latest Comments Addon scored 90% from 54 tests.

About plugin

  • Plugin page: disqus-latest-com...
  • Plugin version: 2.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.2
  • WordPress version: 5.8.1
  • First release: Oct 20, 2014
  • Latest release: Apr 28, 2019
  • Number of updates: 65
  • Update frequency: every 25.4 days
  • Top authors: ovann86 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active / 15,000 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▼141.95ms] Passed 4 tests

This is a short check of server-side resources used by Disqus Latest Comments Addon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.99 ▲0.2745.83 ▲20.78
Dashboard /wp-admin3.23 ▲0.1856.60 ▼1.00
Posts /wp-admin/edit.php3.34 ▲0.2441.15 ▼6.10
Add New Post /wp-admin/post-new.php5.59 ▲0.1699.74 ▼562.45
Media Library /wp-admin/upload.php3.18 ▲0.1737.02 ▲1.75
All Comments /wp-admin/edit-comments.php3.2441.87
Disqus Latest Comments /wp-admin/edit-comments.php?page=disqus-latest-comments3.0825.32
Disqus Latest Comments /wp-admin/options-general.php?page=itsg_disqus_lastest_comments3.1434.59

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Disqus Latest Comments Addon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,743 ▲14816.19 ▲0.7310.32 ▲0.5253.21 ▲4.18
Dashboard /wp-admin3,010 ▲765.86 ▼0.11145.80 ▼14.16120.70 ▲2.52
Posts /wp-admin/edit.php2,779 ▲402.83 ▲0.0272.13 ▼1.33100.20 ▲9.35
Add New Post /wp-admin/post-new.php1,526 ▼6518.47 ▼0.37367.06 ▼32.54113.60 ▲2.79
Media Library /wp-admin/upload.php1,850 ▲405.02 ▲0.03148.00 ▼10.89126.87 ▲0.10
All Comments /wp-admin/edit-comments.php2,4632.8768.04105.32
Disqus Latest Comments /wp-admin/edit-comments.php?page=disqus-latest-comments1,4512.4863.4483.59
Disqus Latest Comments /wp-admin/options-general.php?page=itsg_disqus_lastest_comments1,4512.4565.4681.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • itsg_disqus_lastest_comments_addon_settings

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: disqus, recent, shortcode, comments, latest

disqus-latest-comments/disqus-latest-comments-addon.php 92% from 13 tests

The principal PHP file in "Disqus Latest Comments Addon" v. 2.3.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disqus-latest-comments.php" instead of "disqus-latest-comments-addon.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
Everything looks great! No dangerous files found in this plugin901 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity93.00
▷ Minimum class complexity93.00
▷ Maximum class complexity93.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2980.56%
▷ Protected methods719.44%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin