Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > User error in wp-content/plugins/lockme-calendars-integration/build/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16.
Server metrics [RAM: ▼1.91MB] [CPU: ▼57.23ms] Passed 4 tests
This is a short check of server-side resources used by Lockme OAuth2 calendars integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.51 ▼31.46 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.95 ▼46.93 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.46 ▼46.12 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.44 ▼102.79 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.12 ▼33.06 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 256 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Lockme OAuth2 calendars integration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.42 ▼0.23 | 1.70 ▲0.09 | 43.58 ▲1.56 |
Dashboard /wp-admin | 2,189 ▲15 | 5.65 ▲0.07 | 96.88 ▲0.42 | 75.07 ▲32.49 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.02 | 35.77 ▼5.31 | 33.94 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 22.05 ▼1.08 | 642.26 ▲3.37 | 52.12 ▼4.86 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.11 ▼0.08 | 95.53 ▼8.53 | 40.08 ▼2.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > User error in wp-content/plugins/lockme-calendars-integration/build/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16.
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- widget_recent-posts
- lockme_db_ver
- can_compress_scripts
- lockme_url_key
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/lockme-calendars-integration/lockme-calendars-integration.php
- 131× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/lockme-calendars-integration/build/vendor/symfony/lock/Store/PostgreSqlStore.php on line 49
- > PHP Fatal error
Uncaught Error: Class 'Lockme\\OAuth2\\Client\\Provider\\Lockme' not found in wp-content/plugins/lockme-calendars-integration/src/Libs/WrappedProvider.php:9
- > PHP Fatal error
Uncaught Error: Interface 'LockmeIntegration\\PluginInterface' not found in wp-content/plugins/lockme-calendars-integration/src/Plugins/Appointments.php:11
- > PHP Fatal error
Uncaught Error: Class 'LockmeDep\\GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/lockme-calendars-integration/build/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:14
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/lockme-calendars-integration/build/vendor/symfony/lock/Store/DoctrineDbalStore.php on line 56
- > PHP Fatal error
Uncaught Error: Interface 'LockmeDep\\LockmeIntegration\\PluginInterface' not found in wp-content/plugins/lockme-calendars-integration/build/src/Plugins/Dopbsp.php:10
- > PHP Fatal error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16. in wp-content/plugins/lockme-calendars-integration/build/vendor/composer/platform_check.php on line 24
- > PHP Fatal error
Uncaught Error: Interface 'LockmeIntegration\\PluginInterface' not found in wp-content/plugins/lockme-calendars-integration/src/Plugins/Cpabc.php:11
- > PHP Fatal error
Uncaught Error: Interface 'LockmeDep\\Symfony\\Component\\Lock\\Exception\\ExceptionInterface' not found in wp-content/plugins/lockme-calendars-integration/build/vendor/symfony/lock/Exception/InvalidArgumentException.php:16
- > PHP Fatal error
Uncaught Error: Interface 'LockmeDep\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/lockme-calendars-integration/build/vendor/guzzlehttp/promises/src/RejectedPromise.php:11
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Main settings page for connection with Lockme API) image not found
- Donate link: Invalid URI ("")
lockme-calendars-integration/lockme-calendars-integration.php Passed 13 tests
The primary PHP file in "Lockme OAuth2 calendars integration" version 2.3.2 is used by WordPress to initiate all plugin functionality
70 characters long description:
This plugin integrates popular booking systems with Lockme OAuth2 API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected23,179 lines of code in 243 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 239 | 1,336 | 10,814 | 21,513 |
JSON | 3 | 0 | 0 | 1,663 |
Bourne Shell | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 16.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 42 | |
Traits | 14 | |
Classes | 160 | |
▷ Abstract classes | 3 | 1.88% |
▷ Concrete classes | 157 | 98.12% |
▷ Final classes | 39 | 24.84% |
Methods | 1,519 | |
▷ Static methods | 154 | 10.14% |
▷ Public methods | 1,177 | 77.49% |
▷ Protected methods | 111 | 7.31% |
▷ Private methods | 231 | 15.21% |
Functions | 285 | |
▷ Named functions | 57 | 20.00% |
▷ Anonymous functions | 228 | 80.00% |
Constants | 83 | |
▷ Global constants | 5 | 6.02% |
▷ Class constants | 78 | 93.98% |
▷ Public constants | 65 | 83.33% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 44.54KB | 17.32KB | ▼ 61.13% |