10% sn-extend-authentication

Code Review | SN Extend Authentication

WordPress plugin SN Extend Authentication scored 10% from 54 tests.

About plugin

  • Plugin page: sn-extend-authent...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.8
  • WordPress version: 6.3.1
  • First release: May 10, 2013
  • Latest release: Jan 3, 2014
  • Number of updates: 27
  • Update frequency: every 8.8 days
  • Top authors: pgautam (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active / 1,899 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/sn-extend-authentication/metabox.class.php+31
    array_push() expects parameter 1 to be array, null given

Server metrics [RAM: ▼1.84MB] [CPU: ▼52.21ms] Passed 4 tests

Analyzing server-side resources used by SN Extend Authentication
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.327.60 ▼37.52
Dashboard /wp-admin2.16 ▼1.148.41 ▼44.70
Posts /wp-admin/edit.php2.16 ▼1.197.98 ▼37.43
Add New Post /wp-admin/post-new.php2.16 ▼3.738.74 ▼89.20
Media Library /wp-admin/upload.php2.16 ▼1.067.57 ▼25.09
Authentication Settings /wp-admin/options-general.php?page=authentication-setting-admin2.178.89

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
recovery_mode_email_last_sent
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by SN Extend Authentication
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7514.44 ▲0.032.13 ▲0.2651.34 ▲8.48
Dashboard /wp-admin2,212 ▲244.87 ▼0.01109.49 ▼6.5441.92 ▼7.74
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0939.07 ▲4.8036.70 ▲2.14
Add New Post /wp-admin/post-new.php45 ▼1,4690.44 ▼17.130.08 ▼694.109.50 ▼45.86
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.02104.71 ▼5.1464.36 ▲16.63
Authentication Settings /wp-admin/options-general.php?page=authentication-setting-admin7942.0623.1533.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the authentication-styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=authentication-setting-admin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the authentication-styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=authentication-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=authentication-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/sn-extend-authentication/sn-extend-authentication.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% 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 to be fixed:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

sn-extend-authentication/sn-extend-authentication.php Passed 13 tests

Analyzing the main PHP file in "SN Extend Authentication" version 1.3
116 characters long description:
Plugin allows admin to disable anonymous users browsing of selective posts, pages, feeds or complete WordPress site.

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
No dangerous file extensions were detected1,216 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31701751,177
CSS17039

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity65.75
▷ Minimum class complexity20.00
▷ Maximum class complexity119.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods81
▷ Static methods00.00%
▷ Public methods6479.01%
▷ Protected methods1518.52%
▷ Private methods22.47%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.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