94% union-addons

Code Review | Union Addons

WordPress plugin Union Addons scored 94% from 54 tests.

About plugin

  • Plugin page: union-addons
  • Plugin version: 1.0.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.4.2
  • WordPress version: 5.8.1
  • First release: Sep 11, 2020
  • Latest release: Sep 25, 2020
  • Number of updates: 19
  • Update frequency: every 0.8 days
  • Top authors: sarono84 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 191 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.11MB] [CPU: ▼157.94ms] Passed 4 tests

This is a short check of server-side resources used by Union Addons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1940.08 ▲14.43
Dashboard /wp-admin3.03 ▼0.0236.26 ▼16.19
Posts /wp-admin/edit.php3.09 ▼0.0338.89 ▼16.55
Add New Post /wp-admin/post-new.php5.03 ▼0.4182.30 ▼613.43
Media Library /wp-admin/upload.php3.04 ▲0.0465.23 ▲28.87

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Union Addons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,820 ▲20716.28 ▲0.6919.09 ▲9.9349.78 ▼2.53
Dashboard /wp-admin2,991 ▲605.95 ▼0.15153.83 ▼6.44116.18 ▲2.57
Posts /wp-admin/edit.php2,769 ▲302.83 ▲0.1290.90 ▲17.4492.03 ▼4.29
Add New Post /wp-admin/post-new.php1,600 ▼1516.42 ▼5.00456.18 ▲146.14135.26 ▲17.49
Media Library /wp-admin/upload.php1,835 ▲285.02 ▼0.03169.89 ▲3.87119.72 ▼9.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/union-addons/admin/partials/union-addons-admin-display.php
    • > /wp-content/plugins/union-addons/public/partials/union-addons-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Screenshots: Add a description for screenshot #3 in union-addons/assets to your readme.txt
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === union-addons === )
The official readme.txt is a good inspiration

union-addons/union-addons.php Passed 13 tests

Analyzing the main PHP file in "Union Addons" version 1.0.4.1
59 characters long description:
Union Addons Plugin custom skin for Elementor Page Builder.

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
No dangerous file extensions were detected4,246 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript53671272,272
PHP214286541,876
Markdown232086
CSS20812

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.94
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.63
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods78
▷ Static methods1417.95%
▷ Public methods5671.79%
▷ Protected methods1114.10%
▷ Private methods1114.10%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin