84% bullhorn-oscp

Code Review | Bullhorn Career Portal WordPress Plugin

WordPress plugin Bullhorn Career Portal WordPress Plugin scored84%from 54 tests.

About plugin

  • Plugin page: bullhorn-oscp
  • Plugin version: 3.4.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9.1
  • WordPress version: 6.3.1
  • First release: Jun 20, 2018
  • Latest release: May 17, 2023
  • Number of updates: 30
  • Update frequency: every 59.7 days
  • Top authors: bullhornwordpress (66.67%)charlesabarnes (36.67%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /13,588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼2.37ms] Passed 4 tests

Analyzing server-side resources used by Bullhorn Career Portal WordPress Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.05 ▼5.47
Dashboard /wp-admin3.48 ▲0.1845.01 ▼3.24
Posts /wp-admin/edit.php3.59 ▲0.2450.73 ▲1.98
Add New Post /wp-admin/post-new.php6.06 ▲0.1886.39 ▼2.74
Media Library /wp-admin/upload.php3.40 ▲0.1834.73 ▲3.10
Career Portal /wp-admin/plugins.php?page=bullhorn-oscp3.5035.09

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 95 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Bullhorn Career Portal WordPress Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.23 ▼1.171.70 ▼0.0644.04 ▲0.46
Dashboard /wp-admin2,207 ▲195.83 ▲0.9393.74 ▼22.1839.64 ▼5.96
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0040.67 ▲5.6236.22 ▲0.61
Add New Post /wp-admin/post-new.php1,536 ▲2223.26 ▲5.65603.03 ▼78.2551.48 ▼9.76
Media Library /wp-admin/upload.php1,392 ▲44.26 ▲0.0596.06 ▼1.8241.41 ▼1.08
Career Portal /wp-admin/plugins.php?page=bullhorn-oscp1,1931.8425.6226.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bullhorn-oscp/wp-oscp.php:12

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 require attention:
  • Contributors: Contributors not specified
The official readme.txt is a good inspiration

bullhorn-oscp/wp-oscp.php 92% from 13 tests

This is the main PHP file of "Bullhorn Career Portal WordPress Plugin" version 3.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bullhorn-oscp.php" instead of "wp-oscp.php")

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
There were no executable files found in this plugin5,737 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
SVG14023,856
PHP17532766
JavaScript803,793533
JSON1000479
CSS314169
HTML11034

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity95.00
▷ Minimum class complexity95.00
▷ Maximum class complexity95.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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