79% zij-indeed-jobs

Code Review | Zij Indeed Jobs

WordPress plugin Zij Indeed Jobs scored79%from 54 tests.

About plugin

  • Plugin page: zij-indeed-jobs
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Apr 29, 2016
  • Latest release: Apr 29, 2017
  • Number of updates: 14
  • Update frequency: every 26.1 days
  • Top authors: zijsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /948 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.81ms] Passed 4 tests

A check of server-side resources used by Zij Indeed Jobs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.38 ▼3.67
Dashboard /wp-admin3.31 ▲0.0142.77 ▼9.02
Posts /wp-admin/edit.php3.36 ▲0.0146.02 ▼1.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.20 ▼9.33
Media Library /wp-admin/upload.php3.24 ▲0.0133.71 ▲2.34

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_zijindeedjobs
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Zij Indeed Jobs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.45 ▲0.181.58 ▼0.3236.38 ▼8.06
Dashboard /wp-admin2,203 ▲125.84 ▲0.9698.75 ▼5.3937.31 ▼9.21
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0333.65 ▼3.6833.49 ▲0.65
Add New Post /wp-admin/post-new.php1,533 ▲1123.39 ▲0.15653.94 ▲71.5152.84 ▲1.89
Media Library /wp-admin/upload.php1,388 ▲64.20 ▼0.0498.05 ▲0.7941.24 ▼1.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_zijindeedjobs
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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 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
Please take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/zij-indeed-jobs/indeedlib.php
    • > /wp-content/plugins/zij-indeed-jobs/1.1/indeedlib.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zij-indeed-jobs/zij-indeed-jobs.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/zij-indeed-jobs/1.1/zij-indeed-jobs.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: indeed jobs, indeed, indeed job integration

zij-indeed-jobs/zij-indeed-jobs.php Passed 13 tests

This is the main PHP file of "Zij Indeed Jobs" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Zijsoft provide the indeed jobs integeration into your wordpress installation easily

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected281 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33480263
CSS20018

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.00
▷ Minimum class complexity11.00
▷ Maximum class complexity17.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1477.78%
▷ Protected methods00.00%
▷ Private methods422.22%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/indeed.png36.65KB14.75KB▼ 59.75%
1.1/includes/images/indeed.png36.65KB14.75KB▼ 59.75%