99% listify-multi-location-for-wp-job-manager

Code Review | Multi Location for WP Job Manager

WordPress plugin Multi Location for WP Job Manager scored 99% from 54 tests.

About plugin

  • Plugin page: listify-multi-loc...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.8.1
  • First release: Aug 1, 2019
  • Latest release: Aug 21, 2021
  • Number of updates: 8
  • Update frequency: every 94.1 days
  • Top authors: devdrarif (75%)keendevs (37.5%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 743 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼138.85ms] Passed 4 tests

A check of server-side resources used by Multi Location for WP Job Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1232.97 ▲10.75
Dashboard /wp-admin3.06 ▲0.0050.14 ▲4.75
Posts /wp-admin/edit.php3.11 ▲0.0045.73 ▲3.47
Add New Post /wp-admin/post-new.php5.42 ▼0.0290.53 ▼561.50
Media Library /wp-admin/upload.php3.00 ▲0.0031.64 ▼2.13

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Multi Location for WP Job Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.98 ▲0.0411.04 ▼1.0548.57 ▲5.47
Dashboard /wp-admin2,967 ▲365.94 ▼0.03152.55 ▲1.07110.13 ▲5.50
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0168.09 ▲0.9790.79 ▼0.09
Add New Post /wp-admin/post-new.php1,500 ▼18318.60 ▼0.14385.41 ▼28.84108.62 ▲4.70
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.00170.89 ▲16.40119.63 ▲5.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: Please take inspiration from this readme.txt

listify-multi-location-for-wp-job-manager/wp-job-manager-multi-location.php 69% from 13 tests

The principal PHP file in "Multi Location for WP Job Manager" v. 2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("listify-multi-location-for-wp-job-manager.php" instead of "wp-job-manager-multi-location.php")
  • 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 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,051 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3204451793
PHP180105232
CSS10026

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected