10% comments-with-hypercommentscom

Code Review | HyperComments

WordPress plugin HyperComments scored10%from 54 tests.

About plugin

  • Plugin page: comments-with-hyp...
  • Plugin version: 0.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 0.9.6-0.9.6
  • WordPress version: 6.3.1
  • First release: Feb 22, 2012
  • Latest release: Mar 23, 2012
  • Number of updates: 35
  • Update frequency: every 0.9 days
  • Top authors: siteheart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,009 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/comments-with-hypercommentscom/comments-with-hypercommentscom.php+13
    Constant WP_CONTENT_URL already defined

Server metrics [RAM: ▼1.88MB] [CPU: ▼49.57ms] Passed 4 tests

Server-side resources used by HyperComments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.354.86 ▼34.80
Dashboard /wp-admin2.13 ▼1.176.86 ▼40.74
Posts /wp-admin/edit.php2.13 ▼1.226.76 ▼42.21
Add New Post /wp-admin/post-new.php2.13 ▼3.766.72 ▼80.51
Media Library /wp-admin/upload.php2.13 ▼1.106.01 ▼27.98
HyperComments /wp-admin/edit-comments.php?page=hypercomments2.186.51
All Comments /wp-admin/edit-comments.php2.186.90

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
hc_selector
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by HyperComments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.29 ▼1.271.65 ▼0.3641.05 ▼1.93
Dashboard /wp-admin2,231 ▲394.85 ▼0.08110.83 ▲3.7238.73 ▼4.80
Posts /wp-admin/edit.php2,113 ▲241.98 ▼0.0139.26 ▲2.6836.18 ▲1.33
Add New Post /wp-admin/post-new.php1,556 ▲3723.20 ▲0.19592.21 ▼42.4053.25 ▲2.30
Media Library /wp-admin/upload.php1,416 ▲254.26 ▲0.0898.58 ▼1.5743.93 ▼5.30
HyperComments /wp-admin/edit-comments.php?page=hypercomments8662.2330.5228.62
All Comments /wp-admin/edit-comments.php1,8172.3137.3833.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/comments-with-hypercommentscom/comments-with-hypercommentscom.php+13
    Constant WP_CONTENT_URL already defined
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit-comments.php
    • > Notice in wp-content/plugins/comments-with-hypercommentscom/comments-with-hypercommentscom.php+13
    Constant WP_CONTENT_URL already defined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit-comments.php
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
    • > GET request to /wp-admin/edit-comments.php?page=hypercomments
    • > Notice in wp-content/plugins/comments-with-hypercommentscom/comments-with-hypercommentscom.php+214
    Undefined index: hc_form_counter_sub

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/comments-with-hypercommentscom/comments-with-hypercommentscom.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/comments-with-hypercommentscom/manage.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function hc_show_script() in wp-content/plugins/comments-with-hypercommentscom/comments.php:2

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Reader selects a text fragment and click on the "Comment" button), #2 (Write a comment), #3 (The fragment will be highlighted and then becomes clickable and more attractive. Hypercomments will attract attention of new readers and commentators.)
You can look at the official readme.txt

comments-with-hypercommentscom/comments-with-hypercommentscom.php Passed 13 tests

The main PHP file in "HyperComments" ver. 0.9.6 adds more information about the plugin and also serves as the entry point for this plugin
121 characters long description:
HyperComments - New dimension of comments. Hypercomments technology allows commenting a specific word or a piece of text.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin719 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP459126591
CSS12070
PO File1335058

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png199.94KB68.74KB▼ 65.62%
screenshot-1.png9.41KB5.64KB▼ 40.07%
screenshot-2.png60.22KB21.79KB▼ 63.82%