84% webshoplogin-single-sign-on

Code Review | WebshopLogin Single Sign On

WordPress plugin WebshopLogin Single Sign On scored84%from 54 tests.

About plugin

  • Plugin page: webshoplogin-sing...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Nov 30, 2018
  • Number of updates: 26
  • Update frequency: every 0.9 days
  • Top authors: webshoplogin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /848 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.03ms] Passed 4 tests

A check of server-side resources used by WebshopLogin Single Sign On
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0736.53 ▼6.87
Dashboard /wp-admin3.38 ▲0.0750.08 ▼2.26
Posts /wp-admin/edit.php3.49 ▲0.1453.17 ▲2.92
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.43 ▼13.33
Media Library /wp-admin/upload.php3.30 ▲0.0737.10 ▼1.66

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WebshopLogin Single Sign On
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.39 ▲0.041.82 ▲0.1346.37 ▲8.42
Dashboard /wp-admin2,214 ▲375.64 ▲0.0392.27 ▲4.9844.71 ▼1.18
Posts /wp-admin/edit.php2,123 ▲201.99 ▼0.0241.11 ▲6.7337.33 ▲0.11
Add New Post /wp-admin/post-new.php1,540 ▲523.22 ▲5.14683.44 ▲44.2057.14 ▼6.39
Media Library /wp-admin/upload.php1,419 ▲254.17 ▲0.0196.77 ▼7.7848.57 ▲1.85

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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: Call to undefined function add_action() in wp-content/plugins/webshoplogin-single-sign-on/wsl-installation.php:4

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: login, simple login, one account, 1 account, single sign-on

webshoplogin-single-sign-on/wsl-plugin.php 85% from 13 tests

Analyzing the main PHP file in "WebshopLogin Single Sign On" version 1.0.5
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("webshoplogin-single-sign-on.php" instead of "wsl-plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,598 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PO File83503881,411
PHP618652956
JavaScript2422152
CSS116079

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions68
▷ Named functions68100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/wsl-logo.png1.36KB0.84KB▼ 38.30%