79% toms-social-login

Code Review | TomS Social Login

WordPress plugin TomS Social Login scored79%from 54 tests.

About plugin

  • Plugin page: toms-social-login
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2022
  • Latest release: Apr 1, 2023
  • Number of updates: 8
  • Update frequency: every 19.5 days
  • Top authors: tomsneddon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /568 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.82MB] [CPU: ▲15.22ms] Passed 4 tests

A check of server-side resources used by TomS Social Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.31 ▲0.8553.19 ▲14.29
Dashboard /wp-admin4.15 ▲0.8560.04 ▲11.66
Posts /wp-admin/edit.php4.20 ▲0.8466.72 ▲20.72
Add New Post /wp-admin/post-new.php6.66 ▲0.77108.69 ▲15.30
Media Library /wp-admin/upload.php4.03 ▲0.8053.89 ▲19.63
TomS Social Login /wp-admin/admin.php?page=toms-social-login-settings4.0654.16
Dashboard /wp-admin/admin.php?page=toms-wp4.0048.60

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 54 new files
Database: 1 new table, 7 new options
New tables
wp_toms_social_login
New WordPress options
toms_social_login__ajax_order
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

TomS Social Login: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲17514.41 ▼0.041.66 ▲0.0537.51 ▼4.05
Dashboard /wp-admin2,317 ▲1294.86 ▼0.03108.68 ▼2.4740.33 ▼0.63
Posts /wp-admin/edit.php2,203 ▲1142.08 ▲0.0741.85 ▲4.6034.80 ▼0.69
Add New Post /wp-admin/post-new.php1,564 ▲3118.53 ▼4.47618.02 ▼40.0056.31 ▲7.76
Media Library /wp-admin/upload.php1,495 ▲1074.26 ▲0.0899.50 ▼7.9041.46 ▼7.69
TomS Social Login /wp-admin/admin.php?page=toms-social-login-settings1,7831.9937.1277.01
Dashboard /wp-admin/admin.php?page=toms-wp1,1822.0326.6736.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_toms_social_login
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • toms_social_login__ajax_order
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

toms-social-login/toms-social-login.php 92% from 13 tests

"TomS Social Login" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.0")

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
Everything looks great! No dangerous files found in this plugin4,755 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP265914064,101
PO File2128177286
CSS3415260
JSON10079
JavaScript10029

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity25.08
▷ Minimum class complexity1.00
▷ Maximum class complexity147.00
Average method complexity7.69
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods91
▷ Static methods00.00%
▷ Public methods91100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
9 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/assets/img/TomS-68.png1.34KB1.79KB0.00%
vendor/assets/img/toms-extra-source.png8.10KB3.04KB▼ 62.51%
vendor/assets/img/toms-recaptcha.png13.43KB3.27KB▼ 75.67%
vendor/assets/img/toms-vaptcha.png16.53KB3.48KB▼ 78.94%
vendor/assets/img/toms-video-player.png8.10KB3.04KB▼ 62.51%