78% wp-job-manager-live-job-count

Code Review | WP Job Manager Live Job Count

WordPress plugin WP Job Manager Live Job Count scored 78% from 54 tests.

About plugin

  • Plugin page: wp-job-manager-li...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 5.8.1
  • First release: Sep 28, 2016
  • Latest release: Sep 28, 2016
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: sajibg7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 2,168 total downloads

Benchmarks

Plugin footprint 83% from 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.88MB] [CPU: ▼177.64ms] Passed 4 tests

This is a short check of server-side resources used by WP Job Manager Live Job Count
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1534.91 ▲13.81
Dashboard /wp-admin2.76 ▼0.2919.18 ▼27.69
Posts /wp-admin/edit.php2.76 ▼0.3420.82 ▼28.37
Add New Post /wp-admin/post-new.php2.76 ▼2.6721.51 ▼637.58
Media Library /wp-admin/upload.php2.76 ▼0.2419.01 ▼16.91
Live Job Settings /wp-admin/options-general.php?page=wp-job-manager-live-job-count/wp-job-manager-live-job-count.php2.7716.46

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 4 new options
New WordPress options
wjmljc_show_job
wjmljc_show_seeker
wjmljc_show_company
wjmljc_ajax_timer

Browser metrics Passed 4 tests

A check of browser resources used by WP Job Manager Live Job Count
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲20116.27 ▲0.3515.73 ▲3.6450.78 ▲2.57
Dashboard /wp-admin2,972 ▲415.90 ▼0.09142.41 ▼10.44108.68 ▲0.81
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0176.62 ▲9.2381.15 ▼9.69
Add New Post /wp-admin/post-new.php1,686 ▼1,95018.86 ▲3.86377.19 ▼101.24107.90 ▲4.37
Media Library /wp-admin/upload.php1,812 ▲55.03 ▼0.00150.38 ▼15.37111.37 ▼1.78
Live Job Settings /wp-admin/options-general.php?page=wp-job-manager-live-job-count/wp-job-manager-live-job-count.php1,0982.0956.2572.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-job-manager-live-job-count/wp-job-manager-live-job-count.php
    • > User notice in wp-includes/functions.php+5663
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-job-manager-live-job-count/job-count-template.php:3

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (The settings page.)
You can take inspiration from this readme.txt

wp-job-manager-live-job-count/wp-job-manager-live-job-count.php 85% from 13 tests

This is the main PHP file of "WP Job Manager Live Job Count" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 168 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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 detected187 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24829142
JavaScript16135
CSS10010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.35MB with 0.21MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png306.29KB89.28KB▼ 70.85%
assets/screenshot-1.png40.62KB12.84KB▼ 68.40%
assets/images/14706671-small.png3.74KB0.88KB▼ 76.37%
assets/banner-772x250.png3.58KB2.45KB▼ 31.53%