89% custom-field-for-wp-job-manager

Code Review | Custom Field For WP Job Manager

WordPress plugin Custom Field For WP Job Manager scored 89% from 54 tests.

About plugin

  • Plugin page: custom-field-for-...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 16, 2019
  • Latest release: Aug 6, 2023
  • Number of updates: 30
  • Update frequency: every 48.4 days
  • Top authors: gravitymaster97 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 10,960 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.42ms] Passed 4 tests

Analyzing server-side resources used by Custom Field For WP Job Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.99 ▼1.42
Dashboard /wp-admin3.42 ▲0.1247.08 ▲1.32
Posts /wp-admin/edit.php3.53 ▲0.1845.49 ▲0.34
Add New Post /wp-admin/post-new.php6.02 ▲0.1382.76 ▼9.90
Media Library /wp-admin/upload.php3.34 ▲0.1239.26 ▲4.75

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Custom Field For WP Job Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.58 ▼0.801.59 ▼0.0341.58 ▼5.20
Dashboard /wp-admin2,226 ▲355.81 ▲0.7996.95 ▼3.2838.50 ▼5.11
Posts /wp-admin/edit.php2,109 ▲202.05 ▼0.0141.21 ▲3.7135.27 ▲4.67
Add New Post /wp-admin/post-new.php1,531 ▼1123.13 ▲4.76666.75 ▲38.0356.94 ▲10.24
Media Library /wp-admin/upload.php1,408 ▲204.16 ▼0.06111.78 ▼0.2348.16 ▲1.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

custom-field-for-wp-job-manager/wp-job-manager-custom-field.php 85% from 13 tests

"Custom Field For WP Job Manager" version 1.2'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:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("custom-field-for-wp-job-manager.php" instead of "wp-job-manager-custom-field.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected649 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP65838596
CSS10028
JavaScript22025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.80
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected