84% the-good-jobs-listenhire-widget

Code Review | The Good Jobs ListenHire Widget

WordPress plugin The Good Jobs ListenHire Widget scored 84% from 54 tests.

About plugin

  • Plugin page: the-good-jobs-lis...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 5.8.1
  • First release: Jul 13, 2015
  • Latest release: Jul 29, 2015
  • Number of updates: 6
  • Update frequency: every 3.2 days
  • Top authors: thegoodjobs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 459 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼141.92ms] Passed 4 tests

A check of server-side resources used by The Good Jobs ListenHire Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0636.48 ▲0.16
Dashboard /wp-admin3.13 ▲0.0850.22 ▲5.31
Posts /wp-admin/edit.php3.18 ▲0.0740.77 ▼3.96
Add New Post /wp-admin/post-new.php5.49 ▲0.0592.83 ▼566.34
Media Library /wp-admin/upload.php3.07 ▲0.0735.62 ▲2.45

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
widget_listenhire_widget

Browser metrics Passed 4 tests

The Good Jobs ListenHire Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲10315.88 ▼0.017.73 ▲0.3154.02 ▼3.27
Dashboard /wp-admin2,993 ▲595.86 ▼0.28143.67 ▼2.33123.22 ▲4.40
Posts /wp-admin/edit.php2,759 ▲202.70 ▲0.0169.23 ▼2.5590.21 ▼1.26
Add New Post /wp-admin/post-new.php1,696 ▲11518.77 ▼1.41388.26 ▼18.53117.46 ▲3.86
Media Library /wp-admin/upload.php1,827 ▲795.04 ▲0.04161.15 ▲13.27118.52 ▼7.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_listenhire_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/the-good-jobs-listenhire-widget/listenhire-widget.php:14

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 93% 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:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The ListenHire Widget `/assets/screenshot-1.png`), #2 (When an individual badge has been clicked `/assets/screenshot-2.png`)
You can take inspiration from this readme.txt

the-good-jobs-listenhire-widget/listenhire-widget.php 92% from 13 tests

"The Good Jobs ListenHire Widget" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("the-good-jobs-listenhire-widget.php" instead of "listenhire-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 plugin333 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26946333

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity5.40
▷ 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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png16.22KB5.20KB▼ 67.92%
assets/screenshot-2.png70.49KB27.28KB▼ 61.29%