89% wp-job-manager-filter-widget

Code Review | WP Job Manager Filter Widget

WordPress plugin WP Job Manager Filter Widget scored 89% from 54 tests.

About plugin

  • Plugin page: wp-job-manager-fi...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: Aug 15, 2023
  • Number of updates: 17
  • Update frequency: every 162.2 days
  • Top authors: tusharkapdi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 8,868 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.06MB] [CPU: ▼0.94ms] Passed 4 tests

A check of server-side resources used by WP Job Manager Filter Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.70 ▼3.37
Dashboard /wp-admin3.36 ▲0.0648.11 ▼0.24
Posts /wp-admin/edit.php3.41 ▲0.0644.08 ▼0.49
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.80 ▲1.86
Media Library /wp-admin/upload.php3.28 ▲0.0534.32 ▲0.32

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_wpjmfilter
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Job Manager Filter Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.18 ▼1.401.90 ▼0.0743.46 ▼1.46
Dashboard /wp-admin2,210 ▲224.86 ▼1.05109.79 ▼7.1243.74 ▼4.59
Posts /wp-admin/edit.php2,092 ▲62.04 ▼0.0136.20 ▲0.1535.40 ▲0.05
Add New Post /wp-admin/post-new.php1,546 ▲1318.59 ▼4.54591.93 ▼85.6352.29 ▼0.21
Media Library /wp-admin/upload.php1,389 ▲44.31 ▲0.1093.30 ▼8.8740.54 ▼5.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_wpjmfilter
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (18 tag instead of maximum 10)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-job-manager-filter-widget === )
Please take inspiration from this readme.txt

wp-job-manager-filter-widget/wpjm-filter-widget.php 85% from 13 tests

The main PHP file in "WP Job Manager Filter Widget" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-job-manager-filter-widget.php" instead of "wpjm-filter-widget.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
Success! There were no dangerous files found in this plugin240 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14263199
PO File1141541

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity6.80
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png22.99KB8.85KB▼ 61.49%