84% product-feed-silver

Code Review | Murphsy.com Product Feed Silver

WordPress plugin Murphsy.com Product Feed Silver scored 84% from 54 tests.

About plugin

  • Plugin page: product-feed-silver
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 18, 2016
  • Latest release: Mar 22, 2016
  • Number of updates: 16
  • Update frequency: every 0.4 days
  • Top authors: murphsy (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 1,420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.64ms] Passed 4 tests

Server-side resources used by Murphsy.com Product Feed Silver
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.23 ▼6.33
Dashboard /wp-admin3.40 ▲0.0951.86 ▲3.54
Posts /wp-admin/edit.php3.45 ▲0.0947.38 ▲2.56
Add New Post /wp-admin/post-new.php6.00 ▲0.1196.07 ▼0.76
Media Library /wp-admin/upload.php3.32 ▲0.0936.69 ▲1.97
Feed structure /wp-admin/admin.php?page=pf_silver_13.2930.01
Want more options? /wp-admin/admin.php?page=pf_silver_23.2929.79
Product Feed Silver /wp-admin/admin.php?page=pf_silver3.2932.16

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 19 new options
New WordPress options
widget_theysaidso_widget
pf_silver_currency
pf_silver_create_xml
pf_silver_condition
pf_silver_shipping_price
pf_silver_shipping_country
widget_recent-posts
pf_silver_gtin
db_upgraded
pf_silver_shipping_name
...

Browser metrics Passed 4 tests

A check of browser resources used by Murphsy.com Product Feed Silver
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲9613.38 ▼1.041.96 ▼0.3443.01 ▼3.51
Dashboard /wp-admin2,234 ▲494.90 ▼0.17114.89 ▼3.5047.20 ▲1.66
Posts /wp-admin/edit.php2,117 ▲312.03 ▲0.0136.78 ▼0.2934.99 ▲1.68
Add New Post /wp-admin/post-new.php1,557 ▲1523.09 ▲4.49608.04 ▼53.4154.19 ▼0.07
Media Library /wp-admin/upload.php1,419 ▲314.22 ▼0.0199.70 ▲2.1144.26 ▼1.89
Feed structure /wp-admin/admin.php?page=pf_silver_19392.0726.0727.11
Want more options? /wp-admin/admin.php?page=pf_silver_28572.0929.9528.83
Product Feed Silver /wp-admin/admin.php?page=pf_silver1,2091.8026.9330.17

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/product-feed-silver/settings.php
    • > /wp-content/plugins/product-feed-silver/functions.php
    • > /wp-content/plugins/product-feed-silver/product-feed-silver.php
    • > /wp-content/plugins/product-feed-silver/settings_pages.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: woocommerce feed, feed, product feed, google shopping, woocommerce...

product-feed-silver/product-feed-silver.php 92% from 13 tests

The entry point to "Murphsy.com Product Feed Silver" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 220 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected775 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP46415673
XML10050
JavaScript18147
CSS1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/silver_favi.png2.18KB2.01KB▼ 7.87%
images/silver_32px.png0.83KB0.81KB▼ 1.77%