72% sh-jobamatic

Code Review | Job-a-matic

WordPress plugin Job-a-matic scored72%from 54 tests.

About plugin

  • Plugin page: sh-jobamatic
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2013
  • Latest release: Nov 1, 2013
  • Number of updates: 18
  • Update frequency: every 31.3 days
  • Top authors: r0nn1ef (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,070 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.18MB] [CPU: ▼1.54ms] Passed 4 tests

Server-side resources used by Job-a-matic
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1649.94 ▲11.35
Dashboard /wp-admin3.54 ▲0.2452.48 ▲0.49
Posts /wp-admin/edit.php3.59 ▲0.2452.47 ▲2.07
Add New Post /wp-admin/post-new.php6.06 ▲0.1785.50 ▼17.34
Media Library /wp-admin/upload.php3.40 ▲0.1743.61 ▲8.61
Jobamatic /wp-admin/options-general.php?page=jobamatic3.3631.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Job-a-matic
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.281.67 ▼0.0943.44 ▼4.20
Dashboard /wp-admin2,193 ▲225.52 ▼0.0690.04 ▼1.8042.88 ▼0.66
Posts /wp-admin/edit.php2,101 ▼22.12 ▲0.1435.62 ▼5.1433.88 ▼2.96
Add New Post /wp-admin/post-new.php1,531 ▲323.15 ▲0.10674.89 ▲57.3754.23 ▲0.45
Media Library /wp-admin/upload.php1,407 ▲74.22 ▲0.05104.90 ▼2.6247.42 ▲3.95
Jobamatic /wp-admin/options-general.php?page=jobamatic1,0362.0123.3055.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • Jobamatic_Options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=jobamatic
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=jobamatic
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/sh-jobamatic/templates/job-results.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/sh-jobamatic/jobamatic.php:40
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/sh-jobamatic/templates/job-results.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/sh-jobamatic/includes/jobamatic-options.php:2
    • > PHP Notice
      Undefined variable: pager in wp-content/plugins/sh-jobamatic/templates/job-results.php on line 25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: "TBD"
The official readme.txt is a good inspiration

sh-jobamatic/jobamatic.php 92% from 13 tests

The main PHP script in "Job-a-matic" version 1.0 is automatically included on every request by WordPress
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 ("sh-jobamatic.php" instead of "jobamatic.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,193 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7181901,045
JavaScript111563
Sass114049
CSS14036

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity23.83
▷ Minimum class complexity7.00
▷ Maximum class complexity46.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods79
▷ Static methods11.27%
▷ Public methods5772.15%
▷ Protected methods2126.58%
▷ Private methods11.27%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants990.00%
▷ Class constants110.00%
▷ Public constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/Logo_SHpartner.png1.93KB1.19KB▼ 38.30%