68% ezpz-sp

Code Review | EZPZ SAML SP Single Sign On (SSO)

WordPress plugin EZPZ SAML SP Single Sign On (SSO) scored68%from 54 tests.

About plugin

  • Plugin page: ezpz-sp
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.5.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2018
  • Latest release: Sep 25, 2020
  • Number of updates: 14
  • Update frequency: every 48.1 days
  • Top authors: overtdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /2,208 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.08MB] [CPU: ▲57.47ms] Passed 4 tests

Analyzing server-side resources used by EZPZ SAML SP Single Sign On (SSO)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.74 ▲1.27104.33 ▲62.77
Dashboard /wp-admin4.39 ▲1.04110.76 ▲49.15
Posts /wp-admin/edit.php4.49 ▲1.13117.71 ▲63.06
Add New Post /wp-admin/post-new.php6.97 ▲1.08163.42 ▲54.90
Media Library /wp-admin/upload.php4.31 ▲1.08110.78 ▲74.10
Configure /wp-admin/admin.php?page=ezpzsp4.2693.67

Server storage [IO: ▲0.59MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 62 new files
Database: 3 new tables, 6 new options
New tables
wp_institution_meta
wp_institutions
wp_institution_settings
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

EZPZ SAML SP Single Sign On (SSO): an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.76 ▲0.431.90 ▼0.0039.83 ▲1.62
Dashboard /wp-admin2,228 ▲545.65 ▲0.0393.90 ▲1.1041.78 ▲0.89
Posts /wp-admin/edit.php2,130 ▲272.04 ▲0.0340.25 ▲1.8936.80 ▲0.13
Add New Post /wp-admin/post-new.php1,570 ▲3920.98 ▼2.41709.36 ▲68.8760.00 ▼2.53
Media Library /wp-admin/upload.php1,430 ▲274.23 ▼0.02101.72 ▼0.7348.20 ▲5.35
Configure /wp-admin/admin.php?page=ezpzsp9552.1723.7331.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables detected upon uninstall: 3 tables
    • wp_institutions
    • wp_institution_meta
    • wp_institution_settings
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=ezpzsp
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

SRP 50% 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 take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'EZPZCommon' not found in wp-content/plugins/ezpz-sp/class/wps_saml.class.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'EZPZCommon' not found in wp-content/plugins/ezpz-sp/class/wps_auth.class.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'EZPZCommon' not found in wp-content/plugins/ezpz-sp/class/wps_post.class.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'EZPZCommon' not found in wp-content/plugins/ezpz-sp/class/wps_institution.class.php:11

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

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
  • Screenshots: These screenshots require images: #1 (SP Settings Page), #2 (Login Options Page), #3 (Protecting Per Page / Post)
The official readme.txt might help

ezpz-sp/ezpzsp.php 92% from 13 tests

This is the main PHP file of "EZPZ SAML SP Single Sign On (SSO)" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ezpz-sp.php" instead of "ezpzsp.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
Good job! No executable or dangerous file extensions detected11,050 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP341,4103,0537,282
XSD12233402,414
Markdown239501,228
JSON510108
XML10018

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.43
Average class complexity54.96
▷ Minimum class complexity1.00
▷ Maximum class complexity184.00
Average method complexity4.88
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods335
▷ Static methods7321.79%
▷ Public methods29788.66%
▷ Protected methods41.19%
▷ Private methods3410.15%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants154
▷ Global constants10.65%
▷ Class constants15399.35%
▷ Public constants153100.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