Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.75MB] [CPU: ▼301.87ms] Passed 4 tests
Server-side resources used by IntelliWidget Elements
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲0.81 | 67.52 ▲7.34 |
Dashboard /wp-admin | 4.14 ▲0.72 | 42.75 ▼13.00 |
Posts /wp-admin/edit.php | 4.39 ▲0.75 | 57.93 ▲18.67 |
Add New Post /wp-admin/post-new.php | 7.88 ▲0.91 | 107.73 ▼1,208.48 |
Media Library /wp-admin/upload.php | 4.02 ▲0.72 | 33.22 ▲6.68 |
Conditional Profiles /wp-admin/admin.php?page=iwelements-condsets | 4.46 | 38.79 |
Modules /wp-admin/admin.php?page=iwelements | 4.02 | 33.61 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 110 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_intelliwidget |
Browser metrics Passed 4 tests
A check of browser resources used by IntelliWidget Elements
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,872 ▲128 | 17.74 ▲2.12 | 6.20 ▼1.10 | 2.21 ▲0.17 |
Dashboard /wp-admin | 2,999 ▲138 | 8.01 ▲1.78 | 141.32 ▲8.83 | 156.70 ▼9.23 |
Posts /wp-admin/edit.php | 2,950 ▲259 | 5.43 ▲2.20 | 80.29 ▲16.66 | 141.30 ▼1.47 |
Add New Post /wp-admin/post-new.php | 2,043 ▲382 | 22.91 ▲5.77 | 365.50 ▼54.74 | 176.70 ▲21.06 |
Media Library /wp-admin/upload.php | 1,717 ▲19 | 5.94 ▲0.43 | 115.16 ▼27.38 | 190.74 ▲5.62 |
Conditional Profiles /wp-admin/admin.php?page=iwelements-condsets | 1,633 | 5.12 | 89.17 | 197.17 |
Modules /wp-admin/admin.php?page=iwelements | 1,359 | 4.47 | 71.49 | 145.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_intelliwidget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/intelliwidget-elements/modules/main/forms/error.php
- > /wp-content/plugins/intelliwidget-elements/modules/main/forms/profiles.php
- > /wp-content/plugins/intelliwidget-elements/modules/main/forms/complete.php
- > /wp-content/plugins/intelliwidget-elements/modules/main/forms/addl-settings.php
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: term in wp-content/plugins/intelliwidget-elements/modules/condset/forms/term-metabox.php on line 1
- > PHP Notice
Undefined variable: form in wp-content/plugins/intelliwidget-elements/modules/main/forms/profiles.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/intelliwidget-elements/modules/condset/forms/conditions.php:3
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/intelliwidget-elements/modules/main/forms/profiles.php on line 6
- > PHP Notice
Undefined variable: id in wp-content/plugins/intelliwidget-elements/modules/condset/forms/condsettab.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/intelliwidget-elements/modules/condset/forms/condset-metabox.php:2
- > PHP Notice
Undefined variable: condset_id in wp-content/plugins/intelliwidget-elements/modules/condset/forms/condset-metabox.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/intelliwidget-elements/modules/condset/forms/condset.php:1
- > PHP Notice
Undefined variable: active in wp-content/plugins/intelliwidget-elements/modules/condset/forms/condsettab.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/intelliwidget-elements/modules/main/forms/upgrade.php:17
- > PHP Notice
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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: post type, intelliwidget
intelliwidget-elements/intelliwidget.php 77% from 13 tests
"IntelliWidget Elements" version 2.2.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("intelliwidget-elements.php" instead of "intelliwidget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected31,300 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 1,621 | 311 | 14,668 |
JavaScript | 13 | 1,737 | 2,891 | 8,369 |
PHP | 76 | 1,261 | 2,067 | 8,204 |
SVG | 1 | 0 | 0 | 59 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 41.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 327.00 |
Average method complexity | 4.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 2 | 5.56% |
▷ Concrete classes | 34 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 373 | |
▷ Static methods | 90 | 24.13% |
▷ Public methods | 349 | 93.57% |
▷ Protected methods | 20 | 5.36% |
▷ Private methods | 4 | 1.07% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/bg_direction_nav.png | 1.82KB | 0.79KB | ▼ 56.38% |
css/images/switch.png | 0.38KB | 0.21KB | ▼ 45.64% |