10% bp-job-manager

Code Review | Wbcom Designs - BuddyPress Job Manager

WordPress plugin Wbcom Designs - BuddyPress Job Manager scored 10% from 54 tests.

About plugin

  • Plugin page: bp-job-manager
  • Plugin version: 2.6.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.0
  • WordPress version: 6.3.1
  • First release: Jun 16, 2017
  • Latest release: Aug 17, 2023
  • Number of updates: 34
  • Update frequency: every 66.3 days
  • Top authors: wbcomdesigns (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 19,152 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

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

A check of server-side resources used by Wbcom Designs - BuddyPress Job Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.38 ▼6.09
Dashboard /wp-admin3.31 ▲0.0045.30 ▼4.90
Posts /wp-admin/edit.php3.36 ▲0.0046.66 ▼1.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.90 ▼11.56
Media Library /wp-admin/upload.php3.23 ▲0.0037.60 ▲5.54

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wbcom Designs - BuddyPress Job Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.59 ▼1.161.81 ▼0.1836.75 ▼7.73
Dashboard /wp-admin2,206 ▲184.83 ▼0.0199.64 ▼11.1238.57 ▼0.34
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0135.35 ▼5.4230.53 ▼6.35
Add New Post /wp-admin/post-new.php1,513 ▼2017.73 ▼5.53613.95 ▼71.6453.07 ▼1.48
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.1298.39 ▼0.9440.50 ▼3.64

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • bpjm_job_application_pgid
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-job-manager/admin/wbcom/templates/wbcom-plugins-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-job-manager/admin/wbcom/templates/wbcom-license-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/bp-job-manager/admin/wbcom/templates/wbcom-support-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bp-job-manager/admin/bp-job-manager-admin-feedback.php:311
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bp-job-manager/admin/class-bp-job-manager-admin-feedback.php:311

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

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (screenshot-1), #2 (screenshot-2), #3 (screenshot-3), #4 (screenshot-4), #5 (screenshot-5), #6 (screenshot-6), #7 (screenshot-7 : Latest or selected resumes at your BuddyPress Profile), #8 (screenshot-8 : You can find options for member's resume fields at Settings >> Profile Privacy)
You can take inspiration from this readme.txt

bp-job-manager/bp-job-manager.php Passed 13 tests

The main PHP file in "Wbcom Designs - BuddyPress Job Manager" ver. 2.6.6 adds more information about the plugin and also serves as the entry point for this plugin
137 characters long description:
This plugin integrates WordPress Job Manager with BuddyPress. Allows the members to post jobs, and others to apply for those posted jobs.

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
There were no executable files found in this plugin11,506 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP254601,5183,592
SVG1002,671
JSON2002,436
CSS4313671,962
PO File1181247534
JavaScript52418295
YAML24116

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity28.00
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods119
▷ Static methods32.52%
▷ Public methods11495.80%
▷ Protected methods00.00%
▷ Private methods54.20%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 1.11MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png138.38KB138.67KB0.00%
screenshot-5.png259.77KB260.38KB0.00%
admin/wbcom/assets/imgs/wbcom-offer-notice.png67.64KB32.40KB▼ 52.11%
screenshot-3.png252.56KB253.22KB0.00%
admin/wbcom/assets/imgs/logowbcom.png10.12KB3.87KB▼ 61.72%