78% wp-steam-auth

Code Review | WP Steam Auth

WordPress plugin WP Steam Auth scored78%from 54 tests.

About plugin

  • Plugin page: wp-steam-auth
  • Plugin version: 0.6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.4
  • WordPress version: 6.3.1
  • First release: Oct 3, 2016
  • Latest release: Apr 30, 2017
  • Number of updates: 36
  • Update frequency: every 5.8 days
  • Top authors: hwk-fr (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /9,073 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.16ms] Passed 4 tests

An overview of server-side resources used by WP Steam Auth
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1738.90 ▲0.92
Dashboard /wp-admin3.45 ▲0.1545.95 ▼3.80
Posts /wp-admin/edit.php3.58 ▲0.2249.31 ▲2.85
Add New Post /wp-admin/post-new.php6.05 ▲0.1786.69 ▼8.60
Media Library /wp-admin/upload.php3.38 ▲0.1538.06 ▲5.14
WP Steam Auth /wp-admin/options-general.php?page=wp-steam-auth3.3531.39

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options
wpsapSettings_steamAppLoginUrl
db_upgraded
wpsapSettings_steamAppLogoutUrl
widget_theysaidso_widget
wpsapSettings_steamAppSyncUrl
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Steam Auth
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.39 ▼1.281.61 ▼0.1137.79 ▼3.17
Dashboard /wp-admin2,229 ▲374.89 ▼0.03104.39 ▼2.1947.30 ▲6.54
Posts /wp-admin/edit.php2,111 ▲192.04 ▲0.0740.84 ▼2.4138.48 ▲2.64
Add New Post /wp-admin/post-new.php1,525 ▲617.74 ▼5.53695.37 ▲50.8762.44 ▲13.58
Media Library /wp-admin/upload.php1,407 ▲224.21 ▼0.01101.81 ▲2.2945.08 ▲0.35
WP Steam Auth /wp-admin/options-general.php?page=wp-steam-auth1,5861.7730.6962.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • wpsapSettings_steamAppLoginUrl
    • widget_recent-posts
    • db_upgraded
    • wpsapSettings_steamAppLogoutUrl
    • widget_recent-comments
    • can_compress_scripts
    • wpsapSettings_steamAppSyncUrl

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-steam-auth/wp-steam-auth.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-steam-auth/inc/filters.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function user_trailingslashit() in wp-content/plugins/wp-steam-auth/inc/modifiers.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-steam-auth/inc/shortcodes.php:34

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)
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 your attention: The official readme.txt might help

wp-steam-auth/wp-steam-auth.php Passed 13 tests

The primary PHP file in "WP Steam Auth" version 0.6.4 is used by WordPress to initiate all plugin functionality
65 characters long description:
Register, Login & Synchronize WP Users via Steam Authentification

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin7,408 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS12095,900
PHP63784841,444
JavaScript216464

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity190.00
▷ Minimum class complexity190.00
▷ Maximum class complexity190.00
Average method complexity7.30
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods1136.67%
▷ Protected methods1756.67%
▷ Private methods26.67%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin