10% walkme-integration

Code Review | WalkMe Integration

WordPress plugin WalkMe Integration scored 10% from 54 tests.

About plugin

  • Plugin page: walkme-integration
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2015
  • Latest release: Oct 4, 2015
  • Number of updates: 3
  • Update frequency: every 75.3 days
  • Top authors: ryanshoover (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,041 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/walkme-integration/walkme.php+14
    require_once(wp-content/plugins/walkme-integration/lib/walkme-class.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.74ms] Passed 4 tests

An overview of server-side resources used by WalkMe Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.86 ▼5.87
Dashboard /wp-admin3.31 ▲0.0045.31 ▼4.14
Posts /wp-admin/edit.php3.36 ▲0.0049.50 ▼0.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.60 ▼4.84
Media Library /wp-admin/upload.php3.23 ▲0.0034.28 ▲0.14

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WalkMe Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.63 ▼0.681.67 ▼0.3740.45 ▼12.62
Dashboard /wp-admin2,206 ▲184.86 ▲0.00108.37 ▲5.9546.39 ▲4.12
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0240.66 ▲0.3433.63 ▼3.67
Add New Post /wp-admin/post-new.php1,542 ▲2818.16 ▲0.54590.65 ▼77.3354.97 ▼1.90
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0195.39 ▼1.0839.85 ▼1.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/walkme-integration/walkme.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WalkMe' not found in wp-content/plugins/walkme-integration/lib/admin.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: elearning, walkme

walkme-integration/walkme.php 92% from 13 tests

Analyzing the main PHP file in "WalkMe Integration" version 1.0.1
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("walkme-integration.php" instead of "walkme.php")

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
No dangerous file extensions were detected99 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3523299

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods433.33%
▷ Public methods650.00%
▷ Protected methods216.67%
▷ Private methods433.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
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
img/logo.png4.88KB2.74KB▼ 43.90%