99% gabfire-widget-pack

Code Review | Gabfire Widget Pack

WordPress plugin Gabfire Widget Pack scored 99% from 54 tests.

About plugin

  • Plugin page: gabfire-widget-pack
  • Plugin version: 1.4.14
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.6.2
  • WordPress version: 5.8.1
  • First release: May 1, 2013
  • Latest release: Feb 16, 2021
  • Number of updates: 101
  • Update frequency: every 28.2 days
  • Top authors: gabfire (98.02%)kjbenk (2.97%)

Code review

54 tests

User reviews

13 reviews

Install metrics

2,000+ active / 86,938 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼142.73ms] Passed 4 tests

A check of server-side resources used by Gabfire Widget Pack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1938.43 ▲11.44
Dashboard /wp-admin3.13 ▲0.0848.75 ▲1.61
Posts /wp-admin/edit.php3.18 ▲0.0747.21 ▼0.61
Add New Post /wp-admin/post-new.php5.49 ▲0.0699.33 ▼564.76
Media Library /wp-admin/upload.php3.07 ▲0.0636.44 ▼7.16
Gabfire Widget Pack /wp-admin/themes.php?page=gab-widget-pack-options3.0432.85

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 131 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Gabfire Widget Pack
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,751 ▲15515.91 ▲0.328.90 ▼0.5245.80 ▼0.72
Dashboard /wp-admin3,040 ▲1116.23 ▲0.27149.62 ▼7.87106.68 ▼8.48
Posts /wp-admin/edit.php2,809 ▲733.03 ▲0.3590.90 ▲19.6898.52 ▲5.53
Add New Post /wp-admin/post-new.php1,706 ▲2318.50 ▼0.23383.48 ▲13.67116.76 ▼7.09
Media Library /wp-admin/upload.php1,880 ▲735.13 ▲0.10164.58 ▲8.81136.88 ▼0.67
Gabfire Widget Pack /wp-admin/themes.php?page=gab-widget-pack-options1,8842.5566.36101.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

gabfire-widget-pack/gabfire-widgets.php 92% from 13 tests

This is the main PHP file of "Gabfire Widget Pack" version 1.4.14, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gabfire-widget-pack.php" instead of "gabfire-widgets.php")

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
Good job! No executable or dangerous file extensions detected5,995 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP226793653,587
PO File36471,6191,355
CSS414238981
JavaScript321172

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity25.42
▷ Minimum class complexity6.00
▷ Maximum class complexity61.00
Average method complexity6.03
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods93
▷ Static methods22.15%
▷ Public methods8187.10%
▷ Protected methods00.00%
▷ Private methods1212.90%
Functions39
▷ Named functions39100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
83 PNG files occupy 0.17MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/social/vimeo.png2.78KB2.10KB▼ 24.55%
images/24x/contact.png1.00KB0.88KB▼ 11.44%
images/submit-newsletter.png5.77KB3.27KB▼ 43.30%
images/40x/download.png2.79KB2.05KB▼ 26.71%
images/social/linkedin.png2.28KB1.86KB▼ 18.64%