84% nicejob

Code Review | NiceJob

WordPress plugin NiceJob scored84%from 54 tests.

About plugin

  • Plugin page: nicejob
  • Plugin version: 3.6.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Apr 24, 2017
  • Latest release: Feb 2, 2022
  • Number of updates: 54
  • Update frequency: every 32.3 days
  • Top authors: nicejob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /7,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.02ms] Passed 4 tests

Server-side resources used by NiceJob
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /36.71 ▲33.206,808,532.24 ▲6,808,488.02
Dashboard /wp-admin3.43 ▲0.0453.39 ▼19.46
Posts /wp-admin/edit.php3.55 ▲0.1556.91 ▲0.54
Add New Post /wp-admin/post-new.php6.02 ▲0.0991.04 ▼17.54
Media Library /wp-admin/upload.php3.36 ▲0.0840.03 ▲0.38

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for NiceJob
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.38 ▲0.031.71 ▼0.3138.67 ▼9.03
Dashboard /wp-admin2,216 ▲395.60 ▼0.0285.91 ▼9.6239.40 ▼3.51
Posts /wp-admin/edit.php2,118 ▲181.95 ▼0.0237.59 ▲3.4834.08 ▼2.76
Add New Post /wp-admin/post-new.php1,541 ▲1323.12 ▼0.00619.88 ▼73.1053.99 ▼0.85
Media Library /wp-admin/upload.php1,421 ▲214.19 ▼0.0197.91 ▼13.0245.44 ▲0.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nicejob/nicejob.php:49

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)
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

nicejob/nicejob.php Passed 13 tests

The main PHP file in "NiceJob" ver. 3.6.0 adds more information about the plugin and also serves as the entry point for this plugin
111 characters long description:
Easily add NiceJob Stories, Reviews, Trust Badge, Engage, and Collect Leads and Reviews to your Wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin586 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP14373484
JavaScript660102

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 1.85MB with 1.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
nicejob-logo.png35.83KB9.99KB▼ 72.11%
nicejob-button-40.png3.18KB1.54KB▼ 51.48%
assets/screenshot-1.png447.26KB143.77KB▼ 67.86%
assets/screenshot-4.png115.10KB43.53KB▼ 62.18%
assets/screenshot-3.png848.92KB255.11KB▼ 69.95%