Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼260.43ms] Passed 4 tests
A check of server-side resources used by Advanced Custom Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 29.90 ▲9.61 |
Dashboard /wp-admin | 3.16 ▲0.10 | 48.18 ▲3.33 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 44.99 ▼0.20 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 89.58 ▼1,036.83 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 34.07 ▼8.03 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Custom Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,682 ▲100 | 16.25 ▲0.74 | 7.33 ▼0.72 | 47.57 ▼1.04 |
Dashboard /wp-admin | 2,932 ▲79 | 5.89 ▲0.07 | 134.07 ▼1.88 | 106.53 ▲6.04 |
Posts /wp-admin/edit.php | 2,708 ▲5 | 2.80 ▲0.12 | 65.78 ▼7.35 | 89.60 ▼8.68 |
Add New Post /wp-admin/post-new.php | 1,853 ▼185 | 18.85 ▼0.41 | 348.59 ▼22.93 | 110.36 ▲1.83 |
Media Library /wp-admin/upload.php | 1,777 ▲5 | 4.99 ▼0.00 | 159.63 ▲11.26 | 107.17 ▼7.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: widget in wp-content/plugins/advanced-custom-widget/admin/add-advanced-custom-widget-style-form.php on line 14
- > PHP Fatal error
Uncaught Error: Call to a member function get_field_id() on null in wp-content/plugins/advanced-custom-widget/admin/add-advanced-custom-widget-style-form.php:14
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: widget advanced, widget, customization widget, custom widget, widget options
advanced-custom-widget/advanced-custom-widget.php Passed 13 tests
The principal PHP file in "Advanced Custom Widget" v. 1.0.1 is loaded by WordPress automatically on each request
36 characters long description:
Aggregate and customize all widgets.
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
Success! There were no dangerous files found in this plugin909 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 177 | 443 | 591 |
CSS | 1 | 29 | 3 | 138 |
PO File | 1 | 45 | 50 | 104 |
JavaScript | 3 | 43 | 51 | 76 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin