77% recruitology-my-job-board

Code Review | Recruitology My Job Board

WordPress plugin Recruitology My Job Board scored77%from 54 tests.

About plugin

  • Plugin page: recruitology-my-j...
  • Plugin version: 0.9.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Oct 13, 2021
  • Latest release: Jun 7, 2023
  • Number of updates: 13
  • Update frequency: every 46.9 days
  • Top authors: recruitology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /488 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.26ms] Passed 4 tests

This is a short check of server-side resources used by Recruitology My Job Board
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.68 ▼2.49
Dashboard /wp-admin3.38 ▲0.0848.11 ▼4.88
Posts /wp-admin/edit.php3.49 ▲0.1450.76 ▲1.78
Add New Post /wp-admin/post-new.php5.98 ▲0.1093.60 ▼11.86
Media Library /wp-admin/upload.php3.30 ▲0.0834.92 ▼1.82

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Recruitology My Job Board
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲18913.71 ▼0.6610.42 ▲8.3943.41 ▼1.45
Dashboard /wp-admin2,222 ▲345.81 ▲0.95103.18 ▼0.8440.96 ▼3.23
Posts /wp-admin/edit.php2,105 ▲192.03 ▲0.0238.76 ▲2.5735.23 ▲0.78
Add New Post /wp-admin/post-new.php1,528 ▼523.24 ▼0.05582.14 ▼62.5354.36 ▼1.53
Media Library /wp-admin/upload.php1,398 ▲74.20 ▲0.0197.19 ▼1.0939.68 ▼3.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/recruitology-my-job-board/public/partials/rc-wp-job-board-public-display.php
    • > /wp-content/plugins/recruitology-my-job-board/admin/partials/_header.php
    • > /wp-content/plugins/recruitology-my-job-board/admin/partials/_footer.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/recruitology-my-job-board/admin/partials/_home_tab.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/recruitology-my-job-board/admin/partials/rc-wp-job-board-admin-dashboard.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/recruitology-my-job-board/admin/partials/rc-wp-job-board-admin-start.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/recruitology-my-job-board/admin/partials/_my_job_board_tab.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recruitology-my-job-board/admin/partials/_customize_tab.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/recruitology-my-job-board/admin/partials/_nav_tabs.php:14

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

readme.txt Passed 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
9 plugin tags: ats, job manager, job listing, careers page, jobs...

recruitology-my-job-board/rc-wp-job-board.php 77% from 13 tests

The main file in "Recruitology My Job Board" v. 0.9.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("recruitology-my-job-board.php" instead of "rc-wp-job-board.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 336 characters long)

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
There were no executable files found in this plugin5,082 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
CSS6494103,258
PHP19392506899
Sass910020881
JavaScript2322744

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity2.57
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods39
▷ Static methods37.69%
▷ Public methods2871.79%
▷ Protected methods00.00%
▷ Private methods1128.21%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 1.77MB with 0.91MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/fa-home@2x.png2.45KB1.28KB▼ 47.81%
admin/images/job-board-page-preview.png1,002.08KB291.92KB▼ 70.87%
admin/images/basic_job_listings_module.png68.04KB29.69KB▼ 56.36%
admin/images/fa-user-edit.png1.22KB0.80KB▼ 34.32%
admin/images/fa-briefcase.png0.69KB0.36KB▼ 47.80%