84% shopping-feed-for-google

Code Review | API Feed for Google Shopping, Microsoft and Facebook

WordPress plugin API Feed for Google Shopping, Microsoft and Facebook scored84%from 54 tests.

About plugin

  • Plugin page: shopping-feed-for...
  • Plugin version: 2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 14, 2020
  • Latest release: Oct 19, 2023
  • Number of updates: 56
  • Update frequency: every 23.8 days
  • Top authors: simprosys (100%)

Code review

54 tests

User reviews

53 reviews

Install metrics

6,000+ active /28,998 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.26ms] Passed 4 tests

An overview of server-side resources used by API Feed for Google Shopping, Microsoft and Facebook
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.71 ▲0.27
Dashboard /wp-admin3.31 ▲0.0045.30 ▼3.32
Posts /wp-admin/edit.php3.36 ▲0.0046.99 ▼1.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.79 ▼0.53
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▲0.33

Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

API Feed for Google Shopping, Microsoft and Facebook: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.55 ▲0.201.86 ▲0.1743.96 ▲1.92
Dashboard /wp-admin2,198 ▲215.62 ▲0.0983.22 ▼4.9934.56 ▼7.67
Posts /wp-admin/edit.php2,097 ▼01.97 ▲0.0233.54 ▼2.6035.79 ▲2.13
Add New Post /wp-admin/post-new.php1,535 ▲918.31 ▼4.98580.89 ▼70.1663.61 ▲16.60
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0193.84 ▼7.7542.94 ▲2.30

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Everything seems fine, however 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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/shopping-feed-for-google/config/const.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_GSF_Exception' not found in wp-content/plugins/shopping-feed-for-google/classes/exceptions/class-wp-gsf-missing-dependencies-exception.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: facebook feed, product feed, microsoft feed, microsoft campaign, google shopping feed...

shopping-feed-for-google/shopping-feed-for-google.php 92% from 13 tests

Analyzing the main PHP file in "API Feed for Google Shopping, Microsoft and Facebook" version 2.0
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 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
There were no executable files found in this plugin1,112 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP152461361,111
JavaScript1011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.89
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2172.41%
▷ Protected methods00.00%
▷ Private methods827.59%
Functions48
▷ Named functions4797.92%
▷ Anonymous functions12.08%
Constants11
▷ Global constants981.82%
▷ Class constants218.18%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/wp-shopping-feed-for-google.png0.78KB0.60KB▼ 23.09%