90% check-external-login

Code Review | Check External Login

WordPress plugin Check External Login scored 90% from 54 tests.

About plugin

  • Plugin page: check-external-login
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 29, 2022
  • Latest release: Mar 16, 2023
  • Number of updates: 7
  • Update frequency: every 49.9 days
  • Top authors: theurtin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 221 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Check External Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0824.80 ▼21.64
Dashboard /wp-admin3.31 ▲0.0152.30 ▼8.50
Posts /wp-admin/edit.php3.36 ▲0.0150.18 ▼2.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.70 ▼6.63
Media Library /wp-admin/upload.php3.23 ▲0.0039.68 ▲6.49
Check external login /wp-admin/options-general.php?page=check-external-login-settings3.2333.70

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Check External Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.66 ▼0.722.72 ▲0.5351.76 ▲1.37
Dashboard /wp-admin2,213 ▲284.87 ▼0.94106.19 ▼27.7041.93 ▼12.04
Posts /wp-admin/edit.php2,096 ▲42.01 ▼0.0243.71 ▼2.0637.80 ▼2.50
Add New Post /wp-admin/post-new.php1,517 ▼1623.79 ▲0.40695.88 ▲7.2872.08 ▲16.98
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.07126.32 ▲10.9753.44 ▼0.85
Check external login /wp-admin/options-general.php?page=check-external-login-settings8102.0228.4729.82

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
No output text or server-side errors detected on direct access of PHP files

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 97% 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
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The screenshot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (The screenshot description corresponds to screenshot-2.(png|jpg|jpeg|gif).), #3 (The screenshot description corresponds to screenshot-3.(png|jpg|jpeg|gif).)
The official readme.txt is a good inspiration

check-external-login/check-external-login.php Passed 13 tests

The main PHP script in "Check External Login" version 1.0 is automatically included on every request by WordPress
51 characters long description:
Allow to check if user is logged in another website

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
Good job! No executable or dangerous file extensions detected122 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP219770
JavaScript112652

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected