84% simple-job-manager

Code Review | Simple Job Manager

WordPress plugin Simple Job Manager scored 84% from 53 tests.

About plugin

  • Plugin page: simple-job-manager
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 5.8.1
  • First release: Apr 6, 2017
  • Latest release: Nov 13, 2019
  • Number of updates: 3
  • Update frequency: every 317.0 days
  • Top authors: oleksandr87 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 588 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼261.13ms] Passed 4 tests

Analyzing server-side resources used by Simple Job Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0125.65 ▼6.27
Dashboard /wp-admin3.07 ▲0.0242.60 ▼1.58
Posts /wp-admin/edit.php3.12 ▲0.0143.34 ▲1.99
Add New Post /wp-admin/post-new.php5.43 ▲0.0094.49 ▼1,027.73
Media Library /wp-admin/upload.php3.01 ▲0.0129.86 ▼8.94

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 2 new tables, 1 new option
New tables
wp_onsjmdb
wp_onsjmdbuser
New WordPress options
jal_db_version

Browser metrics Passed 4 tests

A check of browser resources used by Simple Job Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,830 ▲22416.16 ▲0.2110.92 ▲2.6547.91 ▲0.32
Dashboard /wp-admin2,982 ▲1325.94 ▲0.00138.16 ▲4.3399.56 ▼14.79
Posts /wp-admin/edit.php2,726 ▲202.69 ▼0.0170.03 ▲6.3590.70 ▲1.42
Add New Post /wp-admin/post-new.php1,666 ▲1318.63 ▼0.20403.88 ▲33.60127.02 ▲19.44
Media Library /wp-admin/upload.php1,792 ▲175.14 ▲0.12165.45 ▲4.42116.26 ▼1.10

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
  • Zombie WordPress options were found after uninstall: 1 option
    • jal_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 shortcode_atts() in wp-content/plugins/simple-job-manager/sjm_shortcode.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (Screenshot 1) image required
The official readme.txt is a good inspiration

simple-job-manager/index.php 92% from 13 tests

The primary PHP file in "Simple Job Manager" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-job-manager.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,414 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8162221,414

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.17
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png28.96KB16.82KB▼ 41.92%