84% super-light-login

Code Review | Super Light Login

WordPress plugin Super Light Login scored84%from 54 tests.

About plugin

  • Plugin page: super-light-login
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Dec 18, 2019
  • Latest release: Apr 23, 2022
  • Number of updates: 28
  • Update frequency: every 30.6 days
  • Top authors: mwalek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,081 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.21ms] Passed 4 tests

An overview of server-side resources used by Super Light Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.24 ▼2.23
Dashboard /wp-admin3.32 ▼0.0248.95 ▼14.12
Posts /wp-admin/edit.php3.38 ▲0.0248.05 ▼4.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.26 ▼11.95
Media Library /wp-admin/upload.php3.25 ▲0.0234.89 ▼1.20
Super Light Login /wp-admin/options-general.php?page=sll_fields3.2135.15

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Super Light Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2914.34 ▼0.012.24 ▲0.6030.76 ▼12.50
Dashboard /wp-admin2,196 ▲225.48 ▼0.0880.86 ▼8.2936.44 ▼6.46
Posts /wp-admin/edit.php2,107 ▲71.96 ▲0.0040.11 ▲2.3736.03 ▲2.84
Add New Post /wp-admin/post-new.php1,531 ▲323.11 ▼0.19654.21 ▲23.4750.07 ▼10.05
Media Library /wp-admin/upload.php1,401 ▲14.24 ▲0.0093.85 ▼14.5144.89 ▼10.11
Super Light Login /wp-admin/options-general.php?page=sll_fields8612.0323.6044.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/super-light-login/super-light-login.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-light-login/includes/sll-functions.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Login Page using Super Light Login) image missing
The official readme.txt might help

super-light-login/super-light-login.php Passed 13 tests

The entry point to "Super Light Login" version 1.0.2 is a PHP file that has certain tags in its header comment area
133 characters long description:
This simple plugin adds super light customization options to your wordpress login screen to make it look super neat and professional.

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
Everything looks great! No dangerous files found in this plugin213 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21725213

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png.png14.32KB6.64KB▼ 53.60%