83% spaces-engine-for-wp-job-manager

Code Review | Spaces Engine for WP Job Manager

WordPress plugin Spaces Engine for WP Job Manager scored83%from 54 tests.

About plugin

  • Plugin page: spaces-engine-for...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Nov 21, 2022
  • Latest release: Mar 27, 2023
  • Number of updates: 5
  • Update frequency: every 25.6 days
  • Top authors: bouncingsprout (60%)spacesengine (60%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /366 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.15MB] [CPU: ▼12.71ms] Passed 4 tests

Analyzing server-side resources used by Spaces Engine for WP Job Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1332.16 ▼10.32
Dashboard /wp-admin3.48 ▲0.1352.48 ▼13.09
Posts /wp-admin/edit.php3.59 ▲0.2447.99 ▼4.21
Add New Post /wp-admin/post-new.php6.06 ▲0.1784.21 ▼23.20
Media Library /wp-admin/upload.php3.40 ▲0.1741.62 ▲5.05

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

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

Browser metrics Passed 4 tests

Spaces Engine for WP Job Manager: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,479 ▼28214.20 ▼0.161.19 ▼0.6715.58 ▼28.20
Dashboard /wp-admin2,212 ▲355.57 ▼0.0285.27 ▼5.2241.43 ▼0.69
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0434.58 ▼3.3233.64 ▼2.59
Add New Post /wp-admin/post-new.php1,537 ▲1018.40 ▼4.74643.46 ▼25.6676.71 ▲2.67
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.08112.71 ▼4.3048.76 ▼0.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/spaces-engine-for-wp-job-manager/templates/all.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function spaces_wpjm_get_raw_permalink_settings() in wp-content/plugins/spaces-engine-for-wp-job-manager/templates/settings-jobs.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpe_wps_can_manage() in wp-content/plugins/spaces-engine-for-wp-job-manager/templates/create.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpe_wps_can_manage() in wp-content/plugins/spaces-engine-for-wp-job-manager/templates/dashboard.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: jobs, spaces, community, buddypress, buddyboss

spaces-engine-for-wp-job-manager/spaces-wpjm.php 77% from 13 tests

The primary PHP file in "Spaces Engine for WP Job Manager" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "5.8")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("spaces-engine-for-wp-job-manager.php" instead of "spaces-wpjm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,670 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP193205561,554
Sass11130533
CSS2220437
JavaScript2210146

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity43.00
▷ Minimum class complexity21.00
▷ Maximum class complexity65.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods42
▷ Static methods1330.95%
▷ Public methods3685.71%
▷ Protected methods00.00%
▷ Private methods614.29%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.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 files were detected