94% wp-job-manager-xml-csv-listings-import

Code Review | Import Listings into WP Job Manager

WordPress plugin Import Listings into WP Job Manager scored 94% from 54 tests.

About plugin

  • Plugin page: wp-job-manager-xm...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 5.8.1
  • First release: Jul 10, 2015
  • Latest release: Jul 15, 2021
  • Number of updates: 48
  • Update frequency: every 45.9 days
  • Top authors: WPAllImport (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active / 41,828 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▼132.84ms] Passed 4 tests

Server-side resources used by Import Listings into WP Job Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.14 ▲0.4234.48 ▲10.55
Dashboard /wp-admin3.43 ▲0.3753.40 ▲6.45
Posts /wp-admin/edit.php3.48 ▲0.3755.38 ▲7.52
Add New Post /wp-admin/post-new.php5.72 ▲0.29101.18 ▼550.29
Media Library /wp-admin/upload.php3.31 ▲0.3138.61 ▲4.98

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Import Listings into WP Job Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲18615.80 ▼0.169.93 ▼1.2261.55 ▲8.97
Dashboard /wp-admin3,015 ▲815.94 ▼0.01144.52 ▼13.50127.15 ▲7.67
Posts /wp-admin/edit.php2,813 ▲742.73 ▲0.0171.60 ▼2.70108.06 ▲9.16
Add New Post /wp-admin/post-new.php1,646 ▼3721.47 ▲4.78286.56 ▼122.80138.14 ▲22.32
Media Library /wp-admin/upload.php1,878 ▲685.00 ▼0.03139.84 ▼23.90130.39 ▲8.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | 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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WPAI_WP_Job_Manager_Add_On_Importer' not found in wp-content/plugins/wp-job-manager-xml-csv-listings-import/classes/class-importer-jobs.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPAI_WP_Job_Manager_Add_On_Importer' not found in wp-content/plugins/wp-job-manager-xml-csv-listings-import/classes/class-importer-jobs-location.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-job-manager-xml-csv-listings-import/wp-job-manager-add-on.php:89

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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 need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

wp-job-manager-xml-csv-listings-import/wp-job-manager-add-on.php 92% from 13 tests

The main PHP script in "Import Listings into WP Job Manager" version 1.2.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-job-manager-xml-csv-listings-import.php" instead of "wp-job-manager-add-on.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,544 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP74411381,543
Markdown1001

PHP code Passed 2 tests

A short 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.62
Average class complexity44.29
▷ Minimum class complexity1.00
▷ Maximum class complexity211.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods80
▷ Static methods11.25%
▷ Public methods7998.75%
▷ Protected methods11.25%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected