89% widget-area-builder

Code Review | Widget Area Builder

WordPress plugin Widget Area Builder scored 89% from 54 tests.

About plugin

  • Plugin page: widget-area-builder
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 5.8.1
  • First release: May 24, 2016
  • Latest release: May 20, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: farvehandleren (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼178.04ms] Passed 4 tests

This is a short check of server-side resources used by Widget Area Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0135.21 ▲2.15
Dashboard /wp-admin2.74 ▼0.3123.32 ▼25.76
Posts /wp-admin/edit.php2.74 ▼0.3723.58 ▼24.51
Add New Post /wp-admin/post-new.php2.74 ▼2.6922.40 ▼644.79
Media Library /wp-admin/upload.php2.74 ▼0.2619.06 ▼17.08

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Widget Area Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,692 ▲9615.78 ▼0.2211.66 ▼1.7947.90 ▼5.66
Dashboard /wp-admin2,974 ▲375.94 ▼0.00139.93 ▼9.66123.16 ▲17.82
Posts /wp-admin/edit.php2,768 ▲292.85 ▲0.1467.38 ▼0.9487.09 ▼3.62
Add New Post /wp-admin/post-new.php1,693 ▼1,84518.48 ▲3.71397.12 ▼90.11110.75 ▼2.72
Media Library /wp-admin/upload.php1,765 ▼455.00 ▼0.06135.15 ▼26.22133.51 ▲11.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
5 plugin tags: widget area, shortcode, sidebar, widget, widget manager

widget-area-builder/main.php 85% from 13 tests

The main PHP script in "Widget Area Builder" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("widget-area-builder.php" instead of "main.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin124 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22611124

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.57
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) img/sticky-icon.png1.51KB0.00KB▼ 100.00%