77% zartis-job-plugin

Code Review | HireHive Job Plugin

WordPress plugin HireHive Job Plugin scored77%from 54 tests.

About plugin

  • Plugin page: zartis-job-plugin
  • Plugin version: 2.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.8.0
  • WordPress version: 6.3.1
  • First release: Sep 25, 2011
  • Latest release: Aug 3, 2021
  • Number of updates: 110
  • Update frequency: every 32.8 days
  • Top authors: zartis (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

70+ active /17,802 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.90ms] Passed 4 tests

This is a short check of server-side resources used by HireHive Job Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.35 ▼8.69
Dashboard /wp-admin3.34 ▲0.0449.29 ▼3.40
Posts /wp-admin/edit.php3.39 ▲0.0347.62 ▼11.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.72 ▼4.44
Media Library /wp-admin/upload.php3.26 ▲0.0337.83 ▲0.67

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
Zartis_Group
db_upgraded
widget_recent-comments
Zartis_Notice
Zartis_Page_ID
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
Zartis_Unique_ID

Browser metrics Passed 4 tests

A check of browser resources used by HireHive Job Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.24 ▼1.121.79 ▼0.3245.81 ▲5.46
Dashboard /wp-admin2,231 ▲435.86 ▲0.9596.89 ▼14.0299.73 ▲53.89
Posts /wp-admin/edit.php2,114 ▲251.99 ▼0.0138.13 ▼4.1449.76 ▲11.57
Add New Post /wp-admin/post-new.php1,537 ▲423.30 ▼0.10621.77 ▼38.5578.41 ▲19.26
Media Library /wp-admin/upload.php1,413 ▲254.23 ▲0.03101.54 ▼23.0990.67 ▲36.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/zartis-job-plugin/Zartis_Job_Landing.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zartis-job-plugin/Zartis_Job_Plugin.php:28

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 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: Screenshot #1 (An example of jobs in a WordPress site) image missing
  • Plugin Name: Please specify the plugin name on the first line ( === zartis-job-plugin === )
The official readme.txt is a good inspiration

zartis-job-plugin/Zartis_Job_Plugin.php 85% from 13 tests

The main PHP file in "HireHive Job Plugin" ver. 2.9.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("zartis-job-plugin.php" instead of "Zartis_Job_Plugin.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 195 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected944 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS28041519
PHP27351325
JavaScript2380100

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
4 PNG files occupy 0.25MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow_right_alt1_24x24.png0.30KB0.24KB▼ 17.49%
images/check_12x10.png0.17KB0.17KB▼ 2.31%
images/check_alt_16x16.png0.30KB0.21KB▼ 30.13%
screenshot-1.png258.94KB94.77KB▼ 63.40%