99% wpstudio-login-modal-box

Code Review | Genesis login modal box

WordPress plugin Genesis login modal box scored 99% from 54 tests.

About plugin

  • Plugin page: wpstudio-login-mo...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.5.1
  • WordPress version: 5.8.1
  • First release: Feb 9, 2016
  • Latest release: Nov 2, 2020
  • Number of updates: 24
  • Update frequency: every 72.0 days
  • Top authors: frankschrijvers (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

900+ active / 13,202 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Genesis login modal box
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0235.73 ▲3.83
Dashboard /wp-admin3.07 ▲0.0243.34 ▼6.38
Posts /wp-admin/edit.php3.12 ▲0.0144.58 ▲1.24
Add New Post /wp-admin/post-new.php5.43 ▲0.0092.61 ▼554.46
Media Library /wp-admin/upload.php3.01 ▲0.0132.91 ▼1.15

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Genesis login modal box: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,789 ▲19316.18 ▲0.689.31 ▼0.8548.64 ▲0.84
Dashboard /wp-admin2,970 ▲395.84 ▼0.13134.97 ▼9.41104.40 ▼10.61
Posts /wp-admin/edit.php2,736 ▼02.70 ▲0.0063.82 ▼1.9196.87 ▲9.01
Add New Post /wp-admin/post-new.php1,498 ▼10618.84 ▲0.05369.00 ▲5.54105.20 ▼12.86
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.02139.98 ▼20.70123.75 ▲1.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot Frontpage), #2 (Screenshot Admin panel)
You can take inspiration from this readme.txt

wpstudio-login-modal-box/genesis-login-modal-box.php 92% from 13 tests

"Genesis login modal box" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpstudio-login-modal-box.php" instead of "genesis-login-modal-box.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin872 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2138183465
CSS16330212
PHP496105195

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%