83% eid-easy-qualified-electonic-signature

Code Review | Qualified Electronic Signatures by eID Easy

WordPress plugin Qualified Electronic Signatures by eID Easy scored83%from 54 tests.

About plugin

  • Plugin page: eid-easy-qualifie...
  • Plugin version: 3.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2021
  • Latest release: Mar 31, 2023
  • Number of updates: 18
  • Update frequency: every 50.2 days
  • Top authors: eideasy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /909 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Qualified Electronic Signatures by eID Easy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.19 ▲0.06
Dashboard /wp-admin3.32 ▲0.0246.41 ▼3.83
Posts /wp-admin/edit.php3.37 ▲0.0247.32 ▼3.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.72 ▼2.33
Media Library /wp-admin/upload.php3.24 ▲0.0231.73 ▼2.22

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Qualified Electronic Signatures by eID Easy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10413.31 ▼1.444.70 ▲2.5337.18 ▼6.99
Dashboard /wp-admin2,222 ▲345.83 ▲0.9696.98 ▼7.7141.54 ▲2.76
Posts /wp-admin/edit.php2,105 ▲161.98 ▼0.0840.50 ▲4.9935.25 ▲2.13
Add New Post /wp-admin/post-new.php1,547 ▲3322.74 ▲5.32610.28 ▼80.6951.14 ▼0.92
Media Library /wp-admin/upload.php1,404 ▲164.18 ▼0.0795.57 ▼5.8841.66 ▼5.87

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/eid-easy-qualified-electonic-signature/cf7-eideasy-attachment-signer.php
    • > /wp-content/plugins/eid-easy-qualified-electonic-signature/EidEasyApi.php
    • > /wp-content/plugins/eid-easy-qualified-electonic-signature/EidEasySignerAdmin.php
    • > /wp-content/plugins/eid-easy-qualified-electonic-signature/EidEasySigner.php
    • > /wp-content/plugins/eid-easy-qualified-electonic-signature/EidEasySignerPendingTable.php
    • > /wp-content/plugins/eid-easy-qualified-electonic-signature/EidEasyProviderSigner.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Admin view)
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

eid-easy-qualified-electonic-signature/cf7-eideasy-attachment-signer.php 85% from 13 tests

The main PHP file in "Qualified Electronic Signatures by eID Easy" ver. 3.3.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eid-easy-qualified-electonic-signature.php" instead of "cf7-eideasy-attachment-signer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin803 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP612617790
JavaScript10013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity17.00
▷ Minimum class complexity4.00
▷ Maximum class complexity34.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods27
▷ Static methods2177.78%
▷ Public methods2592.59%
▷ Protected methods27.41%
▷ 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
PNG images were not found in this plugin