83% vk-google-job-posting-manager

Code Review | VK Google Job Posting Manager

WordPress plugin VK Google Job Posting Manager scored83%from 54 tests.

About plugin

  • Plugin page: vk-google-job-pos...
  • Plugin version: 1.2.15
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0.0
  • WordPress version: 6.3.1
  • First release: Apr 9, 2019
  • Latest release: Jul 6, 2022
  • Number of updates: 56
  • Update frequency: every 21.1 days
  • Top authors: vektor-inc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /20,972 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.35MB] [CPU: ▲0.80ms] Passed 4 tests

An overview of server-side resources used by VK Google Job Posting Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3247.33 ▼0.25
Dashboard /wp-admin3.70 ▲0.4056.04 ▲5.01
Posts /wp-admin/edit.php3.75 ▲0.3957.33 ▲9.08
Add New Post /wp-admin/post-new.php6.42 ▲0.5490.05 ▼8.63
Media Library /wp-admin/upload.php3.53 ▲0.3142.17 ▲7.08
Add New /wp-admin/post-new.php?post_type=job-posts6.41107.32
VK Google Job Posting Manager /wp-admin/options-general.php?page=vgjpm_settings3.7842.23
All Job posts /wp-admin/edit.php?post_type=job-posts3.6741.23

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
vkjpm_common_fields
vgjpm_create_jobpost_posttype
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for VK Google Job Posting Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,019 ▲27315.00 ▲0.551.93 ▼0.2144.22 ▲0.91
Dashboard /wp-admin2,395 ▲2076.61 ▲0.76137.06 ▲15.4840.75 ▼5.05
Posts /wp-admin/edit.php2,308 ▲2193.77 ▲1.7154.74 ▲15.9631.42 ▼5.65
Add New Post /wp-admin/post-new.php6,401 ▲4,85827.80 ▲9.48917.21 ▲258.4440.07 ▼20.14
Media Library /wp-admin/upload.php1,437 ▲524.23 ▲0.1792.98 ▼15.2647.16 ▲3.06
Add New /wp-admin/post-new.php?post_type=job-posts7,14319.48871.1666.80
VK Google Job Posting Manager /wp-admin/options-general.php?page=vgjpm_settings1,7693.2941.4378.84
All Job posts /wp-admin/edit.php?post_type=job-posts1,2833.6458.1029.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • vgjpm_create_jobpost_posttype
    • widget_recent-posts
    • vkjpm_common_fields
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-google-job-posting-manager/inc/custom-posttype-builder.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-google-job-posting-manager/inc/custom-field-builder/package/custom-field-builder.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-google-job-posting-manager/inc/custom-field-builder/package/custom-field-builder.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/vk-google-job-posting-manager/vendor/alcohol/iso4217/ISO4217Test.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/vk-google-job-posting-manager/vk-google-job-posting-manager.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/vk-google-job-posting-manager/vk-google-job-posting-manager.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

vk-google-job-posting-manager/vk-google-job-posting-manager.php 92% from 13 tests

Analyzing the main PHP file in "VK Google Job Posting Manager" version 1.2.15
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Success! There were no dangerous files found in this plugin3,874 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP214687773,274
Sass7152199
JavaScript52749167
SVG10184
JSON20072
Markdown221041
XML15025
Ruby1028
CSS5164

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity22.89
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods73
▷ Static methods3547.95%
▷ Public methods7095.89%
▷ Protected methods00.00%
▷ Private methods34.11%
Functions38
▷ Named functions3592.11%
▷ Anonymous functions37.89%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
21 PNG files occupy 1.81MB with 1.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/screenshot-4.png448.04KB123.69KB▼ 72.39%
inc/custom-field-builder/package/css/images/ui-icons_b83400_256x240.png4.44KB4.17KB▼ 6.02%
inc/custom-field-builder/package/css/images/ui-bg_fine-grain_10_eceadf_60x60.png10.51KB1.42KB▼ 86.44%
.wordpress-org/screenshot-1.png408.40KB108.04KB▼ 73.55%
assets/images/vektor_logo.png12.03KB6.88KB▼ 42.82%