90% bhoot-blocks-wp-job-manager

Code Review | Blocks for WP Job Manager

WordPress plugin Blocks for WP Job Manager scored90%from 54 tests.

About plugin

  • Plugin page: bhoot-blocks-wp-j...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: Nov 14, 2019
  • Latest release: Nov 14, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: bhoot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /662 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.21ms] Passed 4 tests

A check of server-side resources used by Blocks for WP Job Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.61 ▼1.02
Dashboard /wp-admin3.38 ▲0.0450.91 ▼16.77
Posts /wp-admin/edit.php3.50 ▲0.1449.69 ▲2.64
Add New Post /wp-admin/post-new.php5.96 ▲0.0888.67 ▼14.27
Media Library /wp-admin/upload.php3.31 ▲0.0835.02 ▼4.76

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Blocks for WP Job Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.24 ▼1.421.83 ▼0.1745.57 ▲2.03
Dashboard /wp-admin2,213 ▲254.85 ▼0.05110.69 ▼7.0946.26 ▲1.18
Posts /wp-admin/edit.php2,095 ▲61.99 ▼0.0235.29 ▲0.7136.38 ▲2.06
Add New Post /wp-admin/post-new.php1,535 ▲723.20 ▲4.96657.50 ▼2.0458.23 ▲5.14
Media Library /wp-admin/upload.php1,395 ▲104.20 ▼0.0297.26 ▼2.9542.50 ▼3.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: job listing, job manager, blocks, job manager blocks, jobs...

bhoot-blocks-wp-job-manager/blocks-for-wp-job-manager.php 92% from 13 tests

The main file in "Blocks for WP Job Manager" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bhoot-blocks-wp-job-manager.php" instead of "blocks-for-wp-job-manager.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
Everything looks great! No dangerous files found in this plugin3,218 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript142035231,238
PHP12173355792
Sass5821493
CSS22456394
JSON400301

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity15.71
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods55
▷ Static methods1018.18%
▷ Public methods4581.82%
▷ Protected methods59.09%
▷ Private methods59.09%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants7
▷ Global constants7100.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
No PNG images were found in this plugin