78% ehive-object-comments

Code Review | eHive Object Comments

WordPress plugin eHive Object Comments scored78%from 54 tests.

About plugin

  • Plugin page: ehive-object-comm...
  • Plugin version: 2.4.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: Oct 9, 2023
  • Number of updates: 27
  • Update frequency: every 141.8 days
  • Top authors: vernonsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,279 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.00ms] Passed 4 tests

This is a short check of server-side resources used by eHive Object Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0645.41 ▲3.08
Dashboard /wp-admin3.37 ▲0.0752.45 ▼6.40
Posts /wp-admin/edit.php3.48 ▲0.1354.92 ▲8.90
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.13 ▼18.09
Media Library /wp-admin/upload.php3.29 ▲0.0639.08 ▲1.43

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

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

Browser metrics Passed 4 tests

A check of browser resources used by eHive Object Comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.831.58 ▼3.6540.49 ▼3.84
Dashboard /wp-admin2,198 ▲215.64 ▲0.0689.72 ▼14.5037.25 ▼9.73
Posts /wp-admin/edit.php2,103 ▲62.03 ▼0.0038.74 ▲2.0337.80 ▲0.50
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▼0.40659.19 ▲44.9857.88 ▼14.19
Media Library /wp-admin/upload.php1,397 ▼34.10 ▼0.0797.14 ▼5.3742.67 ▲1.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ehive-object-comments/templates/eHiveObjectComments.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ehive-object-comments/templates/eHiveObjectComments.php on line 26
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/ehive-object-comments/templates/eHiveObjectComments.php on line 26
    • > PHP Notice
      Undefined variable: css_class in wp-content/plugins/ehive-object-comments/templates/eHiveObjectComments.php on line 87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ehive-object-comments/EHiveObjectComments.php:29

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (screenshot_1.png), #2 (screenshot_2.png)
The official readme.txt might help

ehive-object-comments/EHiveObjectComments.php 85% from 13 tests

The primary PHP file in "eHive Object Comments" version 2.4.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ehive-object-comments.php" instead of "EHiveObjectComments.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)

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 plugin532 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP313150417
JavaScript120162
CSS1141453

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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 images were found in this plugin