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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 35.73 ▲3.83 |
Dashboard /wp-admin | 3.07 ▲0.02 | 43.34 ▼6.38 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.58 ▲1.24 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 92.61 ▼554.46 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,789 ▲193 | 16.18 ▲0.68 | 9.31 ▼0.85 | 48.64 ▲0.84 |
Dashboard /wp-admin | 2,970 ▲39 | 5.84 ▼0.13 | 134.97 ▼9.41 | 104.40 ▼10.61 |
Posts /wp-admin/edit.php | 2,736 ▼0 | 2.70 ▲0.00 | 63.82 ▼1.91 | 96.87 ▲9.01 |
Add New Post /wp-admin/post-new.php | 1,498 ▼106 | 18.84 ▲0.05 | 369.00 ▲5.54 | 105.20 ▼12.86 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▲0.02 | 139.98 ▼20.70 | 123.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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 138 | 183 | 465 |
CSS | 1 | 63 | 30 | 212 |
PHP | 4 | 96 | 105 | 195 |
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 code | 0.20 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/cross.png | 1.14KB | 0.25KB | ▼ 77.64% |
assets/img/nav.png | 2.89KB | 0.18KB | ▼ 93.72% |