Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼148.93ms] Passed 4 tests
This is a short check of server-side resources used by Empty Widget Areas
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.13 | 33.65 ▲13.80 |
Dashboard /wp-admin | 3.07 ▲0.01 | 44.62 ▼0.60 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 42.48 ▼1.18 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 82.52 ▼571.36 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.17 ▼22.57 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Empty Widget Areas
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.05 ▲0.12 | 8.63 ▼2.34 | 45.47 ▼4.36 |
Dashboard /wp-admin | 2,967 ▲34 | 5.87 ▼0.06 | 134.36 ▼19.18 | 110.28 ▼1.98 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 63.22 ▼5.05 | 89.07 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,872 ▲189 | 19.20 ▲0.39 | 380.01 ▼8.21 | 105.11 ▼6.63 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▲0.02 | 147.44 ▼18.41 | 122.68 ▼8.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/empty-widget-area/empty-widget-area.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 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: delete, truncate, empty, cleanup, widgets
empty-widget-area/empty-widget-area.php 77% from 13 tests
The main PHP script in "Empty Widget Areas" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path must begin with a forward slash character ("/languages/")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected53 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 35 | 25 | 53 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin