10% disqus-recent-comments-widget-advanced

Code Review | Disqus Recent Comments Widget Advanced

WordPress plugin Disqus Recent Comments Widget Advanced scored10%from 54 tests.

About plugin

  • Plugin page: disqus-recent-com...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2014
  • Latest release: Jun 4, 2014
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: rahulascents (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,858 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/disqus-recent-comments-widget-advanced/drcwa.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; tp_disqusrecentcomments has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼54.08ms] Passed 4 tests

This is a short check of server-side resources used by Disqus Recent Comments Widget Advanced
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.20 ▼39.76
Dashboard /wp-admin2.10 ▼1.207.44 ▼43.91
Posts /wp-admin/edit.php2.10 ▼1.255.57 ▼46.91
Add New Post /wp-admin/post-new.php2.10 ▼3.785.75 ▼85.72
Media Library /wp-admin/upload.php2.10 ▼1.135.13 ▼27.61

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_tp_disqusrecentcomments
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Disqus Recent Comments Widget Advanced
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.371.78 ▼0.5142.95 ▼3.82
Dashboard /wp-admin2,198 ▲185.62 ▲0.0388.14 ▼12.7639.64 ▼4.03
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0133.46 ▼5.0636.41 ▲2.96
Add New Post /wp-admin/post-new.php1,528 ▼322.91 ▼0.23636.82 ▼72.0658.42 ▼19.12
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0098.73 ▼7.4844.06 ▼3.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/disqus-recent-comments-widget-advanced/drcwa.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; tp_disqusrecentcomments has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_tp_disqusrecentcomments
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/disqus-recent-comments-widget-advanced/drcwa.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: disqus, recent comments, widgets

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

Analyzing the main PHP file in "Disqus Recent Comments Widget Advanced" version 1.5
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("disqus-recent-comments-widget-advanced.php" instead of "drcwa.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin297 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11510201
CSS23096

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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 files were detected