10% wordpress-openid-delegation

Code Review | OpenID Delegation

WordPress plugin OpenID Delegation scored10%from 54 tests.

About plugin

  • Plugin page: wordpress-openid-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Oct 15, 2012
  • Latest release: Oct 26, 2014
  • Number of updates: 31
  • Update frequency: every 24.0 days
  • Top authors: rodrigosprimo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,917 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wordpress-openid-delegation/lib/Auth/OpenID/Discover.php+64
    Methods with the same name as their class will not be constructors in a future version of PHP; Auth_OpenID_ServiceEndpoint has a deprecated constructor

Server metrics [RAM: ▼1.83MB] [CPU: ▼55.31ms] Passed 4 tests

Server-side resources used by OpenID Delegation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.305.35 ▼37.72
Dashboard /wp-admin2.18 ▼1.125.82 ▼46.06
Posts /wp-admin/edit.php2.19 ▼1.185.50 ▼42.75
Add New Post /wp-admin/post-new.php2.19 ▼3.716.82 ▼94.69
Media Library /wp-admin/upload.php2.19 ▼1.057.91 ▼30.35

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for OpenID Delegation
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.34 ▼0.211.85 ▲0.0145.03 ▲4.28
Dashboard /wp-admin2,198 ▲345.63 ▼0.0198.60 ▼6.5645.33 ▲3.49
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0335.29 ▼3.0435.63 ▼3.76
Add New Post /wp-admin/post-new.php1,526 ▼223.55 ▲0.47676.06 ▲21.0751.78 ▼12.84
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.00102.24 ▼4.4742.80 ▼5.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/wordpress-openid-delegation/lib/Auth/OpenID/Discover.php+64
    Methods with the same name as their class will not be constructors in a future version of PHP; Auth_OpenID_ServiceEndpoint has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 fix the following items
  • 67× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(Auth/Yadis/PlainHTTPFetcher.php): failed to open stream: No such file or directory in wp-content/plugins/wordpress-openid-delegation/lib/Auth/Yadis/Yadis.php on line 20
    • > PHP Fatal error
      require_once(): Failed opening required 'Auth/OpenID/Interface.php' (include_path='.:/usr/share/php') in wp-content/plugins/wordpress-openid-delegation/lib/Auth/OpenID/SQLStore.php on line 19
    • > PHP Warning
      require_once(Auth/OpenID/Extension.php): failed to open stream: No such file or directory in wp-content/plugins/wordpress-openid-delegation/lib/Auth/OpenID/PAPE.php on line 11
    • > PHP Warning
      require_once(Auth/OpenID/SQLStore.php): failed to open stream: No such file or directory in wp-content/plugins/wordpress-openid-delegation/lib/Auth/OpenID/SQLiteStore.php on line 12
    • > PHP Warning
      require_once(Auth/Yadis/Misc.php): failed to open stream: No such file or directory in wp-content/plugins/wordpress-openid-delegation/lib/Auth/OpenID/URINorm.php on line 12
    • > PHP Warning
      require_once(Auth/OpenID/Interface.php): failed to open stream: No such file or directory in wp-content/plugins/wordpress-openid-delegation/lib/Auth/OpenID/MemcachedStore.php on line 21
    • > PHP Warning
      require_once(Auth/Yadis/HTTPFetcher.php): failed to open stream: No such file or directory in wp-content/plugins/wordpress-openid-delegation/lib/Auth/Yadis/PlainHTTPFetcher.php on line 20
    • > PHP Fatal error
      require_once(): Failed opening required 'Auth/Yadis/XRDS.php' (include_path='.:/usr/share/php') in wp-content/plugins/wordpress-openid-delegation/lib/Auth/Yadis/XRIRes.php on line 7
    • > PHP Warning
      require_once(Auth/OpenID/Interface.php): failed to open stream: No such file or directory in wp-content/plugins/wordpress-openid-delegation/lib/Auth/OpenID/DumbStore.php on line 20
    • > PHP Fatal error
      require_once(): Failed opening required 'Auth/Yadis/PlainHTTPFetcher.php' (include_path='.:/usr/share/php') in wp-content/plugins/wordpress-openid-delegation/lib/Auth/OpenID.php on line 28

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Configure the plugin in the Settings -> General section)
You can look at the official readme.txt

wordpress-openid-delegation/openid-delegation.php 92% from 13 tests

The main PHP script in "OpenID Delegation" version 1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wordpress-openid-delegation.php" instead of "openid-delegation.php")

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 plugin9,131 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP422,2355,0519,127
Markdown1204

PHP code Passed 2 tests

An overview 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.38
Average class complexity12.75
▷ Minimum class complexity1.00
▷ Maximum class complexity122.00
Average method complexity3.01
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes95
▷ Abstract classes00.00%
▷ Concrete classes95100.00%
▷ Final classes00.00%
Methods556
▷ Static methods6712.05%
▷ Public methods556100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions90
▷ Named functions90100.00%
▷ Anonymous functions00.00%
Constants70
▷ Global constants70100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png71.81KB24.59KB▼ 65.76%