74% jemployee

Code Review | Job Board Manager for WordPress

WordPress plugin Job Board Manager for WordPress scored74%from 54 tests.

About plugin

  • Plugin page: jemployee
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 24, 2019
  • Latest release: Feb 25, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: CodePassenger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,342 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼7.03ms] Passed 4 tests

Server-side resources used by Job Board Manager for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2445.13 ▲3.13
Dashboard /wp-admin3.46 ▲0.1648.16 ▼7.68
Posts /wp-admin/edit.php3.52 ▲0.1651.56 ▼1.08
Add New Post /wp-admin/post-new.php6.05 ▲0.1692.26 ▼18.47
Media Library /wp-admin/upload.php3.39 ▲0.1639.39 ▼0.88
Job Category /wp-admin/edit-tags.php?taxonomy=jy_category3.3835.76
Job /wp-admin/edit.php?post_type=jy_job3.4337.16
Jemployee /wp-admin/admin.php?page=job_yard3.3635.10
Job Seeker /wp-admin/edit.php?post_type=jy_seeker3.4334.52
Company /wp-admin/edit.php?post_type=jy_company3.4336.72
Job Skill /wp-admin/edit-tags.php?taxonomy=jy_skill3.3835.50
job Location /wp-admin/edit-tags.php?taxonomy=jy_location3.3835.80

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 99 new files
Database: 2 new tables, 6 new options
New tables
wp_jy_apply
wp_jy_bookmark
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Job Board Manager for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,341 ▲59518.01 ▲3.6262.39 ▲60.4846.22 ▲4.32
Dashboard /wp-admin2,280 ▲745.84 ▼0.0695.87 ▼9.5137.95 ▼13.45
Posts /wp-admin/edit.php2,153 ▲532.03 ▼0.0339.72 ▼0.3636.02 ▼2.91
Add New Post /wp-admin/post-new.php1,591 ▲4623.11 ▼0.20682.13 ▲6.4960.63 ▲1.09
Media Library /wp-admin/upload.php1,450 ▲534.11 ▼0.0797.21 ▼6.2648.41 ▲0.90
Job Category /wp-admin/edit-tags.php?taxonomy=jy_category1,3302.1426.7730.76
Job /wp-admin/edit.php?post_type=jy_job1,1371.9630.3627.06
Jemployee /wp-admin/admin.php?page=job_yard9122.0224.9728.60
Job Seeker /wp-admin/edit.php?post_type=jy_seeker1,1371.9930.3130.38
Company /wp-admin/edit.php?post_type=jy_company1,1371.9430.4632.72
Job Skill /wp-admin/edit-tags.php?taxonomy=jy_skill1,3272.1427.5130.97
job Location /wp-admin/edit-tags.php?taxonomy=jy_location1,3332.1726.3532.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 2 tables
    • wp_jy_apply
    • wp_jy_bookmark
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/jemployee/template-part/job-list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/jemployee/template-part/employer/edit-profile.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/jemployee/template-part/resume.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/jemployee/template-part/jemployee.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/jemployee/template-part/employer/edit-job.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/jemployee/template-part/post-template/company.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/jemployee/template-part/job-list-map.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/jemployee/template-part/edit-profile.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jemployee/template-part/jy-markup.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jemployee/inc/jy-custom-post.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: job manager, job location, map search, job listing, job posting...

jemployee/jemployee.php Passed 13 tests

The entry point to "Job Board Manager for WordPress" version 1.0 is a PHP file that has certain tags in its header comment area
32 characters long description:
Job Manager Plugin for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin32,571 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
CSS191,44525812,516
JavaScript213,3103,77210,379
PHP27229344,983
SVG60124,693

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity31.38
▷ Minimum class complexity3.00
▷ Maximum class complexity104.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods98
▷ Static methods3535.71%
▷ Public methods9798.98%
▷ Protected methods00.00%
▷ Private methods11.02%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/marker.png5.10KB1.31KB▼ 74.25%
assets/img/placeholder.png2.75KB2.92KB0.00%