84% jobs-that-makesense

Code Review | jobs_that_makesense

WordPress plugin jobs_that_makesense scored84%from 54 tests.

About plugin

  • Plugin page: jobs-that-makesense
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 9, 2022
  • Latest release: Sep 27, 2023
  • Number of updates: 21
  • Update frequency: every 27.0 days
  • Top authors: jcmakesense (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,022 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼10.67ms] Passed 4 tests

Analyzing server-side resources used by jobs_that_makesense
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.22 ▼10.21
Dashboard /wp-admin3.40 ▲0.0549.07 ▼15.66
Posts /wp-admin/edit.php3.45 ▲0.0954.14 ▲1.97
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.19 ▼18.28
Media Library /wp-admin/upload.php3.32 ▲0.0937.37 ▲1.48

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for jobs_that_makesense
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲13613.42 ▼0.972.67 ▲0.8546.44 ▲4.83
Dashboard /wp-admin2,203 ▲155.83 ▼0.03102.66 ▼4.8340.07 ▼0.94
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0534.55 ▼8.6035.73 ▲0.24
Add New Post /wp-admin/post-new.php1,521 ▲123.10 ▼0.15628.41 ▼52.7454.82 ▼5.12
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.04101.50 ▼6.9740.96 ▼9.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function JobsThatMakesense\\add_action() in wp-content/plugins/jobs-that-makesense/index.php:27

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
There were no plugin tags found

jobs-that-makesense/index.php 92% from 13 tests

The main PHP script in "jobs_that_makesense" version 1.3.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jobs-that-makesense.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected606 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16641306
CSS1290202
JavaScript112598

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin