84% greenhouse-portal-sso

Code Review | Greenhouse Portal SSO

WordPress plugin Greenhouse Portal SSO scored84%from 54 tests.

About plugin

  • Plugin page: greenhouse-portal...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Mar 23, 2021
  • Latest release: Mar 23, 2021
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: ghmeh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /370 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.81ms] Passed 4 tests

Server-side resources used by Greenhouse Portal SSO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.81 ▼1.82
Dashboard /wp-admin3.32 ▼0.0347.39 ▼15.03
Posts /wp-admin/edit.php3.37 ▲0.0148.30 ▼3.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.37 ▼14.82
Media Library /wp-admin/upload.php3.24 ▲0.0153.52 ▲14.79

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Greenhouse Portal SSO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.001.71 ▼0.0241.49 ▼0.39
Dashboard /wp-admin2,195 ▲185.62 ▼0.0794.16 ▼0.1342.68 ▲4.64
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0134.96 ▼6.9333.28 ▼5.04
Add New Post /wp-admin/post-new.php1,547 ▲723.17 ▲4.70644.87 ▲21.3555.96 ▲9.20
Media Library /wp-admin/upload.php1,394 ▼64.12 ▼0.05119.92 ▲12.4540.66 ▼9.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/greenhouse-portal-sso/includes/gh-portal-sso-option-settings.php:68

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: greenhouse, login, sso, portal, security...

greenhouse-portal-sso/gh-portal-sso.php 92% from 13 tests

The main file in "Greenhouse Portal SSO" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("greenhouse-portal-sso.php" instead of "gh-portal-sso.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 plugin364 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4124395324
Markdown224040

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.25
▷ Minimum class complexity4.00
▷ Maximum class complexity17.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods34
▷ Static methods514.71%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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