Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.26 | 56.71 ▲5.24 |
Dashboard /wp-admin | 3.60 ▲0.19 | 33.95 ▼0.04 |
Posts /wp-admin/edit.php | 3.83 ▲0.19 | 37.02 ▼20.00 |
Add New Post /wp-admin/post-new.php | 7.07 ▲0.10 | 92.75 ▼1,171.46 |
Media Library /wp-admin/upload.php | 3.48 ▲0.19 | 26.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲51 | 16.22 ▲0.71 | 6.26 ▲0.49 | 2.62 ▲0.54 |
Dashboard /wp-admin | 2,895 ▲34 | 5.99 ▼0.17 | 122.11 ▼9.18 | 156.73 ▼0.90 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.24 ▲0.01 | 64.81 ▲0.03 | 138.79 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,666 ▲5 | 20.83 ▲4.74 | 405.51 ▼33.01 | 160.84 ▲8.41 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.52 ▼0.00 | 148.19 ▲7.81 | 189.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
- > PHP Fatal error
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
Optimizations
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 158 | 45 | 2,114 |
JavaScript | 1 | 69 | 0 | 976 |
CSS | 1 | 1 | 0 | 151 |
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 code | 0.35 |
Average class complexity | 59.50 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 5.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/addressya_logo.png | 14.35KB | 6.78KB | ▼ 52.77% |
assets/images/rounded_profile.png | 2.84KB | 1.50KB | ▼ 47.34% |
assets/images/logo_no_text.png | 6.11KB | 2.93KB | ▼ 52.05% |