Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.96MB] [CPU: ▼24.77ms] Passed 4 tests
This is a short check of server-side resources used by Product Catalog Simple
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.88 ▲2.41 | 30.61 ▼9.68 |
Dashboard /wp-admin | 6.00 ▲2.66 | 36.38 ▼29.58 |
Posts /wp-admin/edit.php | 6.01 ▲2.64 | 40.15 ▼8.88 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.11 | 38.59 ▼50.93 |
Media Library /wp-admin/upload.php | 6.01 ▲2.77 | 39.70 ▲4.35 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 312 new files
Database: 1 new table, 16 new options
New tables |
---|
wp_ic_sessions |
New WordPress options |
---|
widget_ic_product_size_filter |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
IC_EPC_install |
widget_theysaidso_widget |
_wp_session_list |
_wp_session_b04a1ddbb9e701f9cd1f39086f2e078c |
widget_ic_active_filters_widget |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Product Catalog Simple: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲115 | 14.32 ▼0.02 | 1.71 ▲0.04 | 41.01 ▼2.45 |
Dashboard /wp-admin | 2,256 ▲79 | 5.58 ▼0.11 | 94.37 ▼3.79 | 42.27 ▼7.48 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 1.98 ▼0.05 | 39.74 ▲3.33 | 33.97 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,734 ▲208 | 23.64 ▲0.53 | 613.59 ▼56.55 | 34.68 ▼18.44 |
Media Library /wp-admin/upload.php | 1,471 ▲74 | 4.17 ▼0.04 | 98.58 ▼1.01 | 41.34 ▲0.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/post-type-x/core/templates/themes/theme-default.php+238
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
- Zombie tables were found after uninstall: 1 table
- wp_ic_sessions
- Zombie WordPress options were found after uninstall: 16 options
- widget_product_sort_filter
- widget_ic_product_size_filter
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- IC_EPC_install
- db_upgraded
- widget_product_category_filter
- widget_product_search
- widget_product_categories
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/post-type-x/core/templates/twenty/product-twentyfifteen-adder.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/post-type-x/core/templates/twenty/product-twentyseventeen-adder.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-type-x/core/ext-comp/wp_session/wp-session.php:83
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/post-type-x/core/ext-comp/wp_session/wp-cli.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/post-type-x/core/templates/twenty/product-twentysixteen-adder.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/post-type-x/core/templates/third-party/storefront.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/post-type-x/core/templates/twenty/product-twentythirteen-adder.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/post-type-x/core/templates/twenty/product-twentyfourteen-adder.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Tags: Please delete some tags, you are using 38 tag instead of maximum 10
- Plugin Name: You should set the name of your plugin on the first line (
=== post-type-x ===
)
post-type-x/post-type-x.php Passed 13 tests
The principal PHP file in "Product Catalog Simple" v. 1.7.7 is loaded by WordPress automatically on each request
125 characters long description:
A minimalistic, modular catalog tool which comes with fully customizable, responsive front-end design, search and categories.
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
No dangerous file extensions were detected35,395 lines of code in 234 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 146 | 3,487 | 4,645 | 23,541 |
JavaScript | 59 | 1,162 | 814 | 7,062 |
CSS | 14 | 907 | 260 | 4,341 |
JSON | 13 | 0 | 0 | 414 |
XML | 1 | 2 | 0 | 32 |
Markdown | 1 | 4 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 35.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 284.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 1 | 1.96% |
▷ Concrete classes | 50 | 98.04% |
▷ Final classes | 1 | 2.00% |
Methods | 646 | |
▷ Static methods | 41 | 6.35% |
▷ Public methods | 624 | 96.59% |
▷ Protected methods | 4 | 0.62% |
▷ Private methods | 18 | 2.79% |
Functions | 665 | |
▷ Named functions | 664 | 99.85% |
▷ Anonymous functions | 1 | 0.15% |
Constants | 34 | |
▷ Global constants | 34 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
23 PNG files occupy 0.23MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/img/implecode.png | 11.70KB | 5.04KB | ▼ 56.91% |
core/js/colorbox/images/border1.png | 1.03KB | 0.82KB | ▼ 20.34% |
core/img/example-feedback.png | 44.77KB | 14.08KB | ▼ 68.56% |
core/js/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
core/css/images/doc.png | 4.91KB | 1.64KB | ▼ 66.49% |