83% ehive-objects-tag-cloud-widget

Code Review | eHive Objects Tag Cloud widget

WordPress plugin eHive Objects Tag Cloud widget scored83%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.0
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: Jun 1, 2022
  • Number of updates: 23
  • Update frequency: every 145.4 days
  • Top authors: vernonsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,311 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by eHive Objects Tag Cloud widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.15 ▼6.36
Dashboard /wp-admin3.34 ▲0.0443.61 ▼7.93
Posts /wp-admin/edit.php3.39 ▲0.0449.86 ▲1.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.12 ▼3.37
Media Library /wp-admin/upload.php3.26 ▲0.0436.01 ▲0.31

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_ehiveobjectstagcloud_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by eHive Objects Tag Cloud widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.22 ▼1.211.81 ▼0.1439.85 ▼14.04
Dashboard /wp-admin2,206 ▲204.85 ▼1.06105.67 ▼13.4238.60 ▼4.85
Posts /wp-admin/edit.php2,089 ▲32.03 ▲0.0242.08 ▲5.3936.26 ▲1.93
Add New Post /wp-admin/post-new.php1,542 ▼018.16 ▼0.07614.67 ▼47.3058.68 ▲2.65
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.1293.37 ▼5.2442.29 ▼3.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_ehiveobjectstagcloud_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ehive-objects-tag-cloud-widget/EHiveObjectsTagCloud_Widget.php:28

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (screenshot_1.png), #2 (screenshot_2.png)
You can look at the official readme.txt

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

"eHive Objects Tag Cloud widget" version 2.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("ehive-objects-tag-cloud-widget.php" instead of "EHiveObjectsTagCloud_Widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected175 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12824145
CSS131430

PHP code Passed 2 tests

This is a short overview 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.26
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin