Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼13.83ms] Passed 4 tests
A check of server-side resources used by Custom Login Page Templates - Change Logo, Background and CSS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 43.61 ▲3.54 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.86 ▼20.84 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.00 ▼14.36 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.85 ▼14.27 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.95 ▼5.84 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Login Page Templates - Change Logo, Background and CSS
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲124 | 13.22 ▼1.08 | 2.06 ▲0.42 | 43.25 ▼5.82 |
Dashboard /wp-admin | 2,223 ▲37 | 5.87 ▲0.96 | 103.04 ▼10.29 | 41.73 ▼2.33 |
Posts /wp-admin/edit.php | 2,103 ▲11 | 2.03 ▲0.01 | 37.62 ▼3.03 | 32.03 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.19 ▼0.01 | 622.67 ▼30.31 | 49.67 ▼5.42 |
Media Library /wp-admin/upload.php | 1,402 ▲20 | 4.19 ▼0.02 | 93.52 ▼18.28 | 42.10 ▼4.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-login-page-templates/includes/customizer.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Panel' not found in wp-content/plugins/custom-login-page-templates/includes/clpt_customizer_panel.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-login-page-templates/custom-login-templates.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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
Attributes that need to be fixed:
- Screenshots: A description for screenshot #6 is required in custom-login-page-templates/assets to your readme.txt
custom-login-page-templates/custom-login-templates.php 85% from 13 tests
"Custom Login Page Templates - Change Logo, Background and CSS" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 166 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-login-page-templates.php" instead of "custom-login-templates.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected610 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 66 | 9 | 313 |
PHP | 3 | 53 | 75 | 290 |
JavaScript | 1 | 5 | 6 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 1 | 100.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.29MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/businesscard/user.png | 0.36KB | 0.42KB | 0.00% |
templates/bootstrap/bootstrap_bg.png | 280.17KB | 310.66KB | 0.00% |
templates/light/wp_grey.png | 4.90KB | 3.42KB | ▼ 30.27% |
templates/bootstrap/bootstrap_logo.png | 2.95KB | 1.43KB | ▼ 51.47% |
templates/businesscard/wp_grey.png | 4.90KB | 3.42KB | ▼ 30.27% |