83% epaka-pl

Code Review | epaka.pl - Integracja z WooCommerce

WordPress plugin epaka.pl - Integracja z WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: epaka-pl
  • Plugin version: 1.0.10
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 6.3.1
  • First release: May 13, 2021
  • Latest release: Jun 20, 2023
  • Number of updates: 21
  • Update frequency: every 36.7 days
  • Top authors: epaka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,456 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.06ms] Passed 4 tests

An overview of server-side resources used by epaka.pl - Integracja z WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.64 ▼2.14
Dashboard /wp-admin3.31 ▲0.0047.74 ▼5.69
Posts /wp-admin/edit.php3.36 ▲0.0048.19 ▼2.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.55 ▼9.57
Media Library /wp-admin/upload.php3.23 ▲0.0034.07 ▼0.96

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

epaka.pl - Integracja z WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.21 ▼1.441.69 ▼0.2344.77 ▲0.22
Dashboard /wp-admin2,213 ▲255.89 ▼0.01114.34 ▲12.7543.45 ▼1.08
Posts /wp-admin/edit.php2,092 ▲62.05 ▲0.0334.28 ▼6.6233.84 ▲0.05
Add New Post /wp-admin/post-new.php1,537 ▲2323.13 ▲5.73662.78 ▼27.0761.99 ▲6.21
Media Library /wp-admin/upload.php1,395 ▲104.25 ▲0.0895.41 ▼35.1242.36 ▼19.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_rest_url() in wp-content/plugins/epaka-pl/assets/partials/epaka-form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/epaka-pl/assets/partials/epaka-map.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("epaka.pl")
The official readme.txt is a good inspiration

epaka-pl/epakapl.php 77% from 13 tests

This is the main PHP file of "epaka.pl - Integracja z WooCommerce" version 1.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("epaka-pl.php" instead of "epakapl.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 206 characters long)

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 detected21,414 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript235,4507,01818,018
PHP243206081,884
CSS16141511,379
PO File33915133

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods73
▷ Static methods1317.81%
▷ Public methods6589.04%
▷ Protected methods00.00%
▷ Private methods810.96%
Functions29
▷ Named functions724.14%
▷ Anonymous functions2275.86%
Constants3
▷ Global constants3100.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
9 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/leaflet/images/marker-icon.png4.35KB1.55KB▼ 64.36%
assets/img/epaka-white.png4.70KB3.00KB▼ 36.16%
vendor/leaflet/images/marker-shadow.png0.60KB1.16KB0.00%
vendor/leaflet/images/marker-icon-2x.png6.22KB2.50KB▼ 59.84%
assets/markers/marker-icon-2x.png6.22KB2.50KB▼ 59.84%