10% postapanduri

Code Review | PostaPanduri

WordPress plugin PostaPanduri scored10%from 54 tests.

About plugin

  • Plugin page: postapanduri
  • Plugin version: 2.1.3
  • PHP compatiblity: 5.5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.9.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 4, 2021
  • Latest release: Nov 8, 2023
  • Number of updates: 26
  • Update frequency: every 38.7 days
  • Top authors: adrianpo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,252 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.15 ▼4.23
Dashboard /wp-admin3.31 ▼0.0448.30 ▼15.09
Posts /wp-admin/edit.php3.36 ▲0.0046.38 ▼4.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.94 ▲3.84
Media Library /wp-admin/upload.php3.23 ▲0.0033.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.07 ▼0.271.75 ▲0.1541.98 ▼1.66
Dashboard /wp-admin2,195 ▲215.61 ▲0.0694.70 ▼8.4543.87 ▲1.79
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0234.64 ▼1.4734.72 ▼2.52
Add New Post /wp-admin/post-new.php1,529 ▲323.24 ▼0.01612.91 ▼84.2147.98 ▼2.30
Media Library /wp-admin/upload.php1,397 ▼04.17 ▼0.0099.73 ▼8.8342.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP391,8505,19211,163
JavaScript665653032,946
CSS4999469
PO File1168245368
JSON2002

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 code0.34
Average class complexity57.71
▷ Minimum class complexity1.00
▷ Maximum class complexity423.00
Average method complexity5.15
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes28
▷ Abstract classes27.14%
▷ Concrete classes2692.86%
▷ Final classes00.00%
Methods386
▷ Static methods194.92%
▷ Public methods36995.60%
▷ Protected methods00.00%
▷ Private methods174.40%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants72
▷ Global constants2331.94%
▷ Class constants4968.06%
▷ Public constants49100.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
FileSize - originalSize - compressedSavings
assets/img/logo_icon.png3.05KB1.71KB▼ 43.86%
assets/img/pachetomat-icon.png3.61KB0.92KB▼ 74.43%
assets/img/logo.png3.05KB1.71KB▼ 43.86%
assets/img/location-pin-posta.png1.28KB0.95KB▼ 25.63%
assets/img/logo-postapanduri.png23.94KB7.29KB▼ 69.57%