84% applicantpro

Code Review | ApplicantPro

WordPress plugin ApplicantPro scored 84% from 54 tests.

About plugin

  • Plugin page: applicantpro
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 19, 2020
  • Latest release: Jan 10, 2023
  • Number of updates: 30
  • Update frequency: every 33.2 days
  • Top authors: careersitepro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,730 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by ApplicantPro
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0645.00 ▲4.00
Dashboard /wp-admin3.34 ▲0.0451.98 ▲3.73
Posts /wp-admin/edit.php3.38 ▲0.0348.34 ▲2.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0694.81 ▲0.57
Media Library /wp-admin/upload.php3.27 ▲0.0440.32 ▲5.59
ApplicantPro /wp-admin/admin.php?page=apppro_home3.2837.70
Settings /wp-admin/admin.php?page=apppro_settings3.3545.01

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
show_job_location
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for ApplicantPro
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.26 ▼1.101.60 ▼0.0737.11 ▼12.02
Dashboard /wp-admin2,235 ▲475.89 ▼0.01100.09 ▼7.8038.77 ▼6.23
Posts /wp-admin/edit.php2,118 ▲292.00 ▲0.0036.88 ▼3.1532.57 ▼2.48
Add New Post /wp-admin/post-new.php1,557 ▲1523.37 ▲5.06632.20 ▼0.6655.42 ▲1.25
Media Library /wp-admin/upload.php1,414 ▲234.24 ▲0.0594.99 ▼7.4844.72 ▼0.74
ApplicantPro /wp-admin/admin.php?page=apppro_home8761.9627.8024.72
Settings /wp-admin/admin.php?page=apppro_settings2,2302.9185.8133.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • show_job_location
    • widget_theysaidso_widget

Smoke tests 75% 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 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
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/applicantpro/public/render_shortcode.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/applicantpro/admin/render_setting_page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/applicantpro/admin/render_home_page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/applicantpro/public/render_listing_page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/applicantpro/public/render_detail_page.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% 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
3 plugin tags: careers, openings, jobs

applicantpro/applicantpro.php 92% from 13 tests

The main PHP script in "ApplicantPro" version 1.3.8 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 detected10,479 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP102231755,428
SVG141314,121
CSS613128854
JavaScript218576

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.50
▷ Minimum class complexity3.00
▷ Maximum class complexity30.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants2
▷ Global constants2100.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
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/applicant-list.png3.48KB1.20KB▼ 65.59%
public/images/applicant-pro.png5.53KB1.04KB▼ 81.24%
public/images/isolved.png5.12KB1.71KB▼ 66.58%
assets/icon-128x128.png2.20KB0.98KB▼ 55.61%
assets/banner-772x250.png7.44KB3.52KB▼ 52.68%