10% jobsearch

Code Review | Tamago-DB Job board

WordPress plugin Tamago-DB Job board scored10%from 54 tests.

About plugin

  • Plugin page: jobsearch
  • Plugin version: 2.2.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.1
  • WordPress version: 6.3.1
  • First release: Feb 7, 2019
  • Latest release: May 19, 2023
  • Number of updates: 130
  • Update frequency: every 12.0 days
  • Top authors: joanv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,888 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.51ms] Passed 4 tests

Analyzing server-side resources used by Tamago-DB Job board
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1743.23 ▲3.79
Dashboard /wp-admin3.47 ▲0.1251.71 ▼7.01
Posts /wp-admin/edit.php3.52 ▲0.1652.02 ▼0.30
Add New Post /wp-admin/post-new.php6.01 ▲0.1282.05 ▼14.61
Media Library /wp-admin/upload.php3.33 ▲0.1035.65 ▼0.10
TDB Job board /wp-admin/admin.php?page=jobsearch5.76111.00
Apply history /wp-admin/admin.php?page=jobsearchsubmenu3.4037.54

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 491 new files
Database: 20 new tables, 7 new options
New tables
wp_js_api
wp_js_company
wp_js_experiment
wp_js_skill
wp_js_migration
wp_js_applyDetail
wp_js_langUsed
wp_js_lastUpdt
wp_js_visa
wp_js_apply
...
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_tdb_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tamago-DB Job board
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲16913.50 ▼0.7910.40 ▲8.8745.25 ▲1.00
Dashboard /wp-admin2,218 ▲385.60 ▲0.0386.02 ▲1.1138.51 ▼5.89
Posts /wp-admin/edit.php2,129 ▲292.05 ▲0.0335.71 ▼2.5333.63 ▼2.33
Add New Post /wp-admin/post-new.php1,550 ▲2223.04 ▼0.26659.70 ▼15.1158.04 ▼5.57
Media Library /wp-admin/upload.php1,426 ▲264.22 ▲0.0493.96 ▼9.6342.67 ▼4.07
TDB Job board /wp-admin/admin.php?page=jobsearch4,5895.91113.2329.34
Apply history /wp-admin/admin.php?page=jobsearchsubmenu8152.2224.3923.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'tdb_jb_on_uninstall' not found or invalid function name
  • Zombie tables detected upon uninstall: 20 tables
    • wp_js_param
    • wp_js_api
    • wp_js_langUsed
    • wp_js_category
    • wp_js_experiment
    • wp_js_applyDetail
    • wp_js_visa
    • wp_js_migration
    • wp_js_version
    • wp_js_education
    • ...
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_tdb_widget
    • widget_theysaidso_widget
    • widget_recent-posts

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 | 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 take a closer look at the following
  • 92× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_Method_RegisterFilter' not found in wp-content/plugins/jobsearch/helper/smarty/libs/sysplugins/smarty_internal_method_unregisterfilter.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/jobsearch/helper/smarty/libs/sysplugins/smarty_internal_compile_while.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_CacheResource' not found in wp-content/plugins/jobsearch/helper/smarty/libs/sysplugins/smarty_internal_cacheresource_file.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_Data' not found in wp-content/plugins/jobsearch/helper/smarty/libs/sysplugins/smarty_internal_templatebase.php:49
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/jobsearch/helper/smarty/libs/sysplugins/smarty_internal_compile_private_print_expression.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Internal_Method_CompileAllTemplates' not found in wp-content/plugins/jobsearch/helper/smarty/libs/sysplugins/smarty_internal_method_compileallconfig.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Resource' not found in wp-content/plugins/jobsearch/helper/smarty/libs/sysplugins/smarty_internal_resource_string.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Resource' not found in wp-content/plugins/jobsearch/helper/smarty/libs/sysplugins/smarty_internal_resource_file.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Resource_Custom' not found in wp-content/plugins/jobsearch/helper/smarty/demo/plugins/resource.mysqls.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Smarty_Resource' not found in wp-content/plugins/jobsearch/helper/smarty/libs/sysplugins/smarty_internal_resource_registered.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: recruit, job, job-search, recruiting, tamago...

jobsearch/jobsearch.php Passed 13 tests

The main file in "Tamago-DB Job board" v. 2.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
Job board integrated with the ATS/CRM Tamago-DB

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected73,085 lines of code in 417 files:
LanguageFilesBlank linesComment linesLines of code
PHP2423,04312,77133,366
JSON1260029,252
CSS103001253,154
Smarty30214192,508
PO File39811,0972,438
JavaScript34532262,315
Markdown224051
INI1001

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 122)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity22.53
▷ Minimum class complexity1.00
▷ Maximum class complexity394.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity122.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes202
▷ Abstract classes136.44%
▷ Concrete classes18993.56%
▷ Final classes00.00%
Methods1,232
▷ Static methods302.44%
▷ Public methods1,11490.42%
▷ Protected methods493.98%
▷ Private methods695.60%
Functions74
▷ Named functions7297.30%
▷ Anonymous functions22.70%
Constants549
▷ Global constants39672.13%
▷ Class constants15327.87%
▷ Public constants153100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.32MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png42.03KB16.39KB▼ 61.01%
assets/screenshot-3.png127.67KB44.21KB▼ 65.37%
assets/screenshot-2.png148.02KB45.19KB▼ 69.47%
assets/icon-128x128.png5.52KB4.55KB▼ 17.62%