83% integrate-osm-with-wp-job-manager

Code Review | Integrate OSM with WP Job Manager

WordPress plugin Integrate OSM with WP Job Manager scored83%from 54 tests.

About plugin

  • Plugin page: integrate-osm-wit...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4
  • WordPress version: 6.3.1
  • First release: Sep 21, 2022
  • Latest release: Nov 18, 2023
  • Number of updates: 11
  • Update frequency: every 38.5 days
  • Top authors: mpol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /377 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.08ms] Passed 4 tests

Analyzing server-side resources used by Integrate OSM with WP Job Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.43 ▼2.97
Dashboard /wp-admin3.34 ▲0.0444.76 ▼5.81
Posts /wp-admin/edit.php3.39 ▲0.0446.09 ▼2.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.44 ▼1.49
Media Library /wp-admin/upload.php3.26 ▲0.0433.93 ▼0.49

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Integrate OSM with WP Job Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15113.32 ▼1.087.95 ▲6.0638.18 ▼5.62
Dashboard /wp-admin2,212 ▲355.63 ▲0.0389.40 ▼9.2339.88 ▼2.10
Posts /wp-admin/edit.php2,115 ▲151.98 ▼0.0439.55 ▲0.0238.92 ▲2.79
Add New Post /wp-admin/post-new.php1,540 ▲1423.26 ▲0.09618.99 ▼96.6160.54 ▲8.34
Media Library /wp-admin/upload.php1,408 ▲54.18 ▲0.00100.53 ▼0.0843.37 ▲1.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/integrate-osm-with-wp-job-manager/osm-wpjobmanager.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Test) image missing
The official readme.txt is a good inspiration

integrate-osm-with-wp-job-manager/osm-wpjobmanager.php 85% from 13 tests

The main PHP file in "Integrate OSM with WP Job Manager" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/lang/")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("integrate-osm-with-wp-job-manager.php" instead of "osm-wpjobmanager.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 detected234 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16586145
JavaScript125589

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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.27
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%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin