62% matador-jobs

Code Review | Matador Jobs Lite

WordPress plugin Matador Jobs Lite scored62%from 54 tests.

About plugin

  • Plugin page: matador-jobs
  • Plugin version: 3.8.15
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.6+
  • WordPress version: 6.3.1
  • First release: Jul 6, 2018
  • Latest release: Nov 8, 2023
  • Number of updates: 74
  • Update frequency: every 26.8 days
  • Top authors: jeremyescott (70.27%)pbearne (31.08%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /5,028 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.35MB] [CPU: ▲17.29ms] Passed 4 tests

An overview of server-side resources used by Matador Jobs Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.68 ▲1.2261.63 ▲18.48
Dashboard /wp-admin4.70 ▲1.3966.89 ▲20.13
Posts /wp-admin/edit.php4.75 ▲1.3973.63 ▲24.94
Add New Post /wp-admin/post-new.php7.41 ▲1.52100.04 ▲5.62
Media Library /wp-admin/upload.php4.64 ▲1.4163.39 ▲27.50
Job Types /wp-admin/edit-tags.php?taxonomy=matador-types&post_type=matador-job-listings4.6360.46
Job Locations /wp-admin/edit-tags.php?taxonomy=matador-locations&post_type=matador-job-listings4.6356.16
Job Listings /wp-admin/edit.php?post_type=matador-job-listings4.6960.50
Job Categories /wp-admin/edit-tags.php?taxonomy=matador-categories&post_type=matador-job-listings4.6355.88
Bullhorn Connection Assistant /wp-admin/edit.php?post_type=matador-job-listings&page=connect-to-bullhorn5.2154.94
/wp-admin/admin.php?page=matador_api_debug4.5352.93
Settings /wp-admin/edit.php?post_type=matador-job-listings&page=matador-settings5.5959.26

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

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

Browser metrics Passed 4 tests

Matador Jobs Lite: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲9514.34 ▲0.001.55 ▼0.1036.91 ▼7.25
Dashboard /wp-admin2,260 ▲825.54 ▼0.2096.08 ▼9.0376.08 ▲35.85
Posts /wp-admin/edit.php2,166 ▲632.14 ▲0.1440.21 ▼0.5741.15 ▲4.38
Add New Post /wp-admin/post-new.php1,588 ▲6223.25 ▲0.02677.76 ▲71.13170.12 ▲117.82
Media Library /wp-admin/upload.php1,465 ▲714.13 ▼0.05101.66 ▲4.0274.52 ▲34.32
Job Types /wp-admin/edit-tags.php?taxonomy=matador-types&post_type=matador-job-listings1,3132.2832.1234.89
Job Locations /wp-admin/edit-tags.php?taxonomy=matador-locations&post_type=matador-job-listings1,3072.2827.3132.67
Job Listings /wp-admin/edit.php?post_type=matador-job-listings1,1831.9638.7432.89
Job Categories /wp-admin/edit-tags.php?taxonomy=matador-categories&post_type=matador-job-listings1,3132.4325.9734.34
Bullhorn Connection Assistant /wp-admin/edit.php?post_type=matador-job-listings&page=connect-to-bullhorn9472.0323.5636.71
/wp-admin/admin.php?page=matador_api_debug8482.0426.8826.38
Settings /wp-admin/edit.php?post_type=matador-job-listings&page=matador-settings2,0891.8228.2345.40

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • matador_ET_last_phone_home
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=matador-job-listings&page=matador-settings
    • > Notice in wp-content/plugins/matador-jobs/includes/admin/class-settings-fields.php+1080
    Undefined index: description

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/matador-jobs/vendor/mustache/mustache/bin/build_bootstrap.php
  • 87× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/matador-jobs/vendor/mustache/mustache/test/Mustache/Test/Cache/AbstractCacheTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/matador-jobs/vendor/mustache/mustache/test/Mustache/Test/Exception/UnknownFilterExceptionTest.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function matador\\esc_html_e() in wp-content/plugins/matador-jobs/includes/admin/templates/bullhorn-connection-assistant-progress.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/matador-jobs/vendor/mustache/mustache/test/Mustache/Test/ContextTest.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/matador-jobs/vendor/mustache/mustache/src/Mustache/Loader/ArrayLoader.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Mustache_Loader_FilesystemLoader' not found in wp-content/plugins/matador-jobs/vendor/mustache/mustache/src/Mustache/Loader/ProductionFilesystemLoader.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/matador-jobs/vendor/mustache/mustache/test/Mustache/Test/Loader/CascadingLoaderTest.php:15
    • > PHP Notice
      Undefined variable: progress in wp-content/plugins/matador-jobs/includes/admin/templates/bullhorn-connection-assistant-progress.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'Mustache_Test_FunctionalTestCase' not found in wp-content/plugins/matador-jobs/vendor/mustache/mustache/test/Mustache/Test/Functional/HigherOrderSectionsTest.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/matador-jobs/vendor/mustache/mustache/test/Mustache/Test/Functional/MustacheInjectionTest.php:16

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

matador-jobs/matador-jobs.php Passed 13 tests

The main file in "Matador Jobs Lite" v. 3.8.15 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
Connect your Bullhorn Account with your WordPress site and display your jobs on your WordPress site.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please make sure to remedy the following
  • For security reasons, never distribute binary or executable files with your plugin
    • .ms - Maxwell Script in Maxwell Render
      • wp-content/plugins/matador-jobs/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
      • wp-content/plugins/matador-jobs/vendor/mustache/mustache/test/fixtures/templates/beta.ms
30,655 lines of code in 379 files:
LanguageFilesBlank linesComment linesLines of code
PHP3148,74124,07626,217
XML3202,016
CSS67481,074
JavaScript1417868997
Mustache3610145
JSON300134
Markdown237071
SVG1011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity15.69
▷ Minimum class complexity1.00
▷ Maximum class complexity375.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces23
Interfaces14
Traits14
Classes211
▷ Abstract classes136.16%
▷ Concrete classes19893.84%
▷ Final classes3718.69%
Methods1,377
▷ Static methods51337.25%
▷ Public methods1,11180.68%
▷ Protected methods745.37%
▷ Private methods19213.94%
Functions155
▷ Named functions10668.39%
▷ Anonymous functions4931.61%
Constants73
▷ Global constants00.00%
▷ Class constants73100.00%
▷ Public constants73100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/matador-jobs-avatar-on-white.png4.67KB1.50KB▼ 67.79%