99% genesis-slide-in-widget

Code Review | Genesis Slide-in Widget

WordPress plugin Genesis Slide-in Widget scored 99% from 54 tests.

About plugin

  • Plugin page: genesis-slide-in-...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2.2
  • WordPress version: 5.9.2
  • First release: Feb 12, 2015
  • Latest release: Jun 20, 2019
  • Number of updates: 20
  • Update frequency: every 79.5 days
  • Top authors: frankschrijvers (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active / 7,859 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Genesis Slide-in Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.15 ▲1.07
Dashboard /wp-admin3.42 ▲0.0133.80 ▲1.40
Posts /wp-admin/edit.php3.65 ▲0.0135.57 ▼1.85
Add New Post /wp-admin/post-new.php6.89 ▼0.0899.06 ▼1,198.55
Media Library /wp-admin/upload.php3.30 ▲0.0125.09 ▼2.86

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Slide-in Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.23 ▲0.535.60 ▼0.862.39 ▼0.34
Dashboard /wp-admin2,895 ▲416.15 ▼0.03119.34 ▼14.55158.18 ▼2.62
Posts /wp-admin/edit.php2,691 ▼33.24 ▼0.0163.85 ▼0.86141.95 ▼2.65
Add New Post /wp-admin/post-new.php1,711 ▼4120.86 ▼1.17429.86 ▼16.54156.15 ▼4.18
Media Library /wp-admin/upload.php1,698 ▼05.49 ▼0.10153.19 ▼17.45196.25 ▼37.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot Frontpage), #2 (Screenshot Admin panel)
You can look at the official readme.txt

genesis-slide-in-widget/genesis-slide-in-widget.php 92% from 13 tests

The principal PHP file in "Genesis Slide-in Widget" v. 1.5 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected580 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS22113371
PHP35285195
JavaScript10214

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%