Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.71MB] [CPU: ▼27.40ms] Passed 4 tests
A check of server-side resources used by Custom Posts For Product
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.65 ▼0.86 |
Dashboard /wp-admin | 3.24 ▼0.06 | 35.00 ▼21.46 |
Posts /wp-admin/edit.php | 3.30 ▼0.05 | 40.93 ▼13.68 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.74 | 37.23 ▼73.60 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.62 ▲1.09 |
Add New /wp-admin/post-new.php?post_type=product | 3.14 | 39.16 |
All Products /wp-admin/edit.php?post_type=product | 3.28 | 34.19 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=product | 3.24 | 34.89 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=product | 3.24 | 31.59 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
category_children |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Posts For Product
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.25 ▼0.34 | 1.69 ▲0.03 | 41.91 ▲2.52 |
Dashboard /wp-admin | 2,227 ▲50 | 5.64 ▼0.01 | 82.51 ▼10.35 | 40.23 ▼4.22 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 1.99 ▲0.01 | 35.24 ▼3.91 | 36.06 ▲3.12 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.55 ▲0.62 | 682.74 ▲19.33 | 60.73 ▼0.31 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.22 ▲0.04 | 99.62 ▼1.44 | 45.77 ▲1.79 |
Add New /wp-admin/post-new.php?post_type=product | 2,775 | 7.78 | 182.15 | 71.72 |
All Products /wp-admin/edit.php?post_type=product | 1,231 | 2.05 | 30.72 | 32.63 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=product | 1,493 | 2.13 | 27.58 | 34.34 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=product | 1,351 | 2.12 | 27.69 | 32.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- category_children
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=product
- > Notice in wp-content/plugins/custom-posts-for-product/Custom-Posts-For-Product.php+70
Undefined index: product_price_box_content_nonce
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=product
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-posts-for-product/Custom-Posts-For-Product.php:55
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: posts, custom, price, product, category
custom-posts-for-product/Custom-Posts-For-Product.php 85% from 13 tests
This is the main PHP file of "Custom Posts For Product" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("custom-posts-for-product.php" instead of "Custom-Posts-For-Product.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected125 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 24 | 125 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
PNG images were not found in this plugin