84% ts-login

Code Review | TS login

WordPress plugin TS login scored84%from 54 tests.

About plugin

  • Plugin page: ts-login
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Aug 20, 2021
  • Latest release: Feb 12, 2022
  • Number of updates: 6
  • Update frequency: every 29.3 days
  • Top authors: Modulout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /359 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.84ms] Passed 4 tests

A check of server-side resources used by TS login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1343.77 ▼0.90
Dashboard /wp-admin3.41 ▲0.1050.39 ▼0.28
Posts /wp-admin/edit.php3.52 ▲0.1651.54 ▼3.86
Add New Post /wp-admin/post-new.php6.01 ▲0.1287.65 ▼17.51
Media Library /wp-admin/upload.php3.33 ▲0.1038.80 ▼1.08
TS Login /wp-admin/admin.php?page=tipster_script_login3.3745.74
Config /wp-admin/admin.php?page=tsl_config3.3742.11

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_tsl_login_register
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for TS login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,067 ▲32113.81 ▼0.7711.68 ▲9.8640.86 ▼2.58
Dashboard /wp-admin2,233 ▲454.86 ▼0.23105.94 ▼3.8040.44 ▼3.45
Posts /wp-admin/edit.php2,116 ▲272.04 ▼0.0040.81 ▲1.2835.67 ▲1.82
Add New Post /wp-admin/post-new.php1,569 ▲5518.09 ▲0.57607.76 ▼81.9864.44 ▲12.26
Media Library /wp-admin/upload.php1,415 ▲274.30 ▲0.1399.19 ▼4.6244.78 ▼2.58
TS Login /wp-admin/admin.php?page=tipster_script_login3,6103.99130.0940.22
Config /wp-admin/admin.php?page=tsl_config3,6133.96128.4038.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_tsl_login_register
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ts-login/php/tsl_ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/ts-login/php/tsl_config.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ts-login/php/templates/login2.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ts-login/php/templates/login3.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ts-login/php/templates/login1.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ts-login/php/templates/register3.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ts-login/php/templates/register2.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ts-login/php/templates/register1.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ts-login/php/Tsl_login_register.php:2

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 96% 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
5 plugin tags: register, different styles, popup, google recaptcha, login

ts-login/tipster_script_login.php 92% from 13 tests

The main file in "TS login" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ts-login.php" instead of "tipster_script_login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin10,656 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
PHP113932808
JavaScript4159177
CSS451388
Markdown116031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected