72% deeper-comments

Code Review | Deeper Comments

WordPress plugin Deeper Comments scored 72% from 54 tests.

About plugin

  • Plugin page: deeper-comments
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.9
  • WordPress version: 5.9.2
  • First release: Sep 18, 2017
  • Latest release: Jan 31, 2022
  • Number of updates: 56
  • Update frequency: every 28.6 days
  • Top authors: webnus (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

2,000+ active / 27,639 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.65MB] [CPU: ▼292.91ms] Passed 4 tests

Server-side resources used by Deeper Comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2460.72 ▲10.56
Dashboard /wp-admin4.21 ▲0.8144.98 ▲10.70
Posts /wp-admin/edit.php4.44 ▲0.8048.92 ▲11.33
Add New Post /wp-admin/post-new.php7.71 ▲0.7499.26 ▼1,199.30
Media Library /wp-admin/upload.php4.14 ▲0.8431.74 ▲6.42
Inappropriate C.M /wp-admin/admin.php?page=deeper_inapp_cm4.1738.59
Settings /wp-admin/admin.php?page=deeper_settings4.2541.92
Analysis /wp-admin/admin.php?page=deeper_analysis4.2239.16

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 314 new files
Database: no new tables, 16 new options
New WordPress options
Google
Social_Share
Comment_Form
Recaptcha
Inappropriate_Comments
styling
Avatar
Voting
social_login
disscustion_settings
...

Browser metrics Passed 4 tests

An overview of browser requirements for Deeper Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,250 ▲50818.11 ▲2.3311.83 ▲6.184.35 ▲2.04
Dashboard /wp-admin3,194 ▲3338.43 ▲2.33151.39 ▲11.00176.47 ▲14.69
Posts /wp-admin/edit.php3,022 ▲3285.06 ▲1.8283.58 ▲21.03151.55 ▲10.83
Add New Post /wp-admin/post-new.php1,855 ▲8222.51 ▲0.46383.54 ▼45.22202.50 ▲44.38
Media Library /wp-admin/upload.php1,808 ▲1076.05 ▲0.55119.96 ▼19.37196.70 ▲7.11
Inappropriate C.M /wp-admin/admin.php?page=deeper_inapp_cm1,5584.9776.51119.56
Settings /wp-admin/admin.php?page=deeper_settings17,18917.19535.83350.46
Analysis /wp-admin/admin.php?page=deeper_analysis1,4906.47139.38142.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 16 options in the database
    • Comment_Form
    • Recaptcha
    • social_login
    • Load_More
    • Comments
    • disscustion_settings
    • Social_Share
    • Login_Register
    • styling
    • Voting
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/deeper-comments/views/admin/errors/admin-notice.php
    • > /wp-content/plugins/deeper-comments/views/tpl/social-login.php
  • 150× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: h in wp-content/plugins/deeper-comments/lib/app/image.php on line 40
    • > PHP Fatal error
      Uncaught Error: Interface 'Hybridauth\\HttpClient\\HttpClientInterface' not found in wp-content/plugins/deeper-comments/lib/social-login/includes/hybrid/HttpClient/Curl.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OpenID' not found in wp-content/plugins/deeper-comments/lib/social-login/includes/hybrid/Provider/StackExchangeOpenID.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Depc_Controller' not found in wp-content/plugins/deeper-comments/controllers/depc-controller-public.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\AbstractAdapter' not found in wp-content/plugins/deeper-comments/lib/social-login/includes/hybrid/Adapter/OAuth2.php:24
    • > PHP Warning
      imagettfbbox(): Could not find/open font in wp-content/plugins/deeper-comments/lib/app/image.php on line 55
    • > PHP Warning
      imagettftext() expects parameter 1 to be resource, bool given in wp-content/plugins/deeper-comments/lib/app/image.php on line 45
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/deeper-comments/lib/social-login/includes/hybrid/Provider/Yahoo.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Depc_Controller_Public_Comment' not found in wp-content/plugins/deeper-comments/controllers/temp/depc-controller-public-comment-vote.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Depc_Model_Public_Comment' not found in wp-content/plugins/deeper-comments/models/module/depc-model-module-google.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=deeper_analysis
    • > Network (severe)
    wp-content/plugins/deeper-comments/lib/social-login/bws_menu/css/jquery-ui-styles/1.13.1/jquery-ui.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #17 (Back-end admin ( Load More ).) image not found
You can look at the official readme.txt

deeper-comments/deeper-comments.php 85% from 13 tests

"Deeper Comments" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 357 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin48,627 lines of code in 223 files:
LanguageFilesBlank linesComment linesLines of code
PHP1643,9566,85717,270
CSS181,76639115,903
PO File124,4176,4779,834
JavaScript168056495,189
SVG934412
Markdown310018
HTML1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity11.12
▷ Minimum class complexity1.00
▷ Maximum class complexity224.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces11
Interfaces6
Traits1
Classes134
▷ Abstract classes107.46%
▷ Concrete classes12492.54%
▷ Final classes54.03%
Methods702
▷ Static methods8111.54%
▷ Public methods51072.65%
▷ Protected methods15121.51%
▷ Private methods415.84%
Functions99
▷ Named functions9090.91%
▷ Anonymous functions99.09%
Constants19
▷ Global constants210.53%
▷ Class constants1789.47%
▷ Public constants17100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
59 PNG files occupy 1.68MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/social-login/bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
lib/social-login/bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_flat_0_aaaaaa_40x100.png0.26KB0.11KB▼ 56.06%
lib/social-login/bws_menu/css/jquery-ui-styles/1.9.2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
lib/social-login/bws_menu/css/jquery-ui-styles/1.12.1/images/ui-icons_cd0a0a_256x240.png4.57KB4.18KB▼ 8.43%
lib/social-login/images/linkedin.png4.30KB2.34KB▼ 45.52%