83% elevated-comments

Code Review | Elevated Comments

WordPress plugin Elevated Comments scored83%from 54 tests.

About plugin

  • Plugin page: elevated-comments
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Apr 15, 2016
  • Latest release: Jun 20, 2019
  • Number of updates: 25
  • Update frequency: every 47.0 days
  • Top authors: ronalfy (72%)vernal (24%)deployer (12%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,500 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.20MB] [CPU: ▲0.04ms] Passed 4 tests

A check of server-side resources used by Elevated Comments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2046.95 ▲3.89
Dashboard /wp-admin3.53 ▲0.2350.57 ▼5.03
Posts /wp-admin/edit.php3.58 ▲0.2248.76 ▼2.13
Add New Post /wp-admin/post-new.php6.13 ▲0.245,091.04 ▲4,986.16
Media Library /wp-admin/upload.php3.39 ▲0.1640.58 ▲3.43
Elevated Comments /wp-admin/options-general.php?page=elevated-comments3.3636.43

Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/elevated-comments/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
elevated-comments

Browser metrics Passed 4 tests

Elevated Comments: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3513.22 ▼1.252.16 ▼0.0342.92 ▼3.38
Dashboard /wp-admin2,225 ▲254.85 ▼0.23100.60 ▼18.8941.93 ▼2.35
Posts /wp-admin/edit.php2,107 ▲72.05 ▼0.0139.75 ▲1.2737.32 ▲0.42
Add New Post /wp-admin/post-new.php1,558 ▲2618.09 ▼5.16651.71 ▲33.5951.70 ▼0.28
Media Library /wp-admin/upload.php1,404 ▲44.25 ▲0.04103.15 ▲1.1546.31 ▲2.56
Elevated Comments /wp-admin/options-general.php?page=elevated-comments8002.0227.8228.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • elevated-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/elevated-comments/commentiq.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'CommentIQ_EventManagement_SubscriberInterface' not found in wp-content/plugins/elevated-comments/src/CommentIQ/Subscriber/AutomatedElevatedCommentSubscriber.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_by() in wp-content/plugins/elevated-comments/assets/templates/elevated-comment.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'CommentIQ_EventManagement_SubscriberInterface' not found in wp-content/plugins/elevated-comments/src/CommentIQ/Subscriber/AssetsSubscriber.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'CommentIQ_Shortcode_ShortcodeInterface' not found in wp-content/plugins/elevated-comments/src/CommentIQ/Shortcode/ElevatedCommentShortcode.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'CommentIQ_EventManagement_SubscriberInterface' not found in wp-content/plugins/elevated-comments/src/CommentIQ/Subscriber/PostmaticAssetsSubscriber.php:17
    • > PHP Notice
      Trying to get property 'user_id' of non-object in wp-content/plugins/elevated-comments/assets/templates/elevated-comment.php on line 10
    • > PHP Notice
      Undefined variable: comment in wp-content/plugins/elevated-comments/assets/templates/elevated-comment.php on line 10
    • > PHP Fatal error
      Uncaught Error: Interface 'CommentIQ_EventManagement_SubscriberInterface' not found in wp-content/plugins/elevated-comments/src/CommentIQ/Subscriber/CommentIQAPISubscriber.php:17
    • > PHP Notice
      Trying to get property 'comment_author' of non-object in wp-content/plugins/elevated-comments/assets/templates/elevated-comment.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: engagement, comments, long-tail

elevated-comments/commentiq.php 85% from 13 tests

The entry point to "Elevated Comments" version 1.1.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("elevated-comments.php" instead of "commentiq.php")

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
Good job! No executable or dangerous file extensions detected909 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP16220919758
CSS112279
Markdown138072

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity9.62
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods78
▷ Static methods1012.82%
▷ Public methods5469.23%
▷ Protected methods00.00%
▷ Private methods2430.77%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.97MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wp-org-assets/icon-128x128.png14.44KB5.79KB▼ 59.92%
wp-org-assets/screenshot-3.png344.35KB145.56KB▼ 57.73%
wp-org-assets/screenshot-1.png514.60KB206.22KB▼ 59.93%
wp-org-assets/screenshot-2.png74.63KB24.81KB▼ 66.75%
wp-org-assets/icon-256x256.png42.55KB16.04KB▼ 62.32%