Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼139.71ms] Passed 4 tests
A check of server-side resources used by Tapuz Delivery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 33.72 ▲9.17 |
Dashboard /wp-admin | 3.08 ▲0.03 | 46.20 ▲1.80 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 38.54 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 89.89 ▼548.51 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 32.80 ▼8.70 |
Server storage [IO: ▲4.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 1 new option
New WordPress options |
---|
tapuz_install_date |
Browser metrics Passed 4 tests
Tapuz Delivery: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲93 | 15.88 ▲0.47 | 6.02 ▼2.22 | 41.64 ▼9.04 |
Dashboard /wp-admin | 2,983 ▲52 | 5.88 ▼0.07 | 140.85 ▼1.72 | 115.98 ▼10.79 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.70 ▲0.02 | 66.86 ▼1.18 | 89.37 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,610 ▼62 | 18.91 ▲0.04 | 373.41 ▲1.58 | 110.44 ▼1.11 |
Media Library /wp-admin/upload.php | 1,817 ▲10 | 5.02 ▲0.02 | 159.73 ▲12.21 | 124.44 ▼9.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- tapuz_install_date
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/tapuz-delivery/vendors/TCPDF/tcpdf.php on line 17778
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/tapuz-delivery/vendors/TCPDF/tcpdf.php on line 17778
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/tapuz-delivery/vendors/TCPDF/tcpdf.php on line 17778
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Plugin Name: You should set the name of your plugin on the first line (
=== tapuz-delivery ===
) - Screenshots: Add images for these screenshots: #1 (Open delivery), #2 (Delivery status)
tapuz-delivery/tapuz-delivery.php Passed 13 tests
The main PHP file in "Tapuz Delivery" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
59 characters long description:
A plugin for Tapuz Delivery orders from within WooCommerce.
Code Analysis 95% from 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
There were no executable files found in this plugin47,204 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,522 | 11,571 | 46,651 |
JavaScript | 1 | 6 | 20 | 204 |
PO File | 1 | 75 | 83 | 186 |
CSS | 2 | 14 | 0 | 123 |
JSON | 1 | 0 | 0 | 40 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 4,349)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 499)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 340.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,349.00 |
Average method complexity | 9.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 499.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 727 | |
▷ Static methods | 107 | 14.72% |
▷ Public methods | 445 | 61.21% |
▷ Protected methods | 276 | 37.96% |
▷ Private methods | 6 | 0.83% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 85 | |
▷ Global constants | 85 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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 |
admin/img/hatammy_logo.png | 10.02KB | 4.16KB | ▼ 58.47% |