74% wp-jobs

Code Review | WP Jobs

WordPress plugin WP Jobs scored74%from 54 tests.

About plugin

  • Plugin page: wp-jobs
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2013
  • Latest release: Sep 14, 2020
  • Number of updates: 24
  • Update frequency: every 103.0 days
  • Top authors: hozyali (66.67%)99robots (37.5%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /11,666 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.67ms] Passed 4 tests

An overview of server-side resources used by WP Jobs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1344.80 ▼5.41
Dashboard /wp-admin3.42 ▲0.1152.00 ▼3.35
Posts /wp-admin/edit.php3.53 ▲0.1752.89 ▲0.68
Add New Post /wp-admin/post-new.php6.02 ▲0.13103.09 ▲3.94
Media Library /wp-admin/upload.php3.34 ▲0.1139.05 ▲1.42
Job Applications /wp-admin/edit.php?post_type=job&page=WPJobsApps3.3236.38
Add New /wp-admin/post-new.php?post_type=job3.5060.20
WP Jobs /wp-admin/admin.php?page=WPJobsHome3.3234.26
Settings /wp-admin/admin.php?page=JobSettings3.3133.43
All Jobs /wp-admin/edit.php?post_type=job3.3838.16
Department /wp-admin/edit-tags.php?taxonomy=department&post_type=job3.3336.27

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 11 new options
New tables
wp_app_user_info
New WordPress options
widget_recent-posts
can_compress_scripts
wp_jobs_list_sidebar
wp_jobs_listing
wpjobs_wg_bg_color
wp_jobs_currency
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
wp_jobs_detail_sidebar
...

Browser metrics Passed 4 tests

WP Jobs: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲21213.66 ▼0.627.95 ▲6.0755.65 ▲13.29
Dashboard /wp-admin2,273 ▲884.89 ▼0.95104.55 ▼10.5138.49 ▼5.04
Posts /wp-admin/edit.php2,156 ▲672.04 ▲0.0035.55 ▼2.0531.44 ▼2.75
Add New Post /wp-admin/post-new.php1,584 ▲6523.49 ▲0.34649.98 ▼8.8752.58 ▼1.30
Media Library /wp-admin/upload.php1,455 ▲644.17 ▼0.03109.03 ▲0.7949.05 ▲2.93
Job Applications /wp-admin/edit.php?post_type=job&page=WPJobsApps8731.6725.2232.55
Add New /wp-admin/post-new.php?post_type=job3,1379.14192.3071.39
WP Jobs /wp-admin/admin.php?page=WPJobsHome1,0182.0723.8046.64
Settings /wp-admin/admin.php?page=JobSettings8971.6723.7727.30
All Jobs /wp-admin/edit.php?post_type=job1,1761.9532.7332.00
Department /wp-admin/edit-tags.php?taxonomy=department&post_type=job1,3262.1526.9828.30

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
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_app_user_info
  • This plugin does not fully uninstall, leaving 11 options in the database
    • wp_jobs_detail_sidebar
    • wp_jobs_currency
    • wp_jobs_listing
    • theysaidso_admin_options
    • wp_jobs_list_sidebar
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-jobs/enqueue-localize-js.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-jobs/template-files/applicationform.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wp-jobs/wp-jobs.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_localize_script() in wp-content/plugins/wp-jobs/wp_localize_script.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-jobs/template-files/joblisting.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-jobs/wpjobs_settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: wordpress job listing plugin, wordpress jobs, resume cv attachment, wp jobs

wp-jobs/wp-jobs.php 92% from 13 tests

"WP Jobs" version 2.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin2,588 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35513331,419
PHP811264947
CSS41019222

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/period.png9.69KB3.82KB▼ 60.60%
img/designation.png5.29KB3.35KB▼ 36.74%
img/glyphicons-halflings-white.png8.57KB9.20KB0.00%
img/date.png7.15KB3.45KB▼ 51.69%
img/salary.png3.28KB1.59KB▼ 51.39%