78% senseios-careers

Code Review | SenseiOS Careers

WordPress plugin SenseiOS Careers scored 78% from 54 tests.

About plugin

  • Plugin page: senseios-careers
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Apr 15, 2016
  • Latest release: Dec 16, 2016
  • Number of updates: 9
  • Update frequency: every 27.3 days
  • Top authors: atorreno (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,193 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▲1.74ms] Passed 4 tests

This is a short check of server-side resources used by SenseiOS Careers
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.65 ▼0.17
Dashboard /wp-admin3.35 ▲0.0451.81 ▲1.55
Posts /wp-admin/edit.php3.40 ▲0.0458.20 ▲2.49
Add New Post /wp-admin/post-new.php5.93 ▲0.05111.86 ▲15.65
Media Library /wp-admin/upload.php3.27 ▲0.0437.16 ▲3.09
All Careers /wp-admin/edit.php?post_type=career3.3343.09
Locations /wp-admin/edit-tags.php?taxonomy=sensei_locations&post_type=career3.2737.29
Add New Career /wp-admin/post-new.php?post_type=career3.3751.85
Import Careers /wp-admin/tools.php?page=sensei_import_menu3.2138.21
SenseiOS Careers /wp-admin/options-general.php?page=sensei_settings_menu3.2438.24
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=career3.2742.86

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
category_children

Browser metrics Passed 4 tests

SenseiOS Careers: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲8213.64 ▼1.141.97 ▲0.2441.59 ▼2.60
Dashboard /wp-admin2,249 ▲465.87 ▲0.04106.74 ▲2.7141.00 ▼0.62
Posts /wp-admin/edit.php2,135 ▲431.99 ▼0.0539.98 ▼2.8736.43 ▼2.35
Add New Post /wp-admin/post-new.php1,574 ▲4023.35 ▲0.07615.15 ▼16.9653.92 ▼0.09
Media Library /wp-admin/upload.php1,425 ▲404.21 ▼0.0196.98 ▼5.7745.98 ▲1.39
All Careers /wp-admin/edit.php?post_type=career1,1511.9533.1431.51
Locations /wp-admin/edit-tags.php?taxonomy=sensei_locations&post_type=career1,2742.1427.1129.97
Add New Career /wp-admin/post-new.php?post_type=career2,4967.82181.1772.74
Import Careers /wp-admin/tools.php?page=sensei_import_menu8522.1428.6430.03
SenseiOS Careers /wp-admin/options-general.php?page=sensei_settings_menu8742.0428.0734.36
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=career1,4892.1427.0338.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • category_children
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=career
    • > Notice in wp-content/plugins/senseios-careers/senseios.php+214
    Undefined index: JobDescriptionID
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=career
    • > Notice in wp-content/plugins/senseios-careers/senseios.php+219
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/post-new.php?post_type=career
    • > Notice in wp-content/plugins/senseios-careers/senseios.php+215
    Undefined index: IsHiring
    • > GET request to /wp-admin/post-new.php?post_type=career
    • > Notice in wp-content/plugins/senseios-careers/senseios.php+216
    Undefined index: JobCity
    • > GET request to /wp-admin/post-new.php?post_type=career
    • > Notice in wp-content/plugins/senseios-careers/senseios.php+217
    Undefined index: JobTypeName
    • > GET request to /wp-admin/post-new.php?post_type=career
    • > Notice in wp-content/plugins/senseios-careers/senseios.php+218
    Undefined index: JobTypeCategoryName
    • > GET request to /wp-admin/post-new.php?post_type=career
    • > Notice in wp-content/plugins/senseios-careers/senseios.php+219
    Undefined index: LocationName
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=sensei_import_menu
    • > Notice in wp-content/plugins/senseios-careers/senseios-job-importer.php+285
    Trying to get property 'added' of non-object
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=sensei_import_menu
    • > Warning in wp-content/plugins/senseios-careers/senseios-job-importer.php+330
    count(): Parameter must be an array or an object that implements Countable
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=sensei_import_menu
    • > Notice in wp-content/plugins/senseios-careers/senseios-job-importer.php+294
    Trying to get property 'updated' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=sensei_import_menu
    • > Notice in wp-content/plugins/senseios-careers/senseios-job-importer.php+303
    Trying to get property 'ignored' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=sensei_import_menu
    • > Notice in wp-content/plugins/senseios-careers/senseios-job-importer.php+312
    Trying to get property 'noChange' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=sensei_import_menu
    • > Notice in wp-content/plugins/senseios-careers/senseios-job-importer.php+321
    Trying to get property 'deleted' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=sensei_import_menu
    • > Notice in wp-content/plugins/senseios-careers/senseios-job-importer.php+330
    Trying to get property 'error' of non-object

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
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/senseios-careers/senseios.php
    • > /wp-content/plugins/senseios-careers/senseios-job-importer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: sensei, careers, labs, candidate360

senseios-careers/senseios.php 92% from 13 tests

This is the main PHP file of "SenseiOS Careers" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("senseios-careers.php" instead of "senseios.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected735 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2113111581
CSS215095
JavaScript1121159

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.25
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods529.41%
▷ Protected methods00.00%
▷ Private methods1270.59%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin