78% applicant-tracking-system

Code Review | Job Applicant Tracking & Staff Directory by SwiftCloud

WordPress plugin Job Applicant Tracking & Staff Directory by SwiftCloud scored78%from 54 tests.

About plugin

  • Plugin page: applicant-trackin...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Jul 12, 2021
  • Number of updates: 19
  • Update frequency: every 82.7 days
  • Top authors: SwiftCloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.50MB] [CPU: ▲20.75ms] Passed 4 tests

Analyzing server-side resources used by Job Applicant Tracking & Staff Directory by SwiftCloud
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4953.22 ▲11.49
Dashboard /wp-admin3.82 ▲0.5266.49 ▲18.41
Posts /wp-admin/edit.php3.90 ▲0.5473.86 ▲29.58
Add New Post /wp-admin/post-new.php6.40 ▲0.52115.32 ▲23.51
Media Library /wp-admin/upload.php3.72 ▲0.4965.28 ▲33.16
Form Submission /wp-admin/admin.php?page=swift_staff_admin_display_log3.6769.43
Settings /wp-admin/admin.php?page=swift-staff3.7658.28
Tags /wp-admin/edit-tags.php?taxonomy=swift_jobs_tag&post_type=swift_jobs3.7154.49
Locations /wp-admin/edit-tags.php?taxonomy=swiftstaff_location_tag&post_type=swift_jobs3.7153.24
Categories /wp-admin/edit-tags.php?taxonomy=swift_jobs_category&post_type=swift_jobs3.7766.43
Log Detail /wp-admin/admin.php?page=swift_staff_admin_display_log_details3.6852.19
Add Job /wp-admin/post-new.php?post_type=swift_jobs3.9475.73
Updates & Tips /wp-admin/admin.php?page=swift_staff_dashboard3.80281.82
All Jobs /wp-admin/edit.php?post_type=swift_jobs3.7557.29

Server storage [IO: ▲4.19MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
swift_staff_version
swift_jobs_category_children
widget_swift_staff_job_search
widget_recent-comments
can_compress_scripts
widget_swift_staff_latest_jobs

Browser metrics Passed 4 tests

Job Applicant Tracking & Staff Directory by SwiftCloud: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲20013.64 ▼0.795.52 ▲3.7928.32 ▼20.35
Dashboard /wp-admin2,322 ▲1345.85 ▲0.97112.94 ▲4.6176.57 ▲30.60
Posts /wp-admin/edit.php2,220 ▲1342.10 ▲0.0940.23 ▲5.3441.61 ▲6.63
Add New Post /wp-admin/post-new.php1,775 ▲25622.57 ▼0.69716.34 ▲65.5738.15 ▼14.26
Media Library /wp-admin/upload.php1,519 ▲1314.29 ▲0.0796.61 ▼2.9490.23 ▲46.41
Form Submission /wp-admin/admin.php?page=swift_staff_admin_display_log1,0192.3427.5436.94
Settings /wp-admin/admin.php?page=swift-staff1,6013.5849.0871.92
Tags /wp-admin/edit-tags.php?taxonomy=swift_jobs_tag&post_type=swift_jobs1,3682.4127.9340.81
Locations /wp-admin/edit-tags.php?taxonomy=swiftstaff_location_tag&post_type=swift_jobs1,3952.2928.8039.48
Categories /wp-admin/edit-tags.php?taxonomy=swift_jobs_category&post_type=swift_jobs2,5802.4231.3646.75
Log Detail /wp-admin/admin.php?page=swift_staff_admin_display_log_details9222.1829.2432.31
Add Job /wp-admin/post-new.php?post_type=swift_jobs3,0997.99175.53136.28
Updates & Tips /wp-admin/admin.php?page=swift_staff_dashboard1,0092.4226.3035.52
All Jobs /wp-admin/edit.php?post_type=swift_jobs1,1922.0233.2843.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_swift_staff_job_search
    • widget_swift_staff_latest_jobs
    • swift_jobs_category_children

Smoke tests 50% 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
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/applicant-tracking-system/admin/swift-staff-admin.php:37
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/applicant-tracking-system/admin/swift-staff-admin.php on line 6
    • > PHP Warning
      Use of undefined constant SWIFTSTAFF_VERSION - assumed 'SWIFTSTAFF_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/applicant-tracking-system/admin/swift-staff-admin.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/applicant-tracking-system/rss-jobs-feed.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/applicant-tracking-system/public/section/swift-staff-function.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/applicant-tracking-system/public/section/archive-swift_jobs.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/applicant-tracking-system/admin/section/swift-staff-dashboard.php:169
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/applicant-tracking-system/admin/section/swift-staff-widget-latest-jobs.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/applicant-tracking-system/public/section/single-swift_staffs.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/applicant-tracking-system/public/section/archive-swift_staffs.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=swift_staff_admin_display_log_details
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).timeago is not a function" "TypeError: jQuery(...).timeago is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=swift_staff_admin_display_log_details:176:44)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=swift_staff_admin_display_log_details
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).timeago is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: staff, staff directory, job applicant tracking system, jobs

applicant-tracking-system/swift-staff.php 85% from 13 tests

This is the main PHP file of "Job Applicant Tracking & Staff Directory by SwiftCloud" version 2.1, 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("applicant-tracking-system.php" instead of "swift-staff.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected16,749 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
SVG40012,223
PHP253233242,457
CSS840541,362
JavaScript9256205707

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.00
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions49
▷ Named functions4693.88%
▷ Anonymous functions36.12%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/plus.png1.01KB0.91KB▼ 10.43%
admin/images/delete.png0.97KB0.93KB▼ 4.72%
admin/images/swiftcloud.png1.96KB1.00KB▼ 49.18%