62% job-application-form

Code Review | Job Application Form

WordPress plugin Job Application Form scored62%from 54 tests.

About plugin

  • Plugin page: job-application-form
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Nov 24, 2021
  • Latest release: Feb 8, 2022
  • Number of updates: 6
  • Update frequency: every 12.8 days
  • Top authors: sgsoftwaresolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /566 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼9.22ms] Passed 4 tests

This is a short check of server-side resources used by Job Application Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1239.54 ▲5.28
Dashboard /wp-admin3.43 ▲0.0844.31 ▼19.14
Posts /wp-admin/edit.php3.54 ▲0.1846.99 ▼1.32
Add New Post /wp-admin/post-new.php6.03 ▲0.1480.27 ▼19.11
Media Library /wp-admin/upload.php3.35 ▲0.1235.75 ▲2.70
Add designation /wp-admin/admin.php?page=job-desgn-page3.3032.60
Job Application /wp-admin/admin.php?page=job-page3.3035.15

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: 2 new tables, 7 new options
New tables
wp_job_list
wp_job_designation
New WordPress options
jal_db_version
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Job Application Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲17113.72 ▼0.868.27 ▲6.4444.24 ▲1.39
Dashboard /wp-admin2,233 ▲565.56 ▼0.0683.47 ▼4.9137.75 ▼8.22
Posts /wp-admin/edit.php2,141 ▲412.00 ▲0.0141.04 ▲4.5635.52 ▼0.71
Add New Post /wp-admin/post-new.php1,559 ▲3323.48 ▲0.38680.41 ▲45.8556.55 ▼3.48
Media Library /wp-admin/upload.php1,441 ▲414.22 ▼0.01103.78 ▲8.3945.02 ▲1.72
Add designation /wp-admin/admin.php?page=job-desgn-page9842.0528.3129.67
Job Application /wp-admin/admin.php?page=job-page9871.6524.5227.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables were found after uninstall: 2 tables
    • wp_job_designation
    • wp_job_list
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • jal_db_version
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=job-page
    • > Notice in wp-content/plugins/job-application-form/includes/class-sg-job-application-form-functions.php+612
    Undefined variable: message

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/job-application-form/public/partials/sg-job-application-form-public-display.php
    • > /wp-content/plugins/job-application-form/admin/partials/sg-job-application-form-admin-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/job-application-form/includes/class-sg-job-application-form-functions.php:17

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)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === job-application-form === )
You can look at the official readme.txt

job-application-form/sg-job-application-form.php 77% from 13 tests

"Job Application Form" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("job-application-form.php" instead of "sg-job-application-form.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 191 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin585 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP13224715546
JavaScript355528
CSS31811

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods3988.64%
▷ Protected methods00.00%
▷ Private methods511.36%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected