83% ungapped-widgets

Code Review | Ungapped Widgets

WordPress plugin Ungapped Widgets scored83%from 54 tests.

About plugin

  • Plugin page: ungapped-widgets
  • Plugin version: 1...
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2019
  • Latest release: Feb 25, 2022
  • Number of updates: 16
  • Update frequency: every 66.9 days
  • Top authors: oscaruribe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,311 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.17ms] Passed 4 tests

Server-side resources used by Ungapped Widgets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.26 ▼1.92
Dashboard /wp-admin3.31 ▲0.0145.81 ▼3.34
Posts /wp-admin/edit.php3.36 ▲0.0147.01 ▲2.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.24 ▼9.42
Media Library /wp-admin/upload.php3.23 ▲0.0132.13 ▼2.00

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Ungapped Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.44 ▲0.081.90 ▲0.1044.20 ▲0.31
Dashboard /wp-admin2,206 ▲155.96 ▲0.06107.03 ▲3.2636.63 ▼4.21
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0238.97 ▲4.3735.23 ▼1.04
Add New Post /wp-admin/post-new.php1,533 ▼023.29 ▲0.31670.59 ▼21.7955.50 ▼1.02
Media Library /wp-admin/upload.php1,388 ▲34.26 ▲0.0695.02 ▼5.1238.97 ▼12.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ungapped-widgets/ungapped-widgets-plugin.php:40

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: marketing automation, sms marketing, e-mail marketing, forms, surveys

ungapped-widgets/ungapped-widgets-plugin.php 62% from 13 tests

The main file in "Ungapped Widgets" v. 1... serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
  • Domain Path: Prefix the domain path with a forward slash character ("/")
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1...")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ungapped-widgets.php" instead of "ungapped-widgets-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101526

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin