94% gamipress-wp-job-manager-integration

Code Review | GamiPress - WP Job Manager integration

WordPress plugin GamiPress - WP Job Manager integration scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-wp-job-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Jun 26, 2019
  • Latest release: Jan 24, 2022
  • Number of updates: 12
  • Update frequency: every 78.6 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,792 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by GamiPress - WP Job Manager integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0657.85 ▲4.28
Dashboard /wp-admin3.44 ▲0.0331.94 ▼1.01
Posts /wp-admin/edit.php3.67 ▲0.0337.34 ▲2.13
Add New Post /wp-admin/post-new.php6.91 ▼0.0794.57 ▼1,209.27
Media Library /wp-admin/upload.php3.32 ▲0.0226.09 ▲2.60

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for GamiPress - WP Job Manager integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲3716.01 ▼0.015.59 ▼0.192.41 ▼0.40
Dashboard /wp-admin2,920 ▲596.16 ▼0.09118.16 ▼18.60158.81 ▼5.18
Posts /wp-admin/edit.php2,722 ▲283.24 ▼0.0065.34 ▲2.78142.08 ▲5.96
Add New Post /wp-admin/post-new.php1,772 ▲2021.55 ▲0.04432.28 ▼43.61158.57 ▼1.50
Media Library /wp-admin/upload.php1,726 ▲285.54 ▲0.08149.41 ▲10.04190.48 ▲6.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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 no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-wp-job-manager-integration/gamipress-wp-job-manager.php:230

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 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 34 tag instead of maximum 10
Please take inspiration from this readme.txt

gamipress-wp-job-manager-integration/gamipress-wp-job-manager.php 92% from 13 tests

The main PHP script in "GamiPress - WP Job Manager integration" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("gamipress-wp-job-manager-integration.php" instead of "gamipress-wp-job-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin501 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8144380455
JavaScript2151046

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin