Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/avk-shop/includes/features.class.php+15
Undefined index: page
Server metrics [RAM: ▼1.01MB] [CPU: ▼48.28ms] Passed 4 tests
Analyzing server-side resources used by AVK-Shop
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▼0.48 | 9.17 ▼30.26 |
Dashboard /wp-admin | 3.00 ▼0.30 | 11.03 ▼36.10 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 11.65 ▼39.03 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 9.93 ▼87.73 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 10.11 ▼26.46 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 110 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for AVK-Shop
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,096 ▲335 | 13.65 ▼0.75 | 7.06 ▲5.33 | 45.59 ▲3.57 |
Dashboard /wp-admin | 2,315 ▲112 | 4.88 ▼0.02 | 109.76 ▲3.74 | 42.42 ▲2.00 |
Posts /wp-admin/edit.php | 2,197 ▲97 | 2.00 ▼0.00 | 34.80 ▼5.81 | 43.88 ▲7.69 |
Add New Post /wp-admin/post-new.php | 1,610 ▲65 | 23.10 ▼0.21 | 503.23 ▼182.31 | 107.22 ▲47.76 |
Media Library /wp-admin/upload.php | 1,494 ▲94 | 4.17 ▼0.01 | 102.23 ▼4.60 | 47.54 ▼0.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/avk-shop/includes/features.class.php+15
Undefined index: page
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined index: page in wp-content/plugins/avk-shop/includes/features.class.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'libraryAVKShop' not found in wp-content/plugins/avk-shop/modules/customer-information/module-customer-information.class.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/avk-shop/pages/sidebar.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/avk-shop/pages/main_menu.php:11
- > PHP Fatal error
Uncaught Error: Class 'AVKShopVariables' not found in wp-content/plugins/avk-shop/includes/features.class.php:7
- > PHP Fatal error
Uncaught Error: Class 'MainValueAvkShop' not found in wp-content/plugins/avk-shop/includes/html.class.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/avk-shop/avkshop-engine.class.php:174
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/avk-shop/pages/action_file.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/avk-shop/includes/widget.class.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/avk-shop/pages/tables.php:9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 39 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Page main settings), #2 (Page payment systems and log), #3 (Page tools), #4 (Add items to the editor)
- Donate link: Invalid URI found ("goo.gl/3Ux5gD")
avk-shop/avkshop-engine.class.php 92% from 13 tests
The main PHP file in "AVK-Shop" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("avk-shop.php" instead of "avkshop-engine.class.php")
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 detected7,587 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 304 | 195 | 3,338 |
CSS | 9 | 54 | 92 | 2,530 |
PO File | 1 | 319 | 350 | 925 |
JavaScript | 11 | 98 | 264 | 794 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 46.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 184.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 1 | 0.71% |
▷ Public methods | 78 | 55.32% |
▷ Protected methods | 47 | 33.33% |
▷ Private methods | 16 | 11.35% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 9 | 69.23% |
▷ Class constants | 4 | 30.77% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
43 PNG files occupy 0.54MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/button/basket_full.png | 9.75KB | 3.31KB | ▼ 66.08% |
images/soc/facebook.png | 2.04KB | 1.30KB | ▼ 36.41% |
images/button/login.png | 1.66KB | 1.33KB | ▼ 20.08% |
images/question.png | 4.47KB | 1.63KB | ▼ 63.63% |
images/button/download_green.png | 18.11KB | 5.95KB | ▼ 67.17% |