Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.65ms] Passed 4 tests
This is a short check of server-side resources used by Print Label and Tracking Code for DPD
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.48 ▼3.03 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.84 ▼11.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.58 ▼4.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.59 ▼11.96 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.73 ▼0.96 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
activate_admin_dpd |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Print Label and Tracking Code for DPD
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.35 ▼0.06 | 2.09 ▲0.26 | 44.43 ▲2.03 |
Dashboard /wp-admin | 2,198 ▲24 | 5.65 ▲0.07 | 84.44 ▼6.71 | 37.35 ▲2.28 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.02 | 34.46 ▼0.25 | 32.54 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▼0.36 | 679.72 ▼7.74 | 53.10 ▲5.81 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.27 ▲0.09 | 95.05 ▼17.74 | 41.79 ▼5.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- activate_admin_dpd
- widget_theysaidso_widget
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/print-label-and-tracking-code-for-dpd/admin/template/gopremium.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/print-label-and-tracking-code-for-dpd/admin/init.php:10
- > PHP Notice
Undefined variable: order in wp-content/plugins/print-label-and-tracking-code-for-dpd/admin/template/labelform.php on line 13
- > PHP Fatal error
Uncaught Error: Call to a member function get_items() on null in wp-content/plugins/print-label-and-tracking-code-for-dpd/admin/template/labelform.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: shipping, package tracking, delivery plugin, print label, dpd
print-label-and-tracking-code-for-dpd/wp-dpd-print-label.php 77% from 13 tests
"Print Label and Tracking Code for DPD" version 4.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("print-label-and-tracking-code-for-dpd.php" instead of "wp-dpd-print-label.php")
- Git Repository: An alternative Git repository was detected
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,477 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 225 | 91 | 1,336 |
CSS | 13 | 203 | 199 | 894 |
PO File | 1 | 48 | 48 | 129 |
HTML | 1 | 34 | 11 | 92 |
JavaScript | 1 | 12 | 7 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 169.00 |
▷ Minimum class complexity | 169.00 |
▷ Maximum class complexity | 169.00 |
Average method complexity | 6.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.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 | 31 | |
▷ Static methods | 31 | 100.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
32 PNG files occupy 0.24MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_help/assets/images/settings.png | 39.17KB | 17.87KB | ▼ 54.37% |
(invalid) _help/__MACOSX/assets/blueprint-css/plugins/link-icons/icons/._doc.png | 0.23KB | 0.00KB | ▼ 100.00% |
_help/assets/blueprint-css/src/grid.png | 0.16KB | 0.10KB | ▼ 39.13% |
(invalid) _help/__MACOSX/assets/images/._htmlstructure.png | 0.32KB | 0.00KB | ▼ 100.00% |
(invalid) _help/__MACOSX/assets/blueprint-css/plugins/buttons/icons/._cross.png | 0.23KB | 0.00KB | ▼ 100.00% |