Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼148.32ms] Passed 4 tests
A check of server-side resources used by Orders Track Parcel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 40.42 ▲16.04 |
Dashboard /wp-admin | 3.10 ▲0.04 | 48.44 ▼10.12 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 45.90 ▼5.19 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 93.48 ▼579.78 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 36.79 ▲1.80 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Orders Track Parcel
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.80 ▲0.15 | 8.43 ▲0.81 | 50.84 ▲1.12 |
Dashboard /wp-admin | 2,973 ▲42 | 5.88 ▼0.06 | 139.56 ▼13.10 | 106.54 ▼13.46 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 69.32 ▼2.35 | 94.84 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,594 ▼21 | 18.84 ▼2.39 | 384.58 ▲96.40 | 115.79 ▲2.83 |
Media Library /wp-admin/upload.php | 1,804 ▼3 | 5.05 ▲0.07 | 160.59 ▲3.94 | 128.49 ▼5.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/orders-track-parcel/woocommerce-orders-parcel.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: parcel_links in wp-content/plugins/orders-track-parcel/pages/tracking-form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/orders-track-parcel/pages/tracking-form.php:13
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/orders-track-parcel/pages/tracking-form.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== orders-track-parcel ===
)
orders-track-parcel/woocommerce-orders-parcel.php 77% from 13 tests
The principal PHP file in "Orders Track Parcel" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 168 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("orders-track-parcel.php" instead of "woocommerce-orders-parcel.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected177 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 0 | 11 | 129 |
JavaScript | 2 | 6 | 0 | 33 |
CSS | 2 | 1 | 0 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected