99% genesis-widget-overlay

Code Review | Genesis Overlay Widget

WordPress plugin Genesis Overlay Widget scored 99% from 54 tests.

About plugin

  • Plugin page: genesis-widget-ov...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2.2
  • WordPress version: 5.9.2
  • First release: Feb 5, 2015
  • Latest release: Jun 20, 2019
  • Number of updates: 29
  • Update frequency: every 55.5 days
  • Top authors: frankschrijvers (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active / 6,796 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.03MB] [CPU: ▼293.87ms] Passed 4 tests

A check of server-side resources used by Genesis Overlay Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0448.68 ▼9.12
Dashboard /wp-admin3.41 ▲0.0141.00 ▲8.40
Posts /wp-admin/edit.php3.64 ▲0.0141.75 ▲5.88
Add New Post /wp-admin/post-new.php6.88 ▼0.09108.60 ▼1,170.98
Media Library /wp-admin/upload.php3.30 ▲0.0025.69 ▼1.24

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Overlay Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,181 ▼54115.54 ▼0.420.43 ▼6.0132.58 ▲30.56
Dashboard /wp-admin2,892 ▲416.14 ▼0.02120.90 ▼62.70162.66 ▼25.63
Posts /wp-admin/edit.php2,688 ▼33.23 ▲0.0166.14 ▼3.64145.99 ▼54.68
Add New Post /wp-admin/post-new.php1,773 ▲6220.78 ▼0.98490.07 ▲45.88167.38 ▼24.49
Media Library /wp-admin/upload.php1,695 ▼65.51 ▼0.02145.05 ▼2.93249.10 ▲60.39

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
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output 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 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (screenshot-1.jpg)
Please take inspiration from this readme.txt

genesis-widget-overlay/genesis-overlay-widget.php 85% from 13 tests

The principal PHP file in "Genesis Overlay Widget" v. 1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("genesis-widget-overlay.php" instead of "genesis-overlay-widget.php")

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
Good job! No executable or dangerous file extensions detected625 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS8439360
PHP36588220
JavaScript52345

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/cross.png1.14KB0.25KB▼ 77.64%
assets/img/nav.png2.89KB0.18KB▼ 93.72%