72% creative-wp-login-page

Code Review | Creative WP Login Page

WordPress plugin Creative WP Login Page scored72%from 54 tests.

About plugin

  • Plugin page: creative-wp-login...
  • Plugin version: 7.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 1, 2021
  • Latest release: Jun 20, 2023
  • Number of updates: 37
  • Update frequency: every 19.7 days
  • Top authors: masoudnkh (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /6,844 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼6.00ms] Passed 4 tests

An overview of server-side resources used by Creative WP Login Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2335.69 ▼6.35
Dashboard /wp-admin3.65 ▲0.3551.83 ▲2.57
Posts /wp-admin/edit.php3.71 ▲0.3549.92 ▲1.69
Add New Post /wp-admin/post-new.php6.15 ▲0.2790.73 ▼18.94
Media Library /wp-admin/upload.php3.49 ▲0.2737.24 ▼0.39
CWLP Settings /wp-admin/admin.php?page=cwlp-settings3.4630.85
General /wp-admin/admin.php?page=cwlp-settings&tab=general_tools3.4632.06
Effect manager /wp-admin/admin.php?page=cwlp-settings&tab=cwlp_login_effect3.4932.65
Login Security /wp-admin/admin.php?page=cwlp-settings&tab=login_security_cwlp3.4633.40
Label Changer /wp-admin/admin.php?page=cwlp-settings&tab=cwlp_login_label3.4940.84
Social /wp-admin/admin.php?page=cwlp-settings&tab=social_widget3.4938.42

Server storage [IO: ▲1.53MB] [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: 62 new files
Database: no new tables, 22 new options
New WordPress options
db_upgraded
cwlp-custom-ibu
cwlp-custom-ibc
cwlploginposition
cwlp-fontfamily
cwlp-pinterest
cwlp-facebook
cwlp-lswitch
cwlp-login-urls
cwlp-instagram
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Creative WP Login Page
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,986 ▲25114.65 ▲0.261.63 ▼0.3540.15 ▼5.86
Dashboard /wp-admin2,375 ▲1876.47 ▲1.54135.21 ▲33.61104.73 ▲59.11
Posts /wp-admin/edit.php2,299 ▲2103.37 ▲1.3549.19 ▲7.0063.69 ▲22.82
Add New Post /wp-admin/post-new.php1,573 ▲3923.09 ▼0.16616.35 ▼3.30155.24 ▲107.83
Media Library /wp-admin/upload.php1,432 ▲474.18 ▲0.0282.44 ▼19.4579.44 ▲35.93
CWLP Settings /wp-admin/admin.php?page=cwlp-settings1,3842.9448.7194.86
General /wp-admin/admin.php?page=cwlp-settings&tab=general_tools1,3873.0846.1978.01
Effect manager /wp-admin/admin.php?page=cwlp-settings&tab=cwlp_login_effect1,0913.0344.5078.54
Login Security /wp-admin/admin.php?page=cwlp-settings&tab=login_security_cwlp1,1093.0143.7456.17
Label Changer /wp-admin/admin.php?page=cwlp-settings&tab=cwlp_login_label1,1173.0543.5465.19
Social /wp-admin/admin.php?page=cwlp-settings&tab=social_widget1,1373.0540.9067.31

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 7 options in the database
    • cwlploginposition
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 44 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cwlp-settings&tab=general_tools
    • > Notice in wp-content/plugins/creative-wp-login-page/include/settings.php+484
    Undefined variable: label
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cwlp-settings&tab=general_tools
    • > Notice in wp-content/plugins/creative-wp-login-page/include/settings.php+476
    Undefined index: value
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cwlp-settings&tab=login_security_cwlp
    • > Notice in wp-content/plugins/creative-wp-login-page/include/settings.php+531
    Undefined index: type

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/creative-wp-login-page/cwlp.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/creative-wp-login-page/include/login-page.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/creative-wp-login-page/include/effect.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: creative login page, login, signin, custom login, login style...

creative-wp-login-page/cwlp.php 85% from 13 tests

The entry point to "Creative WP Login Page" version 7.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("creative-wp-login-page.php" instead of "cwlp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin3,853 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
CSS18536222,522
PHP9108981,058
PO File1107115266
JavaScript3007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity4.77
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/creative-logo.png0.87KB0.86KB▼ 2.12%