Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼10.65ms] Passed 4 tests
Server-side resources used by Custom Login Page Customizer by Colorlib
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 40.12 ▲1.10 |
Dashboard /wp-admin | 3.61 ▲0.26 | 45.27 ▼19.19 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 50.05 ▲2.52 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 92.82 ▼25.54 |
Media Library /wp-admin/upload.php | 3.47 ▲0.23 | 35.17 ▲1.02 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
colorlib-login-customizer_version |
widget_theysaidso_widget |
widget_recent-posts |
clc-options |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Login Page Customizer by Colorlib
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.30 ▼1.08 | 1.83 ▼0.10 | 43.81 ▼0.64 |
Dashboard /wp-admin | 2,219 ▲34 | 5.81 ▲0.03 | 95.86 ▼10.19 | 40.63 ▼2.81 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.02 ▲0.00 | 41.01 ▲3.72 | 36.66 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.22 ▼0.02 | 602.48 ▼87.38 | 55.16 ▼7.51 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.19 ▼0.02 | 96.92 ▼3.27 | 41.44 ▼4.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- clc-options
- colorlib-login-customizer_version
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Image_Control' not found in wp-content/plugins/colorlib-login-customizer/includes/lib/controls/class-colorlib-login-customizer-background-control.php:3
- > PHP Fatal error
Uncaught Error: Class 'Colorlib_Login_Customizer' not found in wp-content/plugins/colorlib-login-customizer/includes/login-template.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/colorlib-login-customizer/includes/class-colorlib-login-customizer-backwards-compatibility.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in colorlib-login-customizer/assets to your readme.txt
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
colorlib-login-customizer/colorlib-login-customizer.php 92% from 13 tests
Analyzing the main PHP file in "Custom Login Page Customizer by Colorlib" version 1.3.1
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 247 characters long)
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
Everything looks great! No dangerous files found in this plugin5,244 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 490 | 960 | 2,696 |
JavaScript | 4 | 271 | 206 | 1,457 |
CSS | 3 | 85 | 12 | 742 |
PO File | 1 | 149 | 166 | 349 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 4 | 3.48% |
▷ Public methods | 103 | 89.57% |
▷ Protected methods | 1 | 0.87% |
▷ Private methods | 11 | 9.57% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.14MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/form-vertical-align-top.png | 1.08KB | 0.11KB | ▼ 89.77% |
assets/img/one-column.png | 17.76KB | 0.10KB | ▼ 99.41% |
assets/img/two-column.png | 17.76KB | 0.10KB | ▼ 99.41% |
assets/img/form-horizontal-align-right.png | 1.03KB | 0.11KB | ▼ 89.15% |
assets/img/form-vertical-align-bottom.png | 1.08KB | 0.11KB | ▼ 89.75% |