72% joinup-recruiting-bot

Code Review | JoinUp recruiting bot

WordPress plugin JoinUp recruiting bot scored 72% from 54 tests.

About plugin

  • Plugin page: joinup-recruiting...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.9
  • WordPress version: 6.3.1
  • First release: Sep 23, 2018
  • Latest release: Sep 23, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: joinup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 604 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.59ms] Passed 4 tests

A check of server-side resources used by JoinUp recruiting bot
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.40 ▼1.64
Dashboard /wp-admin3.33 ▲0.0252.11 ▲1.14
Posts /wp-admin/edit.php3.38 ▲0.0249.88 ▲1.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.93 ▼12.26
Media Library /wp-admin/upload.php3.25 ▲0.0233.68 ▼1.46

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

JoinUp recruiting bot: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲11413.27 ▼1.114.68 ▲2.9640.61 ▼1.97
Dashboard /wp-admin2,220 ▲295.90 ▲1.04106.99 ▲3.8537.61 ▼4.68
Posts /wp-admin/edit.php2,103 ▲142.03 ▲0.0240.20 ▼0.0136.09 ▲1.96
Add New Post /wp-admin/post-new.php1,549 ▲3518.44 ▲0.99603.09 ▼99.7155.94 ▼5.13
Media Library /wp-admin/upload.php1,399 ▲174.23 ▲0.0695.72 ▼1.4141.03 ▼3.64
Joinup /wp-admin/menus.php260.440.1014.33

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/joinup-recruiting-bot/joinup.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/joinup-recruiting-bot/includes/core.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/joinup-recruiting-bot/includes/menus.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/joinup-recruiting-bot/includes/embed.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/menus.php
    • > Network (severe)
    wp-admin/menus.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (JoinUp bot), #2 (JoinUp conversation), #3 (JoinUp dashboard)
Please take inspiration from this readme.txt

joinup-recruiting-bot/joinup.php 92% from 13 tests

The main file in "JoinUp recruiting bot" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("joinup-recruiting-bot.php" instead of "joinup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin157 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP53125144
Markdown15013

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.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%
Functions6
▷ Named functions6100.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
5 PNG files occupy 0.29MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png2.04KB1.55KB▼ 23.80%
screenshot-2.png61.75KB61.72KB0.05%
screenshot-3.png198.28KB60.11KB▼ 69.68%
assets/icon-256x256.png3.28KB2.15KB▼ 34.48%
screenshot-1.png26.68KB26.67KB0.05%