Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.73ms] Passed 4 tests
A check of server-side resources used by Lagersystem.dk: Parcelpickup locator for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 25.24 ▼15.61 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.88 ▼6.93 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 44.29 ▼5.51 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 81.34 ▼2.85 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.03 ▲5.66 |
LS Parcelpickup /wp-admin/options-general.php?page=lagersysten-parcelpickup-admin-page | 3.25 | 42.38 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lagersystem.dk: Parcelpickup locator for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,473 ▼273 | 14.83 ▲0.62 | 0.52 ▼1.22 | 15.99 ▼28.70 |
Dashboard /wp-admin | 2,217 ▲29 | 5.85 ▲0.95 | 95.63 ▼21.56 | 42.71 ▼3.69 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.03 ▲0.04 | 33.67 ▼2.17 | 32.99 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,521 ▲7 | 23.30 ▲5.77 | 669.54 ▼0.35 | 71.51 ▲16.19 |
Media Library /wp-admin/upload.php | 1,396 ▲17 | 4.25 ▲0.08 | 111.62 ▲14.27 | 47.68 ▲1.11 |
LS Parcelpickup /wp-admin/options-general.php?page=lagersysten-parcelpickup-admin-page | 927 | 2.07 | 28.34 | 39.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lagersystem-dk-parcelpickup-locator-for-woocommerce/admin/partials/lagersystem-parcelpickup-woocommerce-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== lagersystem-dk-parcelpickup-locator-for-woocommerce ===
)
lagersystem-dk-parcelpickup-locator-for-woocommerce/lagersystem-parcelpickup-woocommerce.php 77% from 13 tests
Analyzing the main PHP file in "Lagersystem.dk: Parcelpickup locator for Woocommerce" version 2.0.10
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 227 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("lagersystem-dk-parcelpickup-locator-for-woocommerce.php" instead of "lagersystem-parcelpickup-woocommerce.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,000 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 83 | 17 | 694 |
PHP | 12 | 211 | 588 | 693 |
JavaScript | 4 | 79 | 40 | 493 |
HTML | 1 | 3 | 0 | 60 |
YAML | 2 | 2 | 0 | 38 |
XML | 3 | 0 | 0 | 22 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 2 | 3.45% |
▷ Public methods | 52 | 89.66% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.34% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/house.png | 0.57KB | 0.53KB | ▼ 7.85% |