Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲1.25ms] Passed 4 tests
An overview of server-side resources used by Addon Library
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 44.05 ▼1.38 |
Dashboard /wp-admin | 3.80 ▲0.50 | 58.90 ▲1.70 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 74.84 ▲20.41 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.48 | 107.49 ▲10.07 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 39.77 ▼5.39 |
Addons for Visual Composer /wp-admin/admin.php?page=unitecreator | 3.75 | 47.12 |
General Settings /wp-admin/admin.php?page=unitecreator_settings | 3.79 | 53.37 |
Server storage [IO: ▲5.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 744 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_addonlibrary_categories |
wp_addonlibrary_addons |
New WordPress options |
---|
untecreator_state |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Addon Library
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲52 | 14.47 ▼0.15 | 1.68 ▼0.13 | 46.28 ▼3.42 |
Dashboard /wp-admin | 2,243 ▲37 | 5.09 ▲0.26 | 104.74 ▲0.39 | 75.98 ▲37.57 |
Posts /wp-admin/edit.php | 2,145 ▲53 | 2.28 ▲0.25 | 39.38 ▼3.83 | 37.47 ▲0.86 |
Add New Post /wp-admin/post-new.php | 1,584 ▲65 | 24.21 ▲1.00 | 786.65 ▲94.57 | 47.93 ▼17.60 |
Media Library /wp-admin/upload.php | 1,440 ▲55 | 4.36 ▲0.17 | 111.35 ▼6.68 | 86.58 ▲33.59 |
Addons for Visual Composer /wp-admin/admin.php?page=unitecreator | 1,813 | 3.83 | 71.18 | 101.58 |
General Settings /wp-admin/admin.php?page=unitecreator_settings | 1,762 | 4.00 | 59.20 | 56.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_addonlibrary_addons
- wp_addonlibrary_categories
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- untecreator_state
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 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 fix the following items
- 99× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/addon-library/provider/functions_wordpress.class.php
- > /wp-content/plugins/addon-library/views/mediaselect.php
- > /wp-content/plugins/addon-library/views/master_view.php
- > /wp-content/plugins/addon-library/inc_php/unitecreator_output.class.php
- > /wp-content/plugins/addon-library/provider/provider_dialog_param.class.php
- > /wp-content/plugins/addon-library/inc_php/manager/unitecreator_manager_addons.class.php
- > /wp-content/plugins/addon-library/inc_php/layouts/unitecreator_layout_output.class.php
- > /wp-content/plugins/addon-library/inc_php/unitecreator_web_library.class.php
- > /wp-content/plugins/addon-library/inc_php/framework/elements_base.class.php
- > /wp-content/plugins/addon-library/provider/provider_globals.class.php
- 178× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Profiler\\Dumper\\BaseDumper' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Profiler/Dumper/HtmlDumper.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Unary\\AbstractUnary' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Node/Expression/Unary/NegUnary.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Node/ForLoopNode.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Twig_TemplateInterface' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Template.php:30
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Node/BodyNode.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\AbstractExpression' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Node/Expression/GetAttrExpression.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_Filter' not found in wp-content/plugins/addon-library/vendor/twig/twig/lib/Twig/Filter/Method.php:25
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Node/ModuleNode.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/StartsWithBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/addon-library/vendor/twig/twig/src/Node/Expression/AbstractExpression.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== addon-library ===
)
addon-library/addonlibrary.php 92% from 13 tests
The main PHP script in "Addon Library" version 1.3.76 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal 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 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected84,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
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
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.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon_settings16.png | 0.34KB | 0.41KB | 0.00% |
images/icon-preview.png | 1.33KB | 0.35KB | ▼ 73.93% |
images/icon_script.png | 0.84KB | 1.01KB | 0.00% |
css/jui/new/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |
images/timerdot.png | 0.75KB | 0.50KB | ▼ 33.81% |