77% rownd-accounts-and-authentication

Code Review | Rownd — Instant user accounts and authentication

WordPress plugin Rownd — Instant user accounts and authentication scored77%from 54 tests.

About plugin

  • Plugin page: rownd-accounts-an...
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0
  • WordPress version: 6.3.1
  • First release: Apr 6, 2022
  • Latest release: Apr 11, 2023
  • Number of updates: 20
  • Update frequency: every 18.6 days
  • Top authors: rownd (75%)rachochalek (30%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /828 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.31ms] Passed 4 tests

Analyzing server-side resources used by Rownd — Instant user accounts and authentication
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0056.05 ▲12.22
Dashboard /wp-admin3.31 ▼0.0443.37 ▼19.17
Posts /wp-admin/edit.php3.36 ▲0.0046.64 ▲2.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.77 ▼24.51
Media Library /wp-admin/upload.php3.23 ▲0.0033.92 ▲0.17

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 480 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Rownd — Instant user accounts and authentication
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.102.01 ▼0.0243.02 ▲1.14
Dashboard /wp-admin2,209 ▲215.90 ▲0.05104.54 ▼17.2140.34 ▼6.68
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0441.15 ▲6.0437.23 ▲3.83
Add New Post /wp-admin/post-new.php1,533 ▼1123.46 ▲5.26585.97 ▼45.6652.69 ▼0.76
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0595.52 ▼3.0243.56 ▲0.59

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/rownd-accounts-and-authentication/src/lib/save-settings.php
    • > /wp-content/plugins/rownd-accounts-and-authentication/src/lib/activation.php
    • > /wp-content/plugins/rownd-accounts-and-authentication/src/lib/RowndClient.php
    • > /wp-content/plugins/rownd-accounts-and-authentication/src/pages/admin/main.php
    • > /wp-content/plugins/rownd-accounts-and-authentication/src/lib/Authenticator.php
  • 238× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rownd-accounts-and-authentication/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/rownd-accounts-and-authentication/vendor/guzzlehttp/promises/src/AggregateException.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/rownd-accounts-and-authentication/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rownd-accounts-and-authentication/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rownd-accounts-and-authentication/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rownd-accounts-and-authentication/vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rownd-accounts-and-authentication/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/rownd-accounts-and-authentication/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Jose\\Component\\Encryption\\Algorithm\\KeyEncryptionAlgorithm' not found in wp-content/plugins/rownd-accounts-and-authentication/vendor/web-token/jwt-encryption/Algorithm/KeyEncryption/KeyWrapping.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/rownd-accounts-and-authentication/vendor/guzzlehttp/psr7/src/UploadedFile.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% 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
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

rownd-accounts-and-authentication/index.php 77% from 13 tests

"Rownd — Instant user accounts and authentication" version 1.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("rownd-accounts-and-authentication.php" instead of "index.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin29,531 lines of code in 443 files:
LanguageFilesBlank linesComment linesLines of code
PHP3855,40712,17822,843
Markdown271,50004,075
JSON19102,301
YAML7320154
CSS112061
JavaScript17059
XML11028
make1409
SVG1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity8.32
▷ Minimum class complexity1.00
▷ Maximum class complexity89.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces40
Interfaces45
Traits3
Classes317
▷ Abstract classes113.47%
▷ Concrete classes30696.53%
▷ Final classes6220.26%
Methods1,894
▷ Static methods27414.47%
▷ Public methods1,53981.26%
▷ Protected methods1166.12%
▷ Private methods23912.62%
Functions151
▷ Named functions3825.17%
▷ Anonymous functions11374.83%
Constants193
▷ Global constants84.15%
▷ Class constants18595.85%
▷ Public constants15885.41%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin