84% apaczka

Code Review | Apaczka.pl WooCommerce

WordPress plugin Apaczka.pl WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: apaczka
  • Plugin version: 1.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: May 23, 2016
  • Latest release: Jun 2, 2023
  • Number of updates: 45
  • Update frequency: every 57.1 days
  • Top authors: inspirelabs (82.22%)wpdesk (20%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /30,946 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.00ms] Passed 4 tests

A check of server-side resources used by Apaczka.pl WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.47 ▲4.44
Dashboard /wp-admin3.38 ▲0.0848.78 ▼8.43
Posts /wp-admin/edit.php3.50 ▲0.1448.95 ▲0.39
Add New Post /wp-admin/post-new.php5.96 ▲0.0883.94 ▼14.81
Media Library /wp-admin/upload.php3.31 ▲0.0836.47 ▲2.84

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Apaczka.pl WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.66 ▼0.731.72 ▼0.2042.86 ▼0.18
Dashboard /wp-admin2,215 ▲155.83 ▲0.80102.74 ▲1.5639.57 ▼1.48
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0139.46 ▲4.4834.37 ▼2.62
Add New Post /wp-admin/post-new.php1,545 ▲523.20 ▲4.75611.09 ▼4.3349.31 ▼10.91
Media Library /wp-admin/upload.php1,400 ▼04.25 ▼0.0098.68 ▼5.1346.56 ▼3.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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
Please fix the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/apaczka/classes/views/html-order-metabox.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function woocommerce_wp_hidden_input() in wp-content/plugins/apaczka/classes/views/html-order-metabox.php:20
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/apaczka/classes/views/html-order-metabox.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/apaczka/templates/geowidget-review-order-after-shipping.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 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
2 plugin tags: apaczka, woocommerce

apaczka/apaczka.php 85% from 13 tests

"Apaczka.pl WooCommerce" version 1.4.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected17,540 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity23.18
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes00.00%
▷ Static methods149.93%
▷ Public methods12185.82%
▷ Protected methods74.96%
▷ Private methods139.22%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants12.50%
▷ Class constants3997.50%
▷ Public constants39100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected