83% click-pledge-wpjobboard

Code Review | WordPress-WPJobBoard

WordPress plugin WordPress-WPJobBoard scored83%from 54 tests.

About plugin

  • Plugin page: click-pledge-wpjo...
  • Plugin version: 4.23100100-WP6.3.2-J...
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0+
  • WordPress version: 6.3.1
  • First release: Jun 15, 2015
  • Latest release: Oct 30, 2023
  • Number of updates: 43
  • Update frequency: every 71.2 days
  • Top authors: ClickandPledge (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /5,130 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.65ms] Passed 4 tests

An overview of server-side resources used by WordPress-WPJobBoard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.92 ▼6.48
Dashboard /wp-admin3.31 ▼0.0448.30 ▼17.54
Posts /wp-admin/edit.php3.37 ▲0.0042.74 ▼8.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0081.37 ▼10.31
Media Library /wp-admin/upload.php3.24 ▲0.0034.84 ▲0.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WordPress-WPJobBoard
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.111.75 ▼0.2042.61 ▼0.09
Dashboard /wp-admin2,198 ▲185.63 ▼0.0497.23 ▼0.2442.94 ▲0.09
Posts /wp-admin/edit.php2,100 ▲31.96 ▼0.0734.47 ▼2.3736.36 ▲0.65
Add New Post /wp-admin/post-new.php1,529 ▲323.26 ▲0.28642.20 ▼10.9950.90 ▼6.57
Media Library /wp-admin/upload.php1,394 ▼64.18 ▼0.0194.73 ▼2.8441.06 ▲1.10

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Daq_Form_Abstract' not found in wp-content/plugins/click-pledge-wpjobboard/clickandpledge_front_controll.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/click-pledge-wpjobboard/clickandpledge_payment.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Wpjb_Form_Abstract_Payment' not found in wp-content/plugins/click-pledge-wpjobboard/clickandpledge_admin_controll.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Wpjb_Form_Abstract_Payment' not found in wp-content/plugins/click-pledge-wpjobboard/clickandpledge_admin_controll.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

click-pledge-wpjobboard/clickandpledge_payment.php 85% from 13 tests

The main PHP script in "WordPress-WPJobBoard" version 4.23100100-WP6.3.2-J... is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("click-pledge-wpjobboard.php" instead of "clickandpledge_payment.php")
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "4.23100100-WP6.3.2-J...")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected4,174 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP54631012,353
JavaScript42191181,821

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 129)
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity100.67
▷ Minimum class complexity65.00
▷ Maximum class complexity138.00
Average method complexity7.64
▷ Minimum method complexity1.00
▷ Maximum method complexity129.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods45
▷ Static methods1942.22%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cp-logo.png7.21KB3.68KB▼ 49.01%
images/eCheck.png6.58KB2.33KB▼ 64.49%