84% wpbroadbean

Code Review | WP Broadbean

WordPress plugin WP Broadbean scored84%from 54 tests.

About plugin

  • Plugin page: wpbroadbean
  • Plugin version: 3.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5
  • WordPress version: 6.3.1
  • First release: Jul 24, 2014
  • Latest release: Jul 10, 2023
  • Number of updates: 89
  • Update frequency: every 36.8 days
  • Top authors: wpmarkuk (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /7,861 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.46MB] [CPU: ▲4.55ms] Passed 4 tests

Server-side resources used by WP Broadbean
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4444.88 ▲3.78
Dashboard /wp-admin3.80 ▲0.4956.89 ▲6.20
Posts /wp-admin/edit.php3.85 ▲0.4956.48 ▲7.19
Add New Post /wp-admin/post-new.php6.51 ▲0.63109.96 ▲10.91
Media Library /wp-admin/upload.php3.66 ▲0.4336.56 ▲1.02
Job Skills /wp-admin/edit-tags.php?taxonomy=wpbb_job_skill3.6536.54
Job Types /wp-admin/edit-tags.php?taxonomy=wpbb_job_type3.6539.20
Job Industries /wp-admin/edit-tags.php?taxonomy=wpbb_job_industry3.6533.80
Jobs /wp-admin/edit.php?post_type=wpbb_job3.7038.21
Settings /wp-admin/admin.php?page=wpbb_settings3.6634.67
Job Locations /wp-admin/edit-tags.php?taxonomy=wpbb_job_location3.6534.84

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Broadbean
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲10213.28 ▼1.405.96 ▲3.9546.10 ▼4.50
Dashboard /wp-admin2,251 ▲604.85 ▼0.09109.68 ▼0.1846.19 ▼1.77
Posts /wp-admin/edit.php2,134 ▲482.05 ▲0.0541.88 ▲2.4537.21 ▲0.74
Add New Post /wp-admin/post-new.php1,575 ▲3318.26 ▼4.71718.09 ▲94.0867.89 ▲14.25
Media Library /wp-admin/upload.php1,430 ▲454.24 ▲0.0499.19 ▼53.4342.18 ▼14.32
Job Skills /wp-admin/edit-tags.php?taxonomy=wpbb_job_skill1,2762.1426.5830.26
Job Types /wp-admin/edit-tags.php?taxonomy=wpbb_job_type1,3102.1429.8229.28
Job Industries /wp-admin/edit-tags.php?taxonomy=wpbb_job_industry1,3042.1326.6134.12
Jobs /wp-admin/edit.php?post_type=wpbb_job1,1441.9432.6031.31
Settings /wp-admin/admin.php?page=wpbb_settings1,0982.0626.2336.08
Job Locations /wp-admin/edit-tags.php?taxonomy=wpbb_job_location1,3072.1429.3729.60

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 detected upon uninstall: 8 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • wpbroadbean_db_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • wpbroadbean_version
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
  • 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpbroadbean/inc/taxonomies.php:110
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpbroadbean/inc/applications/application-form.php:115
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpbroadbean/inc/applications/application-fields.php:114
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpbroadbean/inc/enqueues.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpbroadbean/inc/post-types.php:75
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpbroadbean/inc/settings/settings-fields.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpbroadbean/inc/settings/register-settings.php:64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wpbroadbean/views/messages.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wpbroadbean/views/application-form.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpbroadbean/inc/settings/default-settings.php:85

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 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
2 plugin tags: recruitment, jobs

wpbroadbean/wpbroadbean.php 85% from 13 tests

The primary PHP file in "WP Broadbean" version 3.0.7 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/langauges")
  • Description: The description should be shorter than 140 characters (currently 324 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,298 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP261,0571,4022,133
CSS180124
XML20030
JavaScript20711

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions95
▷ Named functions95100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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