83% sprinter-pick-pack-pont-integracio

Code Review | Sprinter - Pick Pack Pont integráció

WordPress plugin Sprinter - Pick Pack Pont integráció scored83%from 54 tests.

About plugin

  • Plugin page: sprinter-pick-pac...
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 27, 2021
  • Latest release: Nov 13, 2023
  • Number of updates: 8
  • Update frequency: every 113.4 days
  • Top authors: sprinterwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /629 total downloads

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.40MB] [CPU: ▼21.99ms] Passed 4 tests

An overview of server-side resources used by Sprinter - Pick Pack Pont integráció
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2724.77 ▼14.92
Dashboard /wp-admin3.60 ▲0.2946.77 ▼3.05
Posts /wp-admin/edit.php3.71 ▲0.3550.80 ▼0.42
Add New Post /wp-admin/post-new.php3.44 ▼2.4536.68 ▼69.56
Media Library /wp-admin/upload.php3.52 ▲0.2941.26 ▲8.00

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

Sprinter - Pick Pack Pont integráció: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,461 ▼30114.64 ▲0.300.66 ▼0.9716.98 ▼26.99
Dashboard /wp-admin2,199 ▲215.67 ▼0.0891.32 ▼15.1942.78 ▼3.87
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0641.70 ▼0.7036.28 ▼1.43
Add New Post /wp-admin/post-new.php45 ▼1,4910.41 ▼22.680.15 ▼652.099.20 ▼43.25
Media Library /wp-admin/upload.php1,404 ▲134.20 ▼0.08104.28 ▼0.3678.67 ▲33.09

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sprinter-pick-pack-pont-integracio/includes/pickpackpont.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/sprinter-pick-pack-pont-integracio/includes/pudo/PudoDocumentService.php:109
    • > PHP Fatal error
      Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/sprinter-pick-pack-pont-integracio/includes/pudo/PudoDocumentService.php:109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sprinter-pick-pack-pont-integracio/sprinter-ppp-integracio.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/sprinter-pick-pack-pont-integracio/includes/pudo/PartnerPudoService.php:176
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sprinter-pick-pack-pont-integracio/includes/sprinter.php:8

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can take inspiration from this readme.txt

sprinter-pick-pack-pont-integracio/sprinter-ppp-integracio.php 77% from 13 tests

This is the main PHP file of "Sprinter - Pick Pack Pont integráció" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("sprinter-pick-pack-pont-integracio.php" instead of "sprinter-ppp-integracio.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.0")

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin9,775 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7203587,024
PHP11431832,155
PO File1124132299
CSS2880297

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity1.15
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions64
▷ Named functions64100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/jelolo4.png5.57KB4.23KB▼ 24.08%
images/jelolo5.png6.68KB5.10KB▼ 23.66%
images/jelolo1.png2.93KB2.20KB▼ 25.07%
images/sprinter_ikon.png15.35KB3.56KB▼ 76.83%
images/shipment_ikon.png0.88KB0.75KB▼ 14.03%