78% rz-job-application-form

Code Review | rz Job Application form

WordPress plugin rz Job Application formscored78%from 54 tests.

About plugin

  • Plugin page: rz-job-applicatio...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2020
  • Latest release: Jul 7, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: rezwanshiblu1952 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /544 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.27ms] Passed 4 tests

Server-side resources used by rz Job Application form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.41 ▼2.31
Dashboard /wp-admin3.38 ▲0.0349.08 ▼19.90
Posts /wp-admin/edit.php3.43 ▲0.0747.52 ▲4.07
Add New Post /wp-admin/post-new.php6.02 ▲0.1382.42 ▼14.79
Media Library /wp-admin/upload.php3.30 ▲0.0732.38 ▼0.09
All Job Applications /wp-admin/edit.php?post_type=jobapplication3.3435.55
Employee Type /wp-admin/edit-tags.php?taxonomy=employee_type&post_type=jobapplication3.2934.07
Add New /wp-admin/post-new.php?post_type=jobapplication6.0080.90
Documentation /wp-admin/edit.php?post_type=jobapplication&page=documentation3.2728.63

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by rz Job Application form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲19713.82 ▼0.587.36 ▲5.5943.97 ▲2.41
Dashboard /wp-admin2,259 ▲715.84 ▼0.0799.20 ▼4.1840.14 ▲0.12
Posts /wp-admin/edit.php2,142 ▲532.02 ▲0.0241.88 ▲8.1835.64 ▼0.49
Add New Post /wp-admin/post-new.php1,561 ▲2823.35 ▲0.40670.93 ▲16.5160.59 ▲5.79
Media Library /wp-admin/upload.php1,444 ▲564.15 ▼0.0899.04 ▼2.1843.36 ▼3.70
All Job Applications /wp-admin/edit.php?post_type=jobapplication1,1471.9931.5429.74
Employee Type /wp-admin/edit-tags.php?taxonomy=employee_type&post_type=jobapplication1,3122.3128.6828.45
Add New /wp-admin/post-new.php?post_type=jobapplication1,52716.92882.5132.71
Documentation /wp-admin/edit.php?post_type=jobapplication&page=documentation8052.0323.7928.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/rz-job-application-form/parts/notices/notice.php
    • > /wp-content/plugins/rz-job-application-form/rz-job-application-form.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rz-job-application-form/documentation.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function piklist() in wp-content/plugins/rz-job-application-form/parts/meta-boxes/jobs-meta.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function piklist() in wp-content/plugins/rz-job-application-form/parts/forms/jobapplication.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rz-job-application-form/jobapplication-cpt-page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rz-job-application-form/cpt-templates/single-jobapplication.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === rz Job Application form=== )
  • Screenshots: Please add descriptions for these screenshots #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in rz-job-application-form/assets to your readme.txt
Please take inspiration from this readme.txt

rz-job-application-form/rz-job-application-form.php 92% from 13 tests

The primary PHP file in "rz Job Application form" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected291 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP910073289
CSS1061
JavaScript1061

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin