Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/wc-product-feed-for-pinterest/pinterest-product-catalogs.php+277
Use of undefined constant PINTEREST_PRODUCT_CATALOGS_PLUGIN_ALLOWED_TAGS - assumed 'PINTEREST_PRODUCT_CATALOGS_PLUGIN_ALLOWED_TAGS' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.07ms] Passed 4 tests
Analyzing server-side resources used by Product Feed for Pinterest Product Catalogs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.09 ▲0.88 |
Dashboard /wp-admin | 3.35 ▲0.04 | 55.63 ▼1.93 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.61 ▼6.85 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 97.16 ▼4.39 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.00 ▲3.10 |
Product Feed for Pinterest Product Catalogs /wp-admin/options-general.php?page=pinterest-product-catalogs-admin-options | 3.24 | 37.77 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
pinterest_product_catalogs_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Product Feed for Pinterest Product Catalogs
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.60 ▲0.11 | 1.94 ▼0.18 | 43.05 ▼3.83 |
Dashboard /wp-admin | 2,202 ▲28 | 5.62 ▲0.09 | 88.64 ▼12.35 | 38.85 ▼4.27 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.05 | 36.81 ▼3.87 | 33.81 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,538 ▲9 | 18.10 ▼5.13 | 628.84 ▼48.56 | 71.10 ▲22.01 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▲0.04 | 99.42 ▼8.78 | 43.75 ▼2.42 |
Product Feed for Pinterest Product Catalogs /wp-admin/options-general.php?page=pinterest-product-catalogs-admin-options | 920 | 2.12 | 23.66 | 69.28 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wc-product-feed-for-pinterest/pinterest-product-catalogs.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wc-product-feed-for-pinterest/index.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: pinterest feed, pinterest rss, pinterest, woocommerce product rss
wc-product-feed-for-pinterest/pinterest-product-catalogs.php 85% from 13 tests
The primary PHP file in "Product Feed for Pinterest Product Catalogs" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wc-product-feed-for-pinterest.php" instead of "pinterest-product-catalogs.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 203 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected269 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 57 | 12 | 269 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 10 | |
▷ Named functions | 10 | 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
No PNG images were found in this plugin