84% bp-job-manager-integration

Code Review | BP Job Manager integration

WordPress plugin BP Job Manager integration scored84%from 54 tests.

About plugin

  • Plugin page: bp-job-manager-in...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 26, 2017
  • Latest release: Jul 26, 2017
  • Number of updates: 13
  • Update frequency: N/A
  • Top authors: kinic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,782 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
The plugin installed gracefully, with no errors

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

Server-side resources used by BP Job Manager integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.47 ▼0.94
Dashboard /wp-admin3.31 ▲0.0148.11 ▼2.64
Posts /wp-admin/edit.php3.36 ▲0.0045.80 ▼0.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.35 ▼0.30
Media Library /wp-admin/upload.php3.23 ▲0.0032.84 ▼1.52

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for BP Job Manager integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.80 ▲0.211.76 ▲0.0342.90 ▼1.29
Dashboard /wp-admin2,209 ▲185.88 ▲0.8398.23 ▼8.3139.42 ▼2.75
Posts /wp-admin/edit.php2,086 ▼02.03 ▲0.0435.39 ▼0.7030.91 ▼2.86
Add New Post /wp-admin/post-new.php1,533 ▼923.24 ▲5.11623.51 ▲10.3752.90 ▲3.56
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.0498.90 ▼3.8242.72 ▲0.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bp-job-manager-integration/bp-jobmanager-integration.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: buddypress, wordpress, integration, wp job manager, profile...

bp-job-manager-integration/bp-jobmanager-integration.php 85% from 13 tests

"BP Job Manager integration" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-job-manager-integration.php" instead of "bp-jobmanager-integration.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin100 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP292270
PO File14630

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin