84% csomagpont

Code Review | Csomagpont - Szállítás és logisztika

WordPress plugin Csomagpont - Szállítás és logisztika scored84%from 54 tests.

About plugin

  • Plugin page: csomagpont
  • Plugin version: 1.0.27
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Jan 11, 2020
  • Latest release: Jun 30, 2022
  • Number of updates: 62
  • Update frequency: every 14.6 days
  • Top authors: laszlomdrsz (70.97%)csomagpont (30.65%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.27MB] [CPU: ▼3.65ms] Passed 4 tests

An overview of server-side resources used by Csomagpont - Szállítás és logisztika
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2747.72 ▲4.32
Dashboard /wp-admin3.57 ▲0.2751.26 ▼4.38
Posts /wp-admin/edit.php3.68 ▲0.3353.38 ▲0.23
Add New Post /wp-admin/post-new.php6.15 ▲0.2790.51 ▼14.75
Media Library /wp-admin/upload.php3.49 ▲0.2742.66 ▲5.93

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Csomagpont - Szállítás és logisztika: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.63 ▼0.581.83 ▼0.0144.33 ▼4.43
Dashboard /wp-admin2,200 ▲154.85 ▼1.01104.53 ▲1.9340.93 ▼7.96
Posts /wp-admin/edit.php2,092 ▼02.02 ▲0.0140.12 ▼2.1735.17 ▼5.52
Add New Post /wp-admin/post-new.php1,514 ▼023.62 ▲6.18745.28 ▲87.6059.40 ▲7.81
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0099.65 ▼6.8148.41 ▲1.22

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/csomagpont/csomagpont.php on line 22
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/csomagpont/csomagpont.php on line 22
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/csomagpont/csomagpont.php on line 22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: gls, sprinter, fma, logisztika, csomagpont...

csomagpont/csomagpont.php Passed 13 tests

This is the main PHP file of "Csomagpont - Szállítás és logisztika" version 1.0.27, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
Szállítási megoldások 4 futárszolgálattal, egy rendszerben kezelve

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
No dangerous file extensions were detected2,106 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP73421101,456
JavaScript3587438
CSS1397212

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity28.67
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods59
▷ Static methods00.00%
▷ Public methods5389.83%
▷ Protected methods00.00%
▷ Private methods610.17%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/csomagpont-icon.png2.10KB1.61KB▼ 23.45%
images/csomagpont-signature.png3.87KB1.92KB▼ 50.48%
images/csomagpont-save.png3.09KB3.43KB0.00%
images/csomagpont-package-barcode.png24.04KB8.39KB▼ 65.08%