93% empty-widget-area

Code Review | Empty Widget Areas

WordPress plugin Empty Widget Areas scored 93% from 54 tests.

About plugin

  • Plugin page: empty-widget-area
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9.1
  • WordPress version: 5.8.1
  • First release: Jul 22, 2014
  • Latest release: Jul 22, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: tormorten (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 896 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1333.65 ▲13.80
Dashboard /wp-admin3.07 ▲0.0144.62 ▼0.60
Posts /wp-admin/edit.php3.12 ▲0.0142.48 ▼1.18
Add New Post /wp-admin/post-new.php5.43 ▼0.0182.52 ▼571.36
Media Library /wp-admin/upload.php3.01 ▲0.0131.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.05 ▲0.128.63 ▼2.3445.47 ▼4.36
Dashboard /wp-admin2,967 ▲345.87 ▼0.06134.36 ▼19.18110.28 ▼1.98
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0163.22 ▼5.0589.07 ▼2.90
Add New Post /wp-admin/post-new.php1,872 ▲18919.20 ▲0.39380.01 ▼8.21105.11 ▼6.63
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.02147.44 ▼18.41122.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

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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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