78% wp-aaieduhr-auth

Code Review | WP AAI@EduHr Auth

WordPress plugin WP AAI@EduHr Auth scored78%from 54 tests.

About plugin

  • Plugin page: wp-aaieduhr-auth
  • Plugin version: 0.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 19, 2017
  • Latest release: Nov 3, 2023
  • Number of updates: 27
  • Update frequency: every 81.7 days
  • Top authors: cicnavi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,097 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.26ms] Passed 4 tests

A check of server-side resources used by WP AAI@EduHr Auth
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.12 ▲1.38
Dashboard /wp-admin3.35 ▲0.0048.83 ▼8.79
Posts /wp-admin/edit.php3.40 ▲0.0444.39 ▼22.42
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.96 ▼7.19
Media Library /wp-admin/upload.php3.27 ▲0.0438.44 ▲3.26
WP AAI@EduHr Auth /wp-admin/options-general.php?page=WP_AAIEduHr_Auth_Settings3.2629.22

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP AAI@EduHr Auth
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5214.13 ▼0.211.70 ▲0.0843.69 ▼0.49
Dashboard /wp-admin2,205 ▲285.58 ▼0.0484.45 ▲0.1039.56 ▼2.65
Posts /wp-admin/edit.php2,086 ▼171.96 ▲0.0235.87 ▼3.0531.64 ▼3.66
Add New Post /wp-admin/post-new.php1,532 ▲323.19 ▼0.07678.13 ▼13.8747.55 ▼4.63
Media Library /wp-admin/upload.php1,407 ▲104.24 ▲0.03126.38 ▲21.1849.93 ▲3.71
WP AAI@EduHr Auth /wp-admin/options-general.php?page=WP_AAIEduHr_Auth_Settings8852.0422.5127.72

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 were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-aaieduhr-auth/wp-aaieduhr-auth.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 7
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 2
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 11
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/wp-aaieduhr-auth/templates/auth_message.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% 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:
  • Requires php: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

wp-aaieduhr-auth/wp-aaieduhr-auth.php Passed 13 tests

The primary PHP file in "WP AAI@EduHr Auth" version 0.0.10 is used by WordPress to initiate all plugin functionality
87 characters long description:
Plugin that replaces the default WordPress authentication with SimpleSAMLphp AAI@EduHr.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin886 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7313578831
CSS16242
Markdown12013

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity24.80
▷ Minimum class complexity5.00
▷ Maximum class complexity34.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods62
▷ Static methods3556.45%
▷ Public methods4877.42%
▷ Protected methods914.52%
▷ Private methods58.06%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin