10% job-listings-package

Code Review | Job Listings - Package

WordPress plugin Job Listings - Package scored10%from 54 tests.

About plugin

  • Plugin page: job-listings-package
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7.5
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: May 30, 2017
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: nootheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /857 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/job-listings-package/job-listings-package.php+61
    Uncaught Error: Call to undefined function jlt_check_woocommerce_active() in wp-content/plugins/job-listings-package/job-listings-package.php:61
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): Job_Listings_Package::on_activation()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.52ms] Passed 4 tests

Analyzing server-side resources used by Job Listings - Package
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.87 ▼0.47
Dashboard /wp-admin3.31 ▲0.0043.73 ▼5.34
Posts /wp-admin/edit.php3.36 ▲0.0045.35 ▲1.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.26 ▼9.85
Media Library /wp-admin/upload.php3.23 ▲0.0033.24 ▲2.72

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Job Listings - Package: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.62 ▼1.012.18 ▲0.4439.95 ▼4.25
Dashboard /wp-admin2,206 ▲184.85 ▼0.05102.75 ▼15.8238.83 ▼7.24
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0339.69 ▲5.7234.21 ▼2.37
Add New Post /wp-admin/post-new.php1,528 ▲918.52 ▼4.71658.04 ▼29.4954.02 ▼1.45
Media Library /wp-admin/upload.php1,382 ▼94.20 ▲0.0495.41 ▼6.0343.39 ▼0.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin has failed uninstalling correctly, leaving 26 files (0.11MB) in the plugin directory
    • (new file) classes/class-wc-product-employer-package.php
    • (new file) assets/frontend/scss/package.scss
    • (new file) classes/class-wc-product-resume-package.php
    • (new file) classes/class-employer-package.php
    • (new file) includes/candidate-viewable.php
    • (new file) README.txt
    • (new file) assets/frontend/css/package.css
    • (new file) classes/class-candidate-package.php
    • (new file) assets/admin/css/package-product.css
    • (new file) classes/loader.php
    • ...
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/job-listings-package/classes/class-employer-package.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/job-listings-package/includes/job-viewable-candidate-package.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: job board, job listings, employment, job manager, job management

job-listings-package/job-listings-package.php Passed 13 tests

The main PHP file in "Job Listings - Package" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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 plugin2,298 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP214751862,147
Sass170121
CSS22030

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity33.80
▷ Minimum class complexity8.00
▷ Maximum class complexity78.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods82
▷ Static methods1315.85%
▷ Public methods8097.56%
▷ Protected methods22.44%
▷ Private methods00.00%
Functions58
▷ Named functions58100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin