10% siris-login-widget

Code Review | Siris Login Widget

WordPress plugin Siris Login Widget scored10%from 54 tests.

About plugin

  • Plugin page: siris-login-widget
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.3
  • WordPress version: 6.3.1
  • First release: Dec 10, 2014
  • Latest release: Aug 2, 2015
  • Number of updates: 10
  • Update frequency: every 23.5 days
  • Top authors: VamsiTech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,114 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/siris-login-widget/index.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; SirisLoginWidget has a deprecated constructor

Server metrics [RAM: ▼1.72MB] [CPU: ▼48.24ms] Passed 4 tests

Server-side resources used by Siris Login Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.189.28 ▼28.90
Dashboard /wp-admin2.29 ▼1.0511.66 ▼42.03
Posts /wp-admin/edit.php2.30 ▼1.0610.98 ▼35.34
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.64 ▼86.69
Media Library /wp-admin/upload.php2.29 ▼0.938.42 ▼26.18

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_sirisloginwidget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Siris Login Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.11 ▼1.194.84 ▲3.0744.73 ▲2.99
Dashboard /wp-admin2,208 ▲194.81 ▼0.16102.93 ▼14.5138.47 ▼6.58
Posts /wp-admin/edit.php2,094 ▲52.05 ▲0.0641.37 ▲2.3435.34 ▲0.02
Add New Post /wp-admin/post-new.php1,530 ▼1223.15 ▲5.02590.20 ▼10.8348.37 ▼4.98
Media Library /wp-admin/upload.php1,390 ▼14.25 ▲0.0696.16 ▼0.8841.69 ▼0.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/siris-login-widget/index.php+124
    Undefined variable: plugin_tag
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_sirisloginwidget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/siris-login-widget/index.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: custom menu, login, widget, sidebar login, custom login...

siris-login-widget/index.php 92% from 13 tests

Analyzing the main PHP file in "Siris Login Widget" version 1.2
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("siris-login-widget.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin126 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11524108
CSS11218

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin