89% inpost-paczkomaty

Code Review | Inpost Paczkomaty

WordPress plugin Inpost Paczkomaty scored89%from 54 tests.

About plugin

  • Plugin page: inpost-paczkomaty
  • Plugin version: 1.0.27
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2021
  • Latest release: Nov 29, 2023
  • Number of updates: 40
  • Update frequency: every 21.4 days
  • Top authors: rimosfafora (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

7,000+ active /30,130 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼4.22ms] Passed 4 tests

An overview of server-side resources used by Inpost Paczkomaty
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1240.16 ▼0.22
Dashboard /wp-admin3.42 ▲0.0844.99 ▼17.86
Posts /wp-admin/edit.php3.54 ▲0.1848.52 ▲4.43
Add New Post /wp-admin/post-new.php6.00 ▲0.1288.30 ▼0.27
Media Library /wp-admin/upload.php3.35 ▲0.1237.79 ▲1.46

Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Inpost Paczkomaty
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.72 ▲0.171.72 ▲0.0139.92 ▼7.65
Dashboard /wp-admin2,195 ▲155.60 ▼0.0588.86 ▲2.1840.29 ▼1.65
Posts /wp-admin/edit.php2,103 ▼01.94 ▼0.0239.17 ▼0.9635.27 ▼0.72
Add New Post /wp-admin/post-new.php1,535 ▲925.05 ▲1.73610.15 ▲4.4359.71 ▲5.12
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0994.69 ▼20.0040.73 ▼7.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

inpost-paczkomaty/inpost-paczkomaty.php Passed 13 tests

The principal PHP file in "Inpost Paczkomaty" v. 1.0.27 is loaded by WordPress automatically on each request
53 characters long description:
Plugin do obsługi paczkomatów inpost w woocommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin916 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2162206741
JavaScript1312112
PO File1202263

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods110.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.73MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/Screenshot_2.png345.99KB132.39KB▼ 61.74%
assets/Screenshot_4.png6.01KB3.70KB▼ 38.43%
assets/screenshot-2.png345.99KB132.39KB▼ 61.74%
assets/Screenshot_3.png14.07KB7.38KB▼ 47.55%
assets/screenshot-4.png6.01KB3.70KB▼ 38.43%