83% joblookup-jobbox

Code Review | JobLookup Jobbox

WordPress plugin JobLookup Jobbox scored83%from 54 tests.

About plugin

  • Plugin page: joblookup-jobbox
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 23, 2019
  • Latest release: May 18, 2022
  • Number of updates: 21
  • Update frequency: every 46.2 days
  • Top authors: joblookup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,080 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.16ms] Passed 4 tests

Analyzing server-side resources used by JobLookup Jobbox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1336.72 ▲0.80
Dashboard /wp-admin3.43 ▲0.0845.35 ▼15.84
Posts /wp-admin/edit.php3.48 ▲0.1248.74 ▲0.23
Add New Post /wp-admin/post-new.php6.03 ▲0.1490.98 ▼5.83
Media Library /wp-admin/upload.php3.35 ▲0.1239.41 ▲6.08

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_joblookupjobbox
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for JobLookup Jobbox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲18513.98 ▼0.587.75 ▲6.1643.07 ▲1.49
Dashboard /wp-admin2,217 ▲654.99 ▼0.64114.06 ▲20.5144.19 ▲1.30
Posts /wp-admin/edit.php2,100 ▲112.13 ▲0.1444.37 ▲5.8136.80 ▲0.41
Add New Post /wp-admin/post-new.php1,525 ▲823.45 ▲5.73680.49 ▲32.6051.40 ▼12.57
Media Library /wp-admin/upload.php1,402 ▲174.29 ▲0.1196.23 ▼8.4344.47 ▲0.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_joblookupjobbox
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/joblookup-jobbox/joblookup.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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

joblookup-jobbox/joblookup.php 85% from 13 tests

The main PHP file in "JobLookup Jobbox" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("joblookup-jobbox.php" instead of "joblookup.php")

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 detected847 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP16427481
JavaScript2350197
CSS2220169

PHP code Passed 2 tests

Analyzing 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.58
Average class complexity85.00
▷ Minimum class complexity85.00
▷ Maximum class complexity85.00
Average method complexity8.64
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods545.45%
▷ Protected methods00.00%
▷ Private methods654.55%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
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
2 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png44.03KB14.58KB▼ 66.88%
screenshot-1.png102.02KB38.68KB▼ 62.09%