83% jobs-from-recruitee

Code Review | Jobs from Recruitee

WordPress plugin Jobs from Recruitee scored83%from 54 tests.

About plugin

  • Plugin page: jobs-from-recruitee
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 19, 2021
  • Latest release: Oct 13, 2022
  • Number of updates: 9
  • Update frequency: every 39.9 days
  • Top authors: nightillusions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,048 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.21ms] Passed 4 tests

A check of server-side resources used by Jobs from Recruitee
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1140.46 ▼2.44
Dashboard /wp-admin3.40 ▲0.1054.24 ▲1.06
Posts /wp-admin/edit.php3.51 ▲0.1652.64 ▼0.26
Add New Post /wp-admin/post-new.php6.00 ▲0.1294.15 ▼11.21
Media Library /wp-admin/upload.php3.32 ▲0.1040.98 ▲4.90

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Jobs from Recruitee
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.43 ▼1.098.35 ▲6.3543.16 ▲2.67
Dashboard /wp-admin2,196 ▲195.62 ▲0.00106.64 ▲19.5240.41 ▼3.68
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0138.06 ▼3.5648.95 ▲8.14
Add New Post /wp-admin/post-new.php1,530 ▲223.28 ▲0.10644.24 ▲24.8355.89 ▲2.06
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.01103.09 ▼4.1743.63 ▼1.03

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jobs-from-recruitee/admin/RecruiteeAdmin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jobs-from-recruitee/includes/RecruiteePlugin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jobs-from-recruitee/admin/RecruiteeShortcodes.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

jobs-from-recruitee/recruitee-jobs.php 85% from 13 tests

"Jobs from Recruitee" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jobs-from-recruitee.php" instead of "recruitee-jobs.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected876 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11108116468
CSS1240180
PO File43232144
Markdown159084

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.44
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods40
▷ Static methods25.00%
▷ Public methods3485.00%
▷ Protected methods00.00%
▷ Private methods615.00%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There are no PNG files in this plugin