90% pipdisqus

Code Review | pipDisqus - Lightweight Disqus Comments

WordPress plugin pipDisqus - Lightweight Disqus Comments scored90%from 54 tests.

About plugin

  • Plugin page: pipdisqus
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.3
  • WordPress version: 6.3.1
  • First release: Jun 18, 2016
  • Latest release: Aug 10, 2023
  • Number of updates: 43
  • Update frequency: every 60.7 days
  • Top authors: pipdig (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /14,322 total downloads

Benchmarks

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.01MB] [CPU: ▼2.97ms] Passed 4 tests

Analyzing server-side resources used by pipDisqus - Lightweight Disqus Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.26 ▲0.29
Dashboard /wp-admin3.32 ▲0.0249.35 ▼1.31
Posts /wp-admin/edit.php3.37 ▲0.0149.31 ▼5.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.37 ▼5.25
Media Library /wp-admin/upload.php3.24 ▲0.0140.09 ▲1.66
pipDisqus /wp-admin/options-general.php?page=pipdisqus3.2133.12

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for pipDisqus - Lightweight Disqus Comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.25 ▼1.061.81 ▲0.0743.12 ▼3.71
Dashboard /wp-admin2,233 ▲425.84 ▼0.03102.82 ▼1.3446.93 ▼1.13
Posts /wp-admin/edit.php2,119 ▲301.99 ▼0.0135.31 ▼2.8534.53 ▲0.79
Add New Post /wp-admin/post-new.php1,562 ▲4823.21 ▲5.66680.03 ▲41.2254.35 ▲5.26
Media Library /wp-admin/upload.php1,415 ▲244.22 ▲0.0698.39 ▼5.1443.85 ▼2.39
pipDisqus /wp-admin/options-general.php?page=pipdisqus8282.0425.6827.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: disqus, comments system, comments, post

pipdisqus/pipdisqus.php Passed 13 tests

The entry point to "pipDisqus - Lightweight Disqus Comments" version 1.6 is a PHP file that has certain tags in its header comment area
71 characters long description:
Remove the default WordPress comments features and replace with Disqus.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin182 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34920182

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin