Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.24ms] Passed 4 tests
An overview of server-side resources used by Product Catalog
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.97 ▼3.13 |
Dashboard /wp-admin | 3.42 ▲0.07 | 47.11 ▼18.48 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 52.11 ▲4.63 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 96.83 ▼0.94 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.34 ▲1.59 |
Product Catalogs /wp-admin/edit-tags.php?taxonomy=tcpc_catalog&post_type=tcpc | 3.33 | 36.47 |
Product Category /wp-admin/edit-tags.php?taxonomy=tcpc_category&post_type=tcpc | 3.33 | 34.79 |
All Products /wp-admin/edit.php?post_type=tcpc | 3.38 | 38.26 |
Add New Product /wp-admin/post-new.php?post_type=tcpc | 3.47 | 53.32 |
Help & Upgrade /wp-admin/edit.php?post_type=tcpc&page=tcpc_menu_help | 3.30 | 31.12 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Product Catalog
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.16 ▼1.22 | 1.69 ▼0.32 | 43.73 ▲0.83 |
Dashboard /wp-admin | 2,243 ▲52 | 4.88 ▼0.03 | 97.37 ▼19.81 | 68.20 ▲25.60 |
Posts /wp-admin/edit.php | 2,129 ▲43 | 2.00 ▲0.03 | 37.34 ▲1.39 | 36.45 ▲4.92 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 17.80 ▼5.39 | 684.41 ▲69.57 | 57.81 ▲11.75 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.23 ▲0.02 | 95.57 ▼3.14 | 81.86 ▲41.16 |
Product Catalogs /wp-admin/edit-tags.php?taxonomy=tcpc_catalog&post_type=tcpc | 1,305 | 2.14 | 28.41 | 29.04 |
Product Category /wp-admin/edit-tags.php?taxonomy=tcpc_category&post_type=tcpc | 1,302 | 2.14 | 25.62 | 31.06 |
All Products /wp-admin/edit.php?post_type=tcpc | 1,147 | 2.07 | 33.15 | 29.65 |
Add New Product /wp-admin/post-new.php?post_type=tcpc | 2,456 | 7.93 | 163.75 | 125.31 |
Help & Upgrade /wp-admin/edit.php?post_type=tcpc&page=tcpc_menu_help | 1,483 | 9.14 | 266.86 | 69.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/tc-product-catalog/lib/tcpc-help-upgrade.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-product-catalog/lib/tcpc-metabox.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-product-catalog/lib/tcpc-cpt.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tc-product-catalog/lib/tcpc-column.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tc-product-catalog/public/tcpc-view.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tc-product-catalog/tc-product-catalog.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-product-catalog/lib/tcpc-taxonomy.php:2
- > 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 87% from 29 tests
readme.txt 88% 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 need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Requires at least: The plugin version is formatted incorrectly
tc-product-catalog/tc-product-catalog.php 85% from 13 tests
The principal PHP file in "Product Catalog" v. 1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 278 characters long)
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
Everything looks great! No dangerous files found in this plugin625 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 114 | 92 | 396 |
CSS | 2 | 32 | 11 | 229 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tcpc.png | 3.83KB | 1.22KB | ▼ 68.15% |