54% personio-integration-light

Code Review | Personio Integration Light

WordPress plugin Personio Integration Light scored54%from 54 tests.

About plugin

  • Plugin page: personio-integrat...
  • Plugin version: 2.6.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 14, 2022
  • Latest release: Nov 30, 2023
  • Number of updates: 58
  • Update frequency: every 8.7 days
  • Top authors: laolaweb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,576 total downloads

Benchmarks

Plugin footprint 30% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.32MB] [CPU: ▲17.39ms] Passed 4 tests

A check of server-side resources used by Personio Integration Light
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9748.05 ▲4.68
Dashboard /wp-admin4.74 ▲1.4072.14 ▲8.33
Posts /wp-admin/edit.php4.83 ▲1.4783.28 ▲39.11
Add New Post /wp-admin/post-new.php7.79 ▲1.90120.67 ▲28.92
Media Library /wp-admin/upload.php4.69 ▲1.4667.26 ▲27.62
All Positions /wp-admin/edit.php?post_type=personioposition5.63148.54
Settings /wp-admin/edit.php?post_type=personioposition&page=personioPositions4.6659.57

Server storage [IO: ▲0.60MB] [DB: ▲0.05MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 107 new files
Database: 1 new table, 43 new options
New tables
wp_personio_import_logs
New WordPress options
widget_theysaidso_widget
personioIntegrationTemplateExcerptDefaults
personioIntegrationTemplateFilter
personioIntegrationMainLanguage
personioIntegrationExtendSearch
piImportCount
personioIntegrationTemplateBackToListButton
widget_recent-comments
personioPositionLanguagesen
personioIntegrationDeleteOnUninstall
...

Browser metrics Passed 4 tests

Personio Integration Light: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10814.32 ▼0.031.99 ▲0.2040.25 ▼11.90
Dashboard /wp-admin2,232 ▲545.58 ▼0.1798.67 ▼15.0778.75 ▲31.86
Posts /wp-admin/edit.php2,153 ▲532.01 ▲0.0737.60 ▼2.8233.44 ▲0.13
Add New Post /wp-admin/post-new.php1,574 ▲4823.57 ▲2.47764.25 ▲85.5849.79 ▲4.16
Media Library /wp-admin/upload.php1,446 ▲494.29 ▲0.0997.16 ▼2.7780.79 ▲36.24
All Positions /wp-admin/edit.php?post_type=personioposition2,5982.4440.2537.44
Settings /wp-admin/edit.php?post_type=personioposition&page=personioPositions9502.0628.3741.99

Uninstaller [IO: ▲0.60MB] [DB: ▲0.05MB] 0% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/personio-integration-light/uninstall.php+10
    Constant WP_PERSONIO_INTEGRATION_PLUGIN already defined
  • Incomplete uninstall procedure, leaving 107 files (0.60MB) in the plugin directory
    • (new file) blocks/application-button/block.json
    • (new file) blocks/components.js
    • (new file) blocks/application-button/build/index.js
    • (new file) blocks/application-button/build/style-index.css
    • (new file) admin/styles.css
    • (new file) blocks/application-button/build/index.css
    • (new file) admin/js.js
    • (new file) blocks/description/block.json
    • (new file) admin/index.php
    • (new file) blocks/application-button/build/index.asset.php
    • ...
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_personio_import_logs
  • Zombie WordPress options detected upon uninstall: 44 options
    • recovery_mode_email_last_sent
    • personioIntegrationTemplateContentDefaults
    • personioIntegrationTemplateFilter
    • personioIntegrationTemplateBackToListButton
    • personioIntegrationEnableFilter
    • personioIntegrationLightInstallDate
    • personioIntegrationMainLanguage
    • personioTaxonomyDefaults
    • personioIntegrationMaxAgeLogEntries
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 fix the following items
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/personio-integration-light/templates/parts/archive/default.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/personio-integration-light/inc/settings/permissions.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/personio-integration-light/inc/settings/import.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/personio-integration-light/inc/settings/general.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/personio-integration-light/inc/admin.php:88
    • > PHP Fatal error
      Trait 'personioIntegration\\helper_cli' not found in wp-content/plugins/personio-integration-light/classes/class-cli.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/personio-integration-light/templates/parts/archive/listing.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/personio-integration-light/inc/settings/tracking.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/personio-integration-light/inc/settings/templates.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/personio-integration-light/inc/settings/settings.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: employee, personio, jobs, recruitment

personio-integration-light/personio-integration-light.php 92% from 13 tests

"Personio Integration Light" version 2.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.9.3" instead of "5.9")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin7,164 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
PHP601,0133,0366,400
JSON700466
JavaScript93119160
CSS6343117
XML10017
HTML210124

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity23.67
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces2
Interfaces0
Traits2
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods160
▷ Static methods5635.00%
▷ Public methods13685.00%
▷ Protected methods31.88%
▷ Private methods2113.12%
Functions154
▷ Named functions14795.45%
▷ Anonymous functions74.55%
Constants36
▷ Global constants38.33%
▷ Class constants3391.67%
▷ Public constants33100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
gfx/personio_icon.png8.22KB0.38KB▼ 95.40%
gfx/list_en.png29.83KB8.63KB▼ 71.05%
gfx/list_de.png29.89KB8.75KB▼ 70.74%