84% greenhouse-job-board

Code Review | Greenhouse Job Board

WordPress plugin Greenhouse Job Board scored84%from 54 tests.

About plugin

  • Plugin page: greenhouse-job-board
  • Plugin version: 2.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 20, 2015
  • Latest release: Apr 3, 2018
  • Number of updates: 70
  • Update frequency: every 15.9 days
  • Top authors: brownbagmarketing (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /8,517 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.21MB] [CPU: ▼1.79ms] Passed 4 tests

This is a short check of server-side resources used by Greenhouse Job Board
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2038.68 ▼4.02
Dashboard /wp-admin3.51 ▲0.2145.77 ▼9.71
Posts /wp-admin/edit.php3.62 ▲0.2748.59 ▲4.89
Add New Post /wp-admin/post-new.php6.11 ▲0.2292.71 ▲7.51
Media Library /wp-admin/upload.php3.43 ▲0.2136.00 ▲1.69
Greenhouse /wp-admin/options-general.php?page=greenhouse_job_board3.3830.79

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Greenhouse Job Board
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7613.19 ▼1.421.80 ▼0.2942.80 ▼8.52
Dashboard /wp-admin2,214 ▲234.88 ▼0.93111.43 ▲10.1142.29 ▲3.14
Posts /wp-admin/edit.php2,097 ▲52.01 ▲0.0140.07 ▲3.4935.79 ▲0.54
Add New Post /wp-admin/post-new.php1,521 ▼1423.40 ▼0.02595.37 ▼103.0452.46 ▼4.37
Media Library /wp-admin/upload.php1,399 ▲114.25 ▲0.0598.14 ▼10.2743.04 ▼3.87
Greenhouse /wp-admin/options-general.php?page=greenhouse_job_board1,2842.0725.1428.36

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=greenhouse_job_board
    • > Notice in wp-content/plugins/greenhouse-job-board/public/partials/greenhouse-job-board-public-display.php+532
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: Please specify the plugin name on the first line ( === greenhouse-job-board === )
You can take inspiration from this readme.txt

greenhouse-job-board/greenhouse-job-board.php Passed 13 tests

The main PHP file in "Greenhouse Job Board" ver. 2.7.3 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Pull a job board from greenhouse.io via API calls.

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 plugin5,271 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47075403,746
PHP133746801,448
CSS261077

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity76.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected