93% addressya-for-woocommerce

Code Review | Addressya for Woocommerce

WordPress plugin Addressya for Woocommerce scored 93% from 54 tests.

About plugin

  • Plugin page: addressya-for-woo...
  • Plugin version: 2.1
  • PHP compatiblity: 7.4.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.4-5.8
  • WordPress version: 5.9.2
  • First release: Jun 17, 2021
  • Latest release: Oct 21, 2021
  • Number of updates: 12
  • Update frequency: every 11.1 days
  • Top authors: mariacheadle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 225 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼297.01ms] Passed 4 tests

This is a short check of server-side resources used by Addressya for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.2656.71 ▲5.24
Dashboard /wp-admin3.60 ▲0.1933.95 ▼0.04
Posts /wp-admin/edit.php3.83 ▲0.1937.02 ▼20.00
Add New Post /wp-admin/post-new.php7.07 ▲0.1092.75 ▼1,171.46
Media Library /wp-admin/upload.php3.48 ▲0.1926.92 ▲3.47

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Addressya for Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5116.22 ▲0.716.26 ▲0.492.62 ▲0.54
Dashboard /wp-admin2,895 ▲345.99 ▼0.17122.11 ▼9.18156.73 ▼0.90
Posts /wp-admin/edit.php2,688 ▼63.24 ▲0.0164.81 ▲0.03138.79 ▼4.54
Add New Post /wp-admin/post-new.php1,666 ▲520.83 ▲4.74405.51 ▼33.01160.84 ▲8.41
Media Library /wp-admin/upload.php1,698 ▲35.52 ▼0.00148.19 ▲7.81189.45 ▼0.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/addressya-for-woocommerce/index.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration 90% 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 need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
Please take inspiration from this readme.txt

addressya-for-woocommerce/index.php 85% from 13 tests

"Addressya for Woocommerce" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("addressya-for-woocommerce.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 395 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,241 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity59.50
▷ Minimum class complexity42.00
▷ Maximum class complexity77.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions37100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/addressya_logo.png14.35KB6.78KB▼ 52.77%
assets/images/rounded_profile.png2.84KB1.50KB▼ 47.34%
assets/images/logo_no_text.png6.11KB2.93KB▼ 52.05%