83% ehive-object-tags-widget

Code Review | eHive Object Tags widget

WordPress plugin eHive Object Tags widget scored83%from 54 tests.

About plugin

  • Plugin page: ehive-object-tags...
  • Plugin version: 2.4.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-6.0
  • WordPress version: 6.3.1
  • First release: Apr 17, 2013
  • Latest release: Jun 1, 2022
  • Number of updates: 25
  • Update frequency: every 133.2 days
  • Top authors: vernonsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,447 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by eHive Object Tags widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0647.83 ▲9.41
Dashboard /wp-admin3.36 ▲0.0646.80 ▼3.86
Posts /wp-admin/edit.php3.42 ▲0.0647.37 ▼5.84
Add New Post /wp-admin/post-new.php5.95 ▲0.0682.91 ▼9.44
Media Library /wp-admin/upload.php3.29 ▲0.0635.17 ▲0.33

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_ehiveobjecttags_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for eHive Object Tags widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.11 ▼0.551.74 ▲0.1946.95 ▲0.50
Dashboard /wp-admin2,195 ▲215.61 ▼0.0686.61 ▼10.4442.63 ▼0.02
Posts /wp-admin/edit.php2,097 ▼32.00 ▼0.0233.90 ▼3.7332.41 ▲0.46
Add New Post /wp-admin/post-new.php1,535 ▲618.29 ▼4.44614.23 ▼47.9369.83 ▲11.24
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0297.65 ▲1.6641.64 ▼3.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_ehiveobjecttags_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ehive-object-tags-widget/EHiveObjectTags_Widget.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (screenshot_1.png), #2 (screenshot_2.png)
You can look at the official readme.txt

ehive-object-tags-widget/EHiveObjectTags_Widget.php 85% from 13 tests

This is the main PHP file of "eHive Object Tags widget" version 2.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ehive-object-tags-widget.php" instead of "EHiveObjectTags_Widget.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 217 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin255 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17423240
CSS161415

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity7.33
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin