84% wp-bullhorn-staffing

Code Review | Bullhorn api client for wordpress

WordPress plugin Bullhorn api client for wordpress scored84%from 54 tests.

About plugin

  • Plugin page: wp-bullhorn-staffing
  • Plugin version: 0.0.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.3
  • WordPress version: 6.3.1
  • First release: May 19, 2020
  • Latest release: May 29, 2020
  • Number of updates: 9
  • Update frequency: every 1.1 days
  • Top authors: yaroslawww (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /576 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.97MB] [CPU: ▼4.49ms] Passed 4 tests

A check of server-side resources used by Bullhorn api client for wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.45 ▲0.9942.50 ▲1.23
Dashboard /wp-admin4.29 ▲0.9549.68 ▼14.66
Posts /wp-admin/edit.php4.34 ▲0.9854.03 ▲7.17
Add New Post /wp-admin/post-new.php6.87 ▲0.9883.71 ▼11.71
Media Library /wp-admin/upload.php4.22 ▲0.9843.22 ▲8.98

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 306 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Bullhorn api client for wordpress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.111.76 ▼0.3840.84 ▼12.23
Dashboard /wp-admin2,209 ▲214.86 ▼0.09102.76 ▼4.0838.39 ▼0.61
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0236.11 ▼5.5833.99 ▼3.48
Add New Post /wp-admin/post-new.php1,535 ▲2123.31 ▲5.88685.59 ▲4.2659.97 ▲3.00
Media Library /wp-admin/upload.php1,388 ▲64.20 ▲0.03111.49 ▲9.9747.97 ▼2.66

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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

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 fix the following items
  • 115× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Class 'Tightenco\\Collect\\Support\\Traits\\Macroable' not found in wp-content/plugins/wp-bullhorn-staffing/vendor/tightenco/collect/src/Collect/Support/alias.php on line 19
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface' not found in wp-content/plugins/wp-bullhorn-staffing/vendor/symfony/var-dumper/Dumper/ContextProvider/CliContextProvider.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/wp-bullhorn-staffing/vendor/psr/http-message/src/ServerRequestInterface.php:43
    • > PHP Fatal error
      Uncaught Error: Interface 'Tightenco\\Collect\\Support\\Enumerable' not found in wp-content/plugins/wp-bullhorn-staffing/vendor/tightenco/collect/src/Collect/Support/Collection.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-bullhorn-staffing/vendor/guzzlehttp/psr7/src/AppendStream.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/wp-bullhorn-staffing/vendor/guzzlehttp/psr7/src/Request.php:12
    • > PHP Warning
      Class 'Tightenco\\Collect\\Contracts\\Support\\Jsonable' not found in wp-content/plugins/wp-bullhorn-staffing/vendor/tightenco/collect/src/Collect/Support/alias.php on line 19
    • > PHP Warning
      Class 'Tightenco\\Collect\\Support\\HigherOrderCollectionProxy' not found in wp-content/plugins/wp-bullhorn-staffing/vendor/tightenco/collect/src/Collect/Support/alias.php on line 19
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-bullhorn-staffing/vendor/guzzlehttp/psr7/src/PumpStream.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/wp-bullhorn-staffing/vendor/guzzlehttp/psr7/src/UploadedFile.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: bullhorn

wp-bullhorn-staffing/bootstrap.php 92% from 13 tests

The main file in "Bullhorn api client for wordpress" v. 0.0.8 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: It is recommended to name the main PHP file as the plugin slug ("wp-bullhorn-staffing.php" instead of "bootstrap.php")

Code Analysis Passed 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 detected28,216 lines of code in 284 files:
LanguageFilesBlank linesComment linesLines of code
PHP2384,49210,30922,720
Markdown221,32903,902
JSON16101,376
CSS100130
XML30056
Dockerfile18010
JavaScript10010
make1409
Bourne Shell1203

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity13.72
▷ Minimum class complexity1.00
▷ Maximum class complexity155.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces41
Interfaces30
Traits12
Classes170
▷ Abstract classes84.71%
▷ Concrete classes16295.29%
▷ Final classes2012.35%
Methods1,623
▷ Static methods31319.29%
▷ Public methods1,32381.52%
▷ Protected methods1076.59%
▷ Private methods19311.89%
Functions282
▷ Named functions11540.78%
▷ Anonymous functions16759.22%
Constants145
▷ Global constants4531.03%
▷ Class constants10068.97%
▷ Public constants9999.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin