84% indeed-jobs-shortcode

Code Review | Indeed Jobs Shortcode

WordPress plugin Indeed Jobs Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: indeed-jobs-short...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-4.7
  • WordPress version: 6.3.1
  • First release: Jun 20, 2016
  • Latest release: Jun 21, 2016
  • Number of updates: 4
  • Update frequency: every 48.5 days
  • Top authors: jackchuka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,150 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.13ms] Passed 4 tests

An overview of server-side resources used by Indeed Jobs Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.65 ▼3.86
Dashboard /wp-admin3.36 ▲0.0156.24 ▼3.81
Posts /wp-admin/edit.php3.47 ▲0.1147.27 ▲3.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.35 ▼10.42
Media Library /wp-admin/upload.php3.28 ▲0.0535.95 ▲1.58

Server storage [IO: ▲0.01MB] [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
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Indeed Jobs Shortcode: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.47 ▲0.081.88 ▲0.2543.83 ▼0.49
Dashboard /wp-admin2,225 ▲375.91 ▲1.05101.41 ▼3.5137.24 ▼5.79
Posts /wp-admin/edit.php2,108 ▲192.03 ▲0.0335.10 ▲0.2731.79 ▼3.64
Add New Post /wp-admin/post-new.php1,527 ▲1317.61 ▲0.11671.57 ▼15.0751.24 ▲2.26
Media Library /wp-admin/upload.php1,404 ▲164.21 ▲0.0196.89 ▲2.1341.68 ▼1.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/indeed-jobs-shortcode/admin/class.indeed-shortcode-admin.php:124
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/indeed-jobs-shortcode/admin/class.indeed-shortcode-admin.php:124

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: indeed, import, jobs

indeed-jobs-shortcode/indeed-job-shortcode.php 92% from 13 tests

The main PHP file in "Indeed Jobs Shortcode" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("indeed-jobs-shortcode.php" instead of "indeed-job-shortcode.php")

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
There were no executable files found in this plugin245 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34316245

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity14.00
▷ Minimum class complexity6.00
▷ Maximum class complexity22.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin