83% stitchz-social-login

Code Review | Stitchz Social Login

WordPress plugin Stitchz Social Login scored83%from 54 tests.

About plugin

  • Plugin page: stitchz-social-login
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-4.4
  • WordPress version: 6.3.1
  • First release: Feb 1, 2015
  • Latest release: Dec 29, 2015
  • Number of updates: 23
  • Update frequency: every 14.4 days
  • Top authors: stitchzdotnet (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.46ms] Passed 4 tests

This is a short check of server-side resources used by Stitchz Social Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.89 ▼5.64
Dashboard /wp-admin3.33 ▲0.0244.03 ▼10.46
Posts /wp-admin/edit.php3.38 ▲0.0247.94 ▲1.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.11 ▲1.22
Media Library /wp-admin/upload.php3.25 ▲0.0235.76 ▲4.21

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Stitchz Social Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.18 ▼1.181.72 ▼0.0442.52 ▼0.50
Dashboard /wp-admin2,225 ▲375.82 ▼0.08105.14 ▼1.3138.34 ▼4.27
Posts /wp-admin/edit.php2,111 ▲221.99 ▼0.0243.15 ▲3.2934.57 ▼1.88
Add New Post /wp-admin/post-new.php1,542 ▲618.38 ▼4.63598.86 ▼22.7956.87 ▲0.73
Media Library /wp-admin/upload.php1,407 ▲194.22 ▼0.0695.46 ▼3.3542.00 ▼1.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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
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
  • 4× 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/stitchz-social-login/views/admin.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/stitchz-social-login/stitchz_social_login.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stitchz-social-login/views/user.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stitchz-social-login/views/ui.php:13

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
You can take inspiration from this readme.txt

stitchz-social-login/stitchz_social_login.php 85% from 13 tests

"Stitchz Social Login" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stitchz-social-login.php" instead of "stitchz_social_login.php")
  • Description: The description should be shorter than 140 characters (currently 338 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,444 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP82725651,234
CSS1441210

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions52
▷ Named functions52100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo-55x40.png1.59KB1.72KB0.00%