84% unofficial-frill-sso

Code Review | Unofficial - Frill.co SSO

WordPress plugin Unofficial - Frill.co SSO scored84%from 54 tests.

About plugin

  • Plugin page: unofficial-frill-sso
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.8.1
  • WordPress version: 6.3.1
  • First release: Aug 4, 2021
  • Latest release: Oct 6, 2021
  • Number of updates: 7
  • Update frequency: every 9.0 days
  • Top authors: zarex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /444 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Unofficial - Frill.co SSO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.70 ▼1.17
Dashboard /wp-admin3.33 ▲0.0248.54 ▼2.48
Posts /wp-admin/edit.php3.38 ▲0.0251.17 ▲1.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.17 ▼16.43
Media Library /wp-admin/upload.php3.25 ▲0.0236.27 ▲2.70
Frill SSO /wp-admin/options-general.php?page=frill-sso3.2233.29

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 243 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Unofficial - Frill.co SSO: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.34 ▼0.011.72 ▲0.1142.16 ▲2.59
Dashboard /wp-admin2,202 ▲255.64 ▲0.0492.81 ▼0.3441.12 ▲2.30
Posts /wp-admin/edit.php2,104 ▲12.04 ▲0.0939.25 ▲3.4237.32 ▲6.06
Add New Post /wp-admin/post-new.php1,531 ▲523.21 ▼0.28660.89 ▲24.4552.11 ▼7.50
Media Library /wp-admin/upload.php1,404 ▲74.22 ▼0.0793.58 ▼6.9042.52 ▼0.59
Frill SSO /wp-admin/options-general.php?page=frill-sso8371.9925.9732.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
  • 168× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'unofficial\\frill\\sso\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/unofficial-frill-sso/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'unofficial\\frill\\sso\\ParagonIE_Sodium_Core_HSalsa20' not found in wp-content/plugins/unofficial-frill-sso/vendor/paragonie/sodium_compat/src/Core/XSalsa20.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'unofficial\\frill\\sso\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/unofficial-frill-sso/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'unofficial\\frill\\sso\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/unofficial-frill-sso/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'unofficial\\frill\\sso\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/unofficial-frill-sso/vendor/composer/installers/src/Composer/Installers/SMFInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'unofficial\\frill\\sso\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/unofficial-frill-sso/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'unofficial\\frill\\sso\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/unofficial-frill-sso/vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'unofficial\\frill\\sso\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/unofficial-frill-sso/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'unofficial\\frill\\sso\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/unofficial-frill-sso/vendor/composer/installers/src/Composer/Installers/TastyIgniterInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'unofficial\\frill\\sso\\ParagonIE_Sodium_Core_HChaCha20' not found in wp-content/plugins/unofficial-frill-sso/vendor/paragonie/sodium_compat/src/Core/XChaCha20.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: frill, roadmap, feedback, frillco, changelog

unofficial-frill-sso/unofficial-frill-sso.php Passed 13 tests

This is the main PHP file of "Unofficial - Frill.co SSO" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
92 characters long description:
Unofficial Frill.co SSO plugin, enable SSO (Single-sign-on) login from WordPress to Frill.co

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 detected19,030 lines of code in 234 files:
LanguageFilesBlank linesComment linesLines of code
PHP22452012,29518,451
JSON300480
XML3144263
YAML12025
Bourne Shell2418
SVG1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity9.11
▷ Minimum class complexity1.00
▷ Maximum class complexity380.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces12
Interfaces0
Traits0
Classes199
▷ Abstract classes2211.06%
▷ Concrete classes17788.94%
▷ Final classes00.00%
Methods828
▷ Static methods56668.36%
▷ Public methods72988.04%
▷ Protected methods779.30%
▷ Private methods222.66%
Functions225
▷ Named functions21696.00%
▷ Anonymous functions94.00%
Constants334
▷ Global constants92.69%
▷ Class constants32597.31%
▷ Public constants325100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 2.53MB with 1.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png742.13KB289.30KB▼ 61.02%
screenshot-2.png864.50KB403.96KB▼ 53.27%
screenshot-3.png966.79KB433.35KB▼ 55.18%
icon-256x256.png11.25KB8.62KB▼ 23.34%
icon-128x128.png4.00KB3.68KB▼ 8.13%