Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.02ms] Passed 4 tests
A check of server-side resources used by Wijntransport
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.93 ▼0.71 |
Dashboard /wp-admin | 3.34 ▼0.04 | 49.46 ▼20.33 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.55 ▼3.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.79 ▼11.05 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.27 ▲1.61 |
Settings /wp-admin/admin.php?page=wijntransport-settings | 3.25 | 29.77 |
Blocked products /wp-admin/admin.php?page=wijntransport-blocked-products | 3.31 | 297.89 |
Server storage [IO: ▲0.44MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 221 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wijntransport_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Wijntransport
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲155 | 13.35 ▼0.95 | 1.69 ▼0.09 | 46.74 ▼1.58 |
Dashboard /wp-admin | 2,293 ▲105 | 5.85 ▲0.96 | 98.33 ▼11.21 | 39.80 ▼3.57 |
Posts /wp-admin/edit.php | 2,179 ▲90 | 2.05 ▲0.05 | 34.49 ▼4.85 | 35.14 ▼10.61 |
Add New Post /wp-admin/post-new.php | 1,557 ▲21 | 23.47 ▲0.14 | 592.64 ▲15.56 | 57.34 ▲3.89 |
Media Library /wp-admin/upload.php | 1,476 ▲88 | 4.37 ▲0.09 | 96.20 ▼3.72 | 43.79 ▲0.08 |
Settings /wp-admin/admin.php?page=wijntransport-settings | 905 | 2.04 | 26.61 | 26.65 |
Blocked products /wp-admin/admin.php?page=wijntransport-blocked-products | 974 | 2.08 | 25.55 | 35.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- wijntransport_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=wijntransport-blocked-products
- > Notice in wp-content/plugins/wijntransport/admin/partials/wijntransport-admin-block-options.php+29
Undefined index: search
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wijntransport/includes/class-wijntransport-ajax.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wijntransport/admin/partials/wijntransport-admin-options.php:17
- > PHP Fatal error
Uncaught Error: Class 'Wijntransport_API' not found in wp-content/plugins/wijntransport/admin/partials/wijntransport-admin-block-options.php:14
- > PHP Fatal error
Uncaught Error: Class 'Wijntransport_API' not found in wp-content/plugins/wijntransport/templates/wine-listing-template.php:18
- > PHP Fatal error
Uncaught Error: Class 'Wijntransport_API' not found in wp-content/plugins/wijntransport/templates/wine-single-template.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #4 in wijntransport/assets to your readme.txt
wijntransport/wijntransport.php Passed 13 tests
The primary PHP file in "Wijntransport" version 1.4.1 is used by WordPress to initiate all plugin functionality
65 characters long description:
Host a catalog of Wijntransport.com products on your own website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,054 lines of code in 209 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 299 | 40 | 1,833 |
PHP | 17 | 293 | 742 | 1,283 |
PO File | 3 | 159 | 231 | 407 |
JavaScript | 4 | 58 | 25 | 287 |
SVG | 180 | 0 | 1 | 199 |
YAML | 1 | 0 | 0 | 45 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 2 | 3.77% |
▷ Public methods | 48 | 90.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.43% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/product-placeholder.png | 10.17KB | 4.89KB | ▼ 51.97% |