84% check-eid-login

Code Review | check-eid-login, check if eID login was used to login

WordPress plugin check-eid-login, check if eID login was used to login scored84%from 54 tests.

About plugin

  • Plugin page: check-eid-login
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 7, 2022
  • Latest release: Sep 7, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: olfdb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /248 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by check-eid-login, check if eID login was used to login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.03 ▼6.76
Dashboard /wp-admin3.31 ▲0.0142.91 ▼4.05
Posts /wp-admin/edit.php3.36 ▲0.0146.90 ▼3.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0177.49 ▼25.36
Media Library /wp-admin/upload.php3.23 ▲0.0132.42 ▼0.98

Server storage [IO: ▲0.00MB] [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: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for check-eid-login, check if eID login was used to login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.74 ▼0.821.59 ▼0.0537.98 ▼3.40
Dashboard /wp-admin2,206 ▲144.90 ▼0.06113.58 ▲3.7542.68 ▲0.81
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0039.05 ▼0.7436.21 ▼1.32
Add New Post /wp-admin/post-new.php1,533 ▲523.29 ▲5.25653.21 ▲33.3251.80 ▼9.38
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0097.60 ▼0.4040.10 ▼3.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/check-eid-login/check-eid-login.php:10

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 errors were detected

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
4 plugin tags: eid, login, eid-login, require eid login

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

The primary PHP file in "check-eid-login, check if eID login was used to login" version 1.0.0 is used by WordPress to initiate all plugin functionality
106 characters long description:
Check if the current user is editor, author, or contributor and if true, force login via eID-Login plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116847

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected