90% tfm-google-product-feed

Code Review | TFM Google Product Feed

WordPress plugin TFM Google Product Feed scored90%from 54 tests.

About plugin

  • Plugin page: tfm-google-produc...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2015
  • Latest release: Mar 12, 2015
  • Number of updates: 9
  • Update frequency: every 2.8 days
  • Top authors: nostrzak (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /9,530 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by TFM Google Product Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.91 ▼8.48
Dashboard /wp-admin3.31 ▲0.0049.62 ▼3.47
Posts /wp-admin/edit.php3.36 ▲0.0052.51 ▲2.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.42 ▼10.68
Media Library /wp-admin/upload.php3.23 ▲0.0038.30 ▲5.03

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for TFM Google Product Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.22 ▼0.131.72 ▼0.1041.08 ▼4.81
Dashboard /wp-admin2,195 ▲185.62 ▼0.0487.13 ▼1.3640.13 ▼2.57
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0540.01 ▲2.1634.46 ▼0.10
Add New Post /wp-admin/post-new.php1,535 ▲718.24 ▼4.79633.89 ▼50.3870.79 ▲22.17
Media Library /wp-admin/upload.php1,394 ▼64.27 ▼0.0598.19 ▼9.6943.14 ▼2.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

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 Passed 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
8 plugin tags: themesforme, themes for me, google shopping, google merchants, xml feed...

tfm-google-product-feed/tfm-google-product-feed.php Passed 13 tests

The main PHP file in "TFM Google Product Feed" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Google Product Feed for Google Merchants integration

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 plugin343 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP595115319
XML22024

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.50
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1562.50%
▷ Protected methods00.00%
▷ Private methods937.50%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected