78% simple-login-sc

Code Review | Simple Login SC

WordPress plugin Simple Login SC scored78%from 54 tests.

About plugin

  • Plugin page: simple-login-sc
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Sep 25, 2014
  • Latest release: Aug 21, 2015
  • Number of updates: 20
  • Update frequency: every 16.6 days
  • Top authors: Ghyslain Drolet (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /1,979 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.33ms] Passed 4 tests

A check of server-side resources used by Simple Login SC
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.50 ▼1.68
Dashboard /wp-admin3.31 ▲0.0148.61 ▼2.30
Posts /wp-admin/edit.php3.36 ▲0.0049.51 ▼0.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.67 ▼7.84
Media Library /wp-admin/upload.php3.23 ▲0.0034.56 ▼1.51
Simple Login SC /wp-admin/tools.php?page=simple_login_sc3.1733.79

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple Login SC
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.081.97 ▲0.1243.60 ▲1.36
Dashboard /wp-admin2,196 ▲165.48 ▼0.1988.68 ▼1.1738.79 ▼5.26
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0233.54 ▼3.3635.32 ▼0.12
Add New Post /wp-admin/post-new.php1,530 ▲423.01 ▼0.16634.05 ▼47.5963.43 ▲3.81
Media Library /wp-admin/upload.php1,401 ▲14.27 ▲0.10102.82 ▲0.8643.62 ▼0.27
Simple Login SC /wp-admin/tools.php?page=simple_login_sc8861.9923.9729.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 17 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=simple_login_sc
    • > Warning in wp-content/plugins/simple-login-sc/simple_login_sc.php+110
    Use of undefined constant slsc - assumed 'slsc' (this will throw an Error in a future version of PHP)

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-login-sc/simple_login_sc.php:136

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)
No browser issues were found

Optimizations

Plugin configuration 93% 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
4 plugin tags: wpml, widget, shortcode, login

simple-login-sc/simple_login_sc.php 85% from 13 tests

Analyzing the main PHP file in "Simple Login SC" version 0.8
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-login-sc.php" instead of "simple_login_sc.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
There were no executable files found in this plugin200 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File12244121
PHP1273579

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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