Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲3.50MB] [CPU: ▼132.18ms] Passed 4 tests
Server-side resources used by Addon Library
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.60 ▲2.76 | 43.50 ▲16.11 |
Dashboard /wp-admin | 6.86 ▲3.79 | 56.35 ▲11.54 |
Posts /wp-admin/edit.php | 6.91 ▲3.80 | 55.77 ▲12.18 |
Add New Post /wp-admin/post-new.php | 9.14 ▲3.71 | 93.59 ▼568.53 |
Media Library /wp-admin/upload.php | 6.74 ▲3.74 | 48.35 ▲21.60 |
General Settings /wp-admin/admin.php?page=unitecreator_settings | 6.80 | 50.30 |
Addons for Visual Composer /wp-admin/admin.php?page=unitecreator | 6.75 | 48.73 |
Server storage [IO: ▲5.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 744 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_addonlibrary_categories |
wp_addonlibrary_addons |
New WordPress options |
---|
untecreator_state |
Browser metrics Passed 4 tests
A check of browser resources used by Addon Library
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,735 ▲134 | 15.69 ▼0.35 | 5.05 ▼3.38 | 76.87 ▲2.48 |
Dashboard /wp-admin | 3,001 ▲102 | 6.24 ▲0.10 | 120.06 ▼12.47 | 189.82 ▲15.62 |
Posts /wp-admin/edit.php | 2,811 ▲74 | 3.41 ▲0.17 | 65.70 ▲3.21 | 142.42 ▲1.23 |
Add New Post /wp-admin/post-new.php | 3,776 ▲78 | 18.07 ▼0.52 | 424.13 ▼19.05 | 199.01 ▲28.40 |
Media Library /wp-admin/upload.php | 1,821 ▲66 | 5.97 ▲0.45 | 133.41 ▼10.17 | 210.03 ▲27.98 |
General Settings /wp-admin/admin.php?page=unitecreator_settings | 2,468 | 5.29 | 86.66 | 141.98 |
Addons for Visual Composer /wp-admin/admin.php?page=unitecreator | 2,567 | 5.78 | 94.85 | 167.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_addonlibrary_addons
- wp_addonlibrary_categories
- This plugin does not fully uninstall, leaving 1 option in the database
- untecreator_state
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=unitecreator
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/addon-library/inc_php/unitecreator_addons.class.php+431
implode(): Passing glue string after array is deprecated. Swap the parameters
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 99× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/addon-library/inc_php/framework/base_output.class.php
- > /wp-content/plugins/addon-library/inc_php/unitecreator_actions.class.php
- > /wp-content/plugins/addon-library/inc_php/framework/instagram/obj_item.class.php
- > /wp-content/plugins/addon-library/provider/provider_db.class.php
- > /wp-content/plugins/addon-library/inc_php/unitecreator_helper.class.php
- > /wp-content/plugins/addon-library/provider/provider_layout.class.php
- > /wp-content/plugins/addon-library/settings/addon_fields.php
- > /wp-content/plugins/addon-library/inc_php/plugins/unitecreator_plugin_filters.class.php
- > /wp-content/plugins/addon-library/inc_php/framework/instagram/instagram.api.class.php
- > /wp-content/plugins/addon-library/inc_php/framework/font_manager.class.php
- 178× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\odeVisitor\\AbstractNodeVisitor' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/NodeVisitor/SafeAnalysisNodeVisitor.php:29
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Node/Expression/Binary/DivBinary.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/TokenParser/ApplyTokenParser.php:27
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Node/Expression/Binary/AbstractBinary.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\RuntimeLoader\\RuntimeLoaderInterface' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/RuntimeLoader/ContainerRuntimeLoader.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/addon-library/provider/functions_wordpress.class.php:43
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Node/Expression/Binary/ModBinary.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addon-library/provider/provider_main_file.php:8
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\CallExpression' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Node/Expression/FilterExpression.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Node/Expression/NameExpression.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== addon-library ===
)
addon-library/addonlibrary.php 92% from 13 tests
The primary PHP file in "Addon Library" version 1.3.76 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("addon-library.php" instead of "addonlibrary.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
Everything looks great! No dangerous files found in this plugin84,801 lines of code in 628 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 523 | 15,678 | 11,951 | 35,191 |
JavaScript | 52 | 9,854 | 6,719 | 30,919 |
CSS | 27 | 1,380 | 325 | 13,225 |
SVG | 2 | 0 | 0 | 3,356 |
HTML | 9 | 115 | 1 | 725 |
Markdown | 3 | 145 | 0 | 645 |
XML | 9 | 121 | 0 | 573 |
JSON | 3 | 0 | 0 | 167 |
PHP code Passed 2 tests
An overview of 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.32 |
Average class complexity | 9.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 217.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 26 | |
Traits | 0 | |
Classes | 465 | |
▷ Abstract classes | 14 | 3.01% |
▷ Concrete classes | 451 | 96.99% |
▷ Final classes | 4 | 0.89% |
Methods | 2,646 | |
▷ Static methods | 483 | 18.25% |
▷ Public methods | 1,771 | 66.93% |
▷ Protected methods | 355 | 13.42% |
▷ Private methods | 520 | 19.65% |
Functions | 78 | |
▷ Named functions | 72 | 92.31% |
▷ Anonymous functions | 6 | 7.69% |
Constants | 353 | |
▷ Global constants | 5 | 1.42% |
▷ Class constants | 348 | 98.58% |
▷ Public constants | 348 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
80 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon_arrow_right.png | 0.26KB | 0.37KB | 0.00% |
images/preview.png | 0.67KB | 0.60KB | ▼ 10.85% |
images/icon_script.png | 0.84KB | 1.01KB | 0.00% |
provider/assets/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
provider/assets/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |