68% screening-questions-for-wp-job-manager

Code Review | Screening Questions For WP Job Manager

WordPress plugin Screening Questions For WP Job Manager scored68%from 54 tests.

About plugin

  • Plugin page: screening-questio...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5.1
  • WordPress version: 6.3.1
  • First release: May 16, 2018
  • Latest release: Sep 12, 2020
  • Number of updates: 13
  • Update frequency: every 66.4 days
  • Top authors: saurabhd (76.92%)shamimmoeen (23.08%)wpdrift (15.38%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,830 total downloads

Benchmarks

Plugin footprint 65% 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.45ms] Passed 4 tests

An overview of server-side resources used by Screening Questions For WP Job Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0439.76 ▼0.71
Dashboard /wp-admin3.34 ▲0.0446.96 ▼4.75
Posts /wp-admin/edit.php3.39 ▲0.0350.23 ▲1.32
Add New Post /wp-admin/post-new.php5.92 ▲0.04102.29 ▲14.67
Media Library /wp-admin/upload.php3.26 ▲0.0336.35 ▼1.67

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 31 new files
Database: 2 new tables, 6 new options
New tables
wp_sq_questions
wp_sq_answers
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Screening Questions For WP Job Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲20213.60 ▼0.6510.08 ▲8.1438.95 ▼5.11
Dashboard /wp-admin2,232 ▲445.84 ▲0.77108.24 ▼7.4339.36 ▼1.86
Posts /wp-admin/edit.php2,114 ▲252.04 ▲0.0439.54 ▲0.8335.34 ▲1.76
Add New Post /wp-admin/post-new.php1,556 ▲2322.97 ▼0.18567.50 ▼121.7453.30 ▼4.47
Media Library /wp-admin/upload.php1,414 ▲294.23 ▲0.0797.55 ▼2.4441.68 ▼1.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_sq_questions
    • wp_sq_answers
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/screening-questions-for-wp-job-manager/templates/wpjmsq-popup.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/screening-questions-for-wp-job-manager/templates/admin/meta-box/application-answers.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/screening-questions-for-wp-job-manager/templates/admin/list-table/screening-questions-single.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/screening-questions-for-wp-job-manager/templates/admin/meta-box/job-questions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/screening-questions-for-wp-job-manager/templates/admin/list-table/screening-questions-new.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/screening-questions-for-wp-job-manager/templates/job-apply.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/screening-questions-for-wp-job-manager/templates/post-job.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/screening-questions-for-wp-job-manager/templates/admin/list-table/screening-questions-list.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/screening-questions-for-wp-job-manager/templates/admin/list-table/screening-questions-edit.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Requires php: The plugin version is formatted incorrectly
You can look at the official readme.txt

screening-questions-for-wp-job-manager/screening-questions-for-wp-job-manager.php Passed 13 tests

The primary PHP file in "Screening Questions For WP Job Manager" version 1.0.4 is used by WordPress to initiate all plugin functionality
46 characters long description:
Screening Questions Add-on for WP Job Manager.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,190 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP21266319908
JavaScript33916124
CSS215088
Markdown124044
JSON10026

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.50
▷ Minimum class complexity2.00
▷ Maximum class complexity30.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions1487.50%
▷ Anonymous functions212.50%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin