78% ehive-objects-tag-cloud

Code Review | eHive Objects Tag Cloud

WordPress plugin eHive Objects Tag Cloud scored78%from 54 tests.

About plugin

  • Plugin page: ehive-objects-tag...
  • Plugin version: 2.4.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: May 25, 2023
  • Number of updates: 26
  • Update frequency: every 142.4 days
  • Top authors: vernonsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,789 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.94ms] Passed 4 tests

A check of server-side resources used by eHive Objects Tag Cloud
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.27 ▲2.36
Dashboard /wp-admin3.31 ▲0.0144.07 ▼4.21
Posts /wp-admin/edit.php3.36 ▲0.0043.78 ▼1.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.50 ▼0.11
Media Library /wp-admin/upload.php3.23 ▲0.0030.72 ▼6.18

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for eHive Objects Tag Cloud
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.164.30 ▲2.5740.26 ▼1.48
Dashboard /wp-admin2,203 ▲146.06 ▲1.1697.21 ▼16.4141.22 ▼2.79
Posts /wp-admin/edit.php2,086 ▼01.98 ▼0.0239.52 ▲3.7835.34 ▲3.41
Add New Post /wp-admin/post-new.php1,514 ▼617.73 ▼5.44658.76 ▼16.6257.93 ▲4.49
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.0495.10 ▼15.2240.57 ▼8.19

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ehive-objects-tag-cloud/templates/eHiveObjectsTagCloud.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ehive-objects-tag-cloud/EHiveObjectsTagCloud.php:28
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/ehive-objects-tag-cloud/templates/eHiveObjectsTagCloud.php on line 26
    • > PHP Notice
      Undefined variable: css_class in wp-content/plugins/ehive-objects-tag-cloud/templates/eHiveObjectsTagCloud.php on line 19
    • > PHP Notice
      Trying to get property 'tagCloudTags' of non-object in wp-content/plugins/ehive-objects-tag-cloud/templates/eHiveObjectsTagCloud.php on line 26
    • > PHP Notice
      Undefined variable: tagCloud in wp-content/plugins/ehive-objects-tag-cloud/templates/eHiveObjectsTagCloud.php on line 26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (screenshot_1.png), #2 (screenshot_2.png)
You can look at the official readme.txt

ehive-objects-tag-cloud/EHiveObjectsTagCloud.php 85% from 13 tests

The main PHP file in "eHive Objects Tag Cloud" ver. 2.4.0 adds more information about the plugin and also serves as the entry point for this plugin
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-objects-tag-cloud.php" instead of "EHiveObjectsTagCloud.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 274 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected245 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26576215
CSS131430

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected