Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/wc-delivery-lpost/class-lpost_wc.php+1834
syntax error, unexpected 'endif' (T_ENDIF)
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.91ms] Passed 4 tests
Analyzing server-side resources used by Delivery L-Post for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.68 ▲10.60 |
Dashboard /wp-admin | 3.31 ▼0.04 | 51.92 ▼11.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.84 ▼2.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.34 ▼25.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.55 ▲3.10 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Delivery L-Post for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.33 ▼1.05 | 5.70 ▲4.03 | 42.00 ▼0.23 |
Dashboard /wp-admin | 2,203 ▲15 | 5.84 ▼0.04 | 97.24 ▼13.17 | 38.87 ▼3.67 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 1.99 ▼0.04 | 35.20 ▼7.47 | 32.91 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.91 ▲0.33 | 691.26 ▲65.89 | 54.99 ▼7.27 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.08 | 93.81 ▼9.34 | 45.52 ▼1.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Parse error
syntax error, unexpected 'endif' (T_ENDIF) in wp-content/plugins/wc-delivery-lpost/class-lpost_wc.php on line 1834
- > PHP Fatal error
Uncaught Error: Class 'LPost_WC' not found in wp-content/plugins/wc-delivery-lpost/lpost-wc-helper.php:4
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
- Screenshots: Please add descriptions for these screenshots #0, #0, #0 in wc-delivery-lpost/assets to your readme.txt
wc-delivery-lpost/lpost-wc-delivery.php 77% from 13 tests
The primary PHP file in "Delivery L-Post for WooCommerce" version 1.52 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-delivery-lpost.php" instead of "lpost-wc-delivery.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "5.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,751 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 552 | 317 | 2,801 |
JavaScript | 3 | 125 | 46 | 589 |
CSS | 3 | 26 | 16 | 323 |
SVG | 2 | 0 | 0 | 38 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 165.67 |
▷ Minimum class complexity | 83.00 |
▷ Maximum class complexity | 286.00 |
Average method complexity | 7.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 77 | 95.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 4.94% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/colorbox/images/border1.png | 0.61KB | 0.82KB | 0.00% |
assets/js/colorbox/images/border2.png | 0.11KB | 0.16KB | 0.00% |
assets/images/L-Post-logo-yandex-map-pin.png | 41.13KB | 15.94KB | ▼ 61.26% |