10% wc-product-feed-for-pinterest

Code Review | Product Feed for Pinterest Product Catalogs

WordPress plugin Product Feed for Pinterest Product Catalogs scored10%from 54 tests.

About plugin

  • Plugin page: wc-product-feed-f...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.6
  • WordPress version: 6.3.1
  • First release: Aug 19, 2020
  • Latest release: Jan 16, 2021
  • Number of updates: 8
  • Update frequency: every 18.9 days
  • Top authors: mcyenikoylu (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /5,338 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.09 ▲0.88
Dashboard /wp-admin3.35 ▲0.0455.63 ▼1.93
Posts /wp-admin/edit.php3.40 ▲0.0449.61 ▼6.85
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.16 ▼4.39
Media Library /wp-admin/upload.php3.27 ▲0.0438.00 ▲3.10
Product Feed for Pinterest Product Catalogs /wp-admin/options-general.php?page=pinterest-product-catalogs-admin-options3.2437.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.60 ▲0.111.94 ▼0.1843.05 ▼3.83
Dashboard /wp-admin2,202 ▲285.62 ▲0.0988.64 ▼12.3538.85 ▼4.27
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0536.81 ▼3.8733.81 ▼4.30
Add New Post /wp-admin/post-new.php1,538 ▲918.10 ▼5.13628.84 ▼48.5671.10 ▲22.01
Media Library /wp-admin/upload.php1,401 ▲14.19 ▲0.0499.42 ▼8.7843.75 ▼2.42
Product Feed for Pinterest Product Catalogs /wp-admin/options-general.php?page=pinterest-product-catalogs-admin-options9202.1223.6669.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP25712269

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 code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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