Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.83MB] [CPU: ▼178.29ms] Passed 4 tests
Analyzing server-side resources used by Goods Catalog
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.76 ▼0.07 | 20.82 ▼11.44 |
Dashboard /wp-admin | 2.82 ▼0.24 | 25.66 ▼24.01 |
Posts /wp-admin/edit.php | 2.82 ▼0.29 | 19.46 ▼24.45 |
Add New Post /wp-admin/post-new.php | 2.82 ▼2.62 | 17.40 ▼645.18 |
Media Library /wp-admin/upload.php | 2.82 ▼0.19 | 18.59 ▼19.52 |
Tags /wp-admin/edit-tags.php?taxonomy=goods_tag&post_type=goods | 2.82 | 22.11 |
Goods Catalog Settings /wp-admin/edit.php?post_type=goods&page=goods-setting-admin | 2.82 | 19.49 |
Goods /wp-admin/edit.php?post_type=goods | 2.82 | 21.45 |
Goods Categories /wp-admin/edit-tags.php?taxonomy=goods_category&post_type=goods | 2.82 | 18.35 |
Add /wp-admin/post-new.php?post_type=goods | 2.82 | 21.24 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_widget_goods_tags |
widget_widget_goods_categories |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Goods Catalog
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,735 ▲163 | 15.79 ▼0.07 | 10.96 ▼0.27 | 54.64 ▲1.35 |
Dashboard /wp-admin | 3,017 ▲86 | 5.90 ▼0.03 | 152.29 ▼1.56 | 115.53 ▼6.45 |
Posts /wp-admin/edit.php | 2,789 ▲50 | 2.68 ▲0.00 | 68.48 ▼6.82 | 91.70 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,715 ▲32 | 18.39 ▼0.36 | 389.14 ▼18.70 | 126.18 ▲9.02 |
Media Library /wp-admin/upload.php | 1,857 ▲47 | 5.03 ▲0.00 | 154.30 ▼21.17 | 137.76 ▲14.18 |
Tags /wp-admin/edit-tags.php?taxonomy=goods_tag&post_type=goods | 1,761 | 2.51 | 68.80 | 91.53 |
Goods Catalog Settings /wp-admin/edit.php?post_type=goods&page=goods-setting-admin | 1,472 | 2.10 | 63.43 | 92.57 |
Goods /wp-admin/edit.php?post_type=goods | 1,506 | 2.63 | 65.57 | 81.66 |
Goods Categories /wp-admin/edit-tags.php?taxonomy=goods_category&post_type=goods | 1,786 | 2.50 | 69.63 | 88.79 |
Add /wp-admin/post-new.php?post_type=goods | 3,532 | 9.10 | 237.63 | 149.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/goods-catalog/inc/class.goods-post-type.php+17
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 2 options
- widget_widget_goods_categories
- widget_widget_goods_tags
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 31 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=goods
- > Notice in wp-content/plugins/goods-catalog/inc/class.goods-tags-taxonomy.php+18
Trying to access array offset on value of type bool
- > GET request to /wp-admin/edit.php?post_type=goods&page=goods-setting-admin
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=goods&page=goods-setting-admin
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Almost there! Just fix the following items
- 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/goods-catalog/inc/class.goods-categories-taxonomy.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/goods-catalog/inc/widgets/Widget_Goods_Tags.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/goods-catalog/inc/class.metabox.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_term_by() in wp-content/plugins/goods-catalog/templates/taxonomy-goods_category.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/goods-catalog/inc/templates-include.php:65
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/goods-catalog/inc/widgets/Widget_Goods_Categories.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_term_by() in wp-content/plugins/goods-catalog/templates/taxonomy-goods_tag.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/goods-catalog/goods-cat.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/goods-catalog/inc/class.wrapper.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/goods-catalog/templates/single-goods.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #5 is missing in goods-catalog/assets to your readme.txt
goods-catalog/goods-cat.php 92% from 13 tests
The main PHP file in "Goods Catalog" ver. 2.4.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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("goods-catalog.php" instead of "goods-cat.php")
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 detected3,227 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 342 | 591 | 1,615 |
PO File | 4 | 457 | 625 | 1,246 |
Markdown | 5 | 126 | 0 | 206 |
CSS | 1 | 22 | 13 | 151 |
YAML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 53 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/gi.png | 6.48KB | 2.74KB | ▼ 57.72% |
img/gc.png | 2.80KB | 1.91KB | ▼ 31.79% |