84% simply-login-regiser

Code Review | Simply Login Register

WordPress plugin Simply Login Register scored84%from 54 tests.

About plugin

  • Plugin page: simply-login-regiser
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.4
  • WordPress version: 6.3.1
  • First release: May 13, 2016
  • Latest release: Mar 26, 2018
  • Number of updates: 5
  • Update frequency: every 136.6 days
  • Top authors: anshuln90 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /5,130 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.51ms] Passed 4 tests

This is a short check of server-side resources used by Simply Login Register
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.70 ▲4.47
Dashboard /wp-admin3.33 ▲0.0246.36 ▼4.88
Posts /wp-admin/edit.php3.44 ▲0.0847.92 ▼3.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.01 ▼11.58
Media Library /wp-admin/upload.php3.25 ▲0.0235.96 ▲1.69
SRL Settings /wp-admin/options-general.php?page=slr_plugin_setting3.2234.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Simply Login Register
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲12813.39 ▼1.249.23 ▲7.4453.89 ▲12.62
Dashboard /wp-admin2,195 ▲155.51 ▼0.0987.74 ▼10.0939.02 ▼3.47
Posts /wp-admin/edit.php2,109 ▲92.01 ▼0.0037.18 ▼3.6831.24 ▼3.35
Add New Post /wp-admin/post-new.php1,608 ▲8223.65 ▲0.60665.45 ▲19.5653.51 ▼11.99
Media Library /wp-admin/upload.php1,409 ▲124.27 ▲0.09105.34 ▼8.7547.22 ▼0.61
SRL Settings /wp-admin/options-general.php?page=slr_plugin_setting7752.0226.7929.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× 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/simply-login-regiser/simply-login-register.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #3 (screenshot-1.png), #4 (screenshot-2.png)
The official readme.txt might help

simply-login-regiser/simply-login-register.php 92% from 13 tests

"Simply Login Register" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simply-login-regiser.php" instead of "simply-login-register.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,414 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS11432,057
PHP25562270
JavaScript19087

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin