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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 40.08 ▲14.43 |
Dashboard /wp-admin | 3.03 ▼0.02 | 36.26 ▼16.19 |
Posts /wp-admin/edit.php | 3.09 ▼0.03 | 38.89 ▼16.55 |
Add New Post /wp-admin/post-new.php | 5.03 ▼0.41 | 82.30 ▼613.43 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 65.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,820 ▲207 | 16.28 ▲0.69 | 19.09 ▲9.93 | 49.78 ▼2.53 |
Dashboard /wp-admin | 2,991 ▲60 | 5.95 ▼0.15 | 153.83 ▼6.44 | 116.18 ▲2.57 |
Posts /wp-admin/edit.php | 2,769 ▲30 | 2.83 ▲0.12 | 90.90 ▲17.44 | 92.03 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,600 ▼15 | 16.42 ▼5.00 | 456.18 ▲146.14 | 135.26 ▲17.49 |
Media Library /wp-admin/upload.php | 1,835 ▲28 | 5.02 ▼0.03 | 169.89 ▲3.87 | 119.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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 367 | 127 | 2,272 |
PHP | 21 | 428 | 654 | 1,876 |
Markdown | 2 | 32 | 0 | 86 |
CSS | 2 | 0 | 8 | 12 |
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 code | 0.15 |
Average class complexity | 3.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 14 | 17.95% |
▷ Public methods | 56 | 71.79% |
▷ Protected methods | 11 | 14.10% |
▷ Private methods | 11 | 14.10% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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