84% custom-login-css

Code Review | Custom Login Css

WordPress plugin Custom Login Css scored84%from 54 tests.

About plugin

  • Plugin page: custom-login-css
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9
  • WordPress version: 6.3.1
  • First release: Apr 23, 2012
  • Latest release: Mar 24, 2018
  • Number of updates: 9
  • Update frequency: every 240.1 days
  • Top authors: graphicedit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /6,165 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▲0.47ms] Passed 4 tests

This is a short check of server-side resources used by Custom Login Css
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.88 ▲7.29
Dashboard /wp-admin3.31 ▲0.0043.88 ▼2.25
Posts /wp-admin/edit.php3.36 ▲0.0049.06 ▲3.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.13 ▲1.14
Media Library /wp-admin/upload.php3.23 ▲0.0033.38 ▼0.78
Custom Login Css /wp-admin/options-general.php?page=custom-login-css/options.php3.2229.34

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Custom Login Css
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.32 ▼1.271.59 ▼0.6137.27 ▼4.43
Dashboard /wp-admin2,210 ▲254.88 ▼1.01101.31 ▼6.1137.64 ▼2.84
Posts /wp-admin/edit.php2,096 ▲102.04 ▲0.0540.58 ▲4.9734.13 ▼7.46
Add New Post /wp-admin/post-new.php1,550 ▲1718.12 ▼4.96604.90 ▼80.1067.13 ▲18.24
Media Library /wp-admin/upload.php1,392 ▲14.23 ▲0.03100.03 ▼1.0640.45 ▼4.18
Custom Login Css /wp-admin/options-general.php?page=custom-login-css/options.php8112.0322.1725.81

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 2× 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-css/wp-custom-login.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/custom-login-css/options.php:4

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Custom Login Css.)
You can look at the official readme.txt

custom-login-css/wp-custom-login.php 92% from 13 tests

The entry point to "Custom Login Css" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("custom-login-css.php" instead of "wp-custom-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin50 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2261950

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin