Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.43ms] Passed 4 tests
Server-side resources used by Custom Login Page by SeedProd
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.33 ▲0.88 |
Dashboard /wp-admin | 3.47 ▲0.17 | 46.09 ▼2.45 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 46.45 ▼0.64 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 84.35 ▼11.52 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.79 ▲5.81 |
Import /wp-admin/admin.php?page=seed_cl_import | 3.33 | 30.42 |
Customizer /wp-admin/admin.php?page=seed_cl_customizer | 3.45 | 39.29 |
Login Page /wp-admin/options-general.php?page=seed_cl | 3.37 | 38.90 |
Server storage [IO: ▲1.60MB] [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: 97 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
seed_cl_settings_content |
widget_recent-posts |
seed_cl_customizer_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Login Page by SeedProd
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.20 ▼1.19 | 4.71 ▲2.75 | 43.69 ▲3.56 |
Dashboard /wp-admin | 2,207 ▲16 | 5.84 ▲0.92 | 94.91 ▼9.50 | 41.80 ▲0.89 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.01 | 34.37 ▼7.37 | 32.02 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.26 ▼0.16 | 682.10 ▲39.53 | 62.97 ▲9.78 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.25 ▲0.08 | 101.34 ▲0.73 | 43.99 ▼0.36 |
Import /wp-admin/admin.php?page=seed_cl_import | 765 | 2.01 | 22.12 | 21.60 |
Customizer /wp-admin/admin.php?page=seed_cl_customizer | 2,759 | 15.22 | 260.88 | 174.17 |
Login Page /wp-admin/options-general.php?page=seed_cl | 914 | 2.12 | 27.81 | 36.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- seed_cl_settings_content
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- seed_cl_customizer_settings
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=seed_cl_import
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'SEED_CL_ADMIN' does not have a method 'import_page'
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=seed_cl_customizer
- > Deprecated in wp-content/plugins/custom-login-page-wp/lib/seed_cl_lessc.inc.php+2951
Array and string offset access syntax with curly braces is deprecated
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=seed_cl_customizer
- > Warning in wp-content/plugins/custom-login-page-wp/inc/class-seed-cl.php+119
A non-numeric value encountered
- > GET request to /wp-admin/admin.php?page=seed_cl_customizer
- > Warning in wp-content/plugins/custom-login-page-wp/inc/class-seed-cl.php+114
Division by zero
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/custom-login-page-wp/admin/field-types/select.php
- > /wp-content/plugins/custom-login-page-wp/admin/field-types/custom_status.php
- > /wp-content/plugins/custom-login-page-wp/admin/field-types/radio.php
- > /wp-content/plugins/custom-login-page-wp/admin/field-types/multiselect.php
- > /wp-content/plugins/custom-login-page-wp/admin/field-types/textarea.php
- > /wp-content/plugins/custom-login-page-wp/admin/header.php
- 90× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/custom-login-page-wp/admin/field-types/import.php:7
- > PHP Warning
Use of undefined constant SEED_CL_PLUGIN_URL - assumed 'SEED_CL_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-login-page-wp/customizer/customizer.php on line 4
- > PHP Warning
Use of undefined constant SEED_CL_PLUGIN_URL - assumed 'SEED_CL_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-login-page-wp/customizer/customizer.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/custom-login-page-wp/admin/validations/required.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-login-page-wp/custom-login-page-wp.php:21
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/custom-login-page-wp/admin/field-types/radio.php on line 7
- > PHP Notice
Undefined variable: k in wp-content/plugins/custom-login-page-wp/admin/validations/number.php on line 8
- > PHP Notice
Undefined variable: id in wp-content/plugins/custom-login-page-wp/admin/field-types/password.php on line 6
- > PHP Notice
Undefined variable: id in wp-content/plugins/custom-login-page-wp/admin/field-types/text.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/custom-login-page-wp/customizer/customizer.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Please a description for screenshot #3 in custom-login-page-wp/assets to your readme.txt
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== custom-login-page-wp ===
)
custom-login-page-wp/custom-login-page-wp.php Passed 13 tests
Analyzing the main PHP file in "Custom Login Page by SeedProd" version 1.0.3
35 characters long description:
A Realtime Custom Login Page Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin7,392 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 946 | 637 | 4,010 |
JavaScript | 20 | 364 | 272 | 1,899 |
CSS | 11 | 149 | 119 | 789 |
SVG | 2 | 6 | 1 | 694 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 106.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 316.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 179 | |
▷ Static methods | 6 | 3.35% |
▷ Public methods | 51 | 28.49% |
▷ Protected methods | 128 | 71.51% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
customizer/img/bootstrap-colorpicker/alpha-horizontal.png | 3.55KB | 1.62KB | ▼ 54.44% |
admin/seedprod-logo-black.png | 2.58KB | 2.47KB | ▼ 4.13% |
customizer/img/bootstrap-colorpicker/hue.png | 2.90KB | 0.50KB | ▼ 82.71% |
customizer/img/bootstrap-colorpicker/saturation.png | 8.61KB | 5.13KB | ▼ 40.41% |
customizer/img/bootstrap-colorpicker/alpha.png | 3.19KB | 1.68KB | ▼ 47.45% |