Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/postapanduri/inc/core/class-activator.php+48
Use of undefined constant WOOCOMMERCE_VERSION - assumed 'WOOCOMMERCE_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.56ms] Passed 4 tests
Server-side resources used by PostaPanduri
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.15 ▼4.23 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.30 ▼15.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.38 ▼4.22 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.94 ▲3.84 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.69 ▼2.69 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 126 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 PostaPanduri
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.07 ▼0.27 | 1.75 ▲0.15 | 41.98 ▼1.66 |
Dashboard /wp-admin | 2,195 ▲21 | 5.61 ▲0.06 | 94.70 ▼8.45 | 43.87 ▲1.79 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.02 | 34.64 ▼1.47 | 34.72 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.24 ▼0.01 | 612.91 ▼84.21 | 47.98 ▼2.30 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.17 ▼0.00 | 99.73 ▼8.83 | 42.32 ▼4.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/postapanduri/inc/front/templates/mobile/pachetomat-postapanduri.php
- > /wp-content/plugins/postapanduri/inc/front/partials/plugin-postapanduri-gmaps.php
- > /wp-content/plugins/postapanduri/inc/front/templates/mobile/pachetomate-postapanduri.php
- > /wp-content/plugins/postapanduri/inc/front/templates/pachetomate-postapanduri.php
- > /wp-content/plugins/postapanduri/inc/front/templates/pachetomat-postapanduri.php
- 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/postapanduri/inc/front/templates/pachetomat-postapanduri.php:35
- > PHP Notice
Trying to get property 'dp_oras' of non-object in wp-content/plugins/postapanduri/inc/front/templates/mobile/pachetomat-postapanduri.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'PostaPanduri\\Inc\\Libraries\\sylouuu\\Curl\\Curl' not found in wp-content/plugins/postapanduri/inc/libraries/sylouuu/curl/method/class-options.php:12
- > PHP Fatal error
Uncaught Error: Class 'PostaPanduri\\Inc\\Libraries\\sylouuu\\Curl\\Curl' not found in wp-content/plugins/postapanduri/inc/libraries/sylouuu/curl/method/class-post.php:12
- > PHP Fatal error
Uncaught Error: Class 'PostaPanduri\\Inc\\Libraries\\phpseclib\\Crypt\\Base' not found in wp-content/plugins/postapanduri/inc/libraries/phpseclib/crypt/class-twofish.php:48
- > PHP Notice
Undefined variable: pachetomat in wp-content/plugins/postapanduri/inc/front/templates/mobile/pachetomat-postapanduri.php on line 8
- > PHP Notice
Undefined variable: pachetomat in wp-content/plugins/postapanduri/inc/front/templates/pachetomat-postapanduri.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_print_styles() in wp-content/plugins/postapanduri/inc/front/templates/pachetomate-postapanduri.php:21
- > PHP Notice
Undefined variable: pachetomat in wp-content/plugins/postapanduri/inc/front/templates/mobile/pachetomat-postapanduri.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/postapanduri/inc/core/class-wc-postapanduri.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: ecommerce, postapanduri, pachetomat
postapanduri/postapanduri.php 85% from 13 tests
The main PHP script in "PostaPanduri" version 2.1.3 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "6.9.0")
- Description: Keep the plugin description shorter than 140 characters (currently 192 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin14,948 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 1,850 | 5,192 | 11,163 |
JavaScript | 66 | 565 | 303 | 2,946 |
CSS | 4 | 99 | 9 | 469 |
PO File | 1 | 168 | 245 | 368 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 57.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 423.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 2 | 7.14% |
▷ Concrete classes | 26 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 386 | |
▷ Static methods | 19 | 4.92% |
▷ Public methods | 369 | 95.60% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 4.40% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 72 | |
▷ Global constants | 23 | 31.94% |
▷ Class constants | 49 | 68.06% |
▷ Public constants | 49 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo_icon.png | 3.05KB | 1.71KB | ▼ 43.86% |
assets/img/pachetomat-icon.png | 3.61KB | 0.92KB | ▼ 74.43% |
assets/img/logo.png | 3.05KB | 1.71KB | ▼ 43.86% |
assets/img/location-pin-posta.png | 1.28KB | 0.95KB | ▼ 25.63% |
assets/img/logo-postapanduri.png | 23.94KB | 7.29KB | ▼ 69.57% |