83% muzaara-shopbot-cse-xml-data-feed

Code Review | XML Data Feed for Shopbot CSE

WordPress plugin XML Data Feed for Shopbot CSE scored83%from 54 tests.

About plugin

  • Plugin page: muzaara-shopbot-c...
  • Plugin version: 1.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: May 26, 2021
  • Latest release: May 6, 2022
  • Number of updates: 13
  • Update frequency: every 26.5 days
  • Top authors: muzaara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by XML Data Feed for Shopbot CSE
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.87 ▼5.96
Dashboard /wp-admin3.31 ▲0.0047.94 ▼2.00
Posts /wp-admin/edit.php3.36 ▲0.0049.08 ▲1.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.22 ▼3.94
Media Library /wp-admin/upload.php3.23 ▲0.0036.64 ▼3.81

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for XML Data Feed for Shopbot CSE
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.23 ▼0.121.91 ▲0.0345.99 ▲5.79
Dashboard /wp-admin2,189 ▲185.55 ▼0.0583.67 ▼3.5537.56 ▼5.63
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0435.37 ▼1.8729.63 ▼8.15
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▼0.27686.97 ▲30.7652.36 ▲1.95
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.09104.98 ▲2.6046.75 ▲4.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Shopbot\\ProductFeed\\Abs\\WooField' not found in wp-content/plugins/muzaara-shopbot-cse-xml-data-feed/class/objects/Field.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Shopbot\\ProductFeed\\Abs\\Feed' not found in wp-content/plugins/muzaara-shopbot-cse-xml-data-feed/class/objects/GFeed.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
5 plugin tags: price comparison, woocommerce, xml data feed, data feed, shopbot

muzaara-shopbot-cse-xml-data-feed/shopbot-woopf.php 85% from 13 tests

Analyzing the main PHP file in "XML Data Feed for Shopbot CSE" version 1.0
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("muzaara-shopbot-cse-xml-data-feed.php" instead of "shopbot-woopf.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin10,180 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
JSON3006,481
PHP21454892,009
JavaScript1219351,502
CSS1282155
SVG11033

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity23.45
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes11
▷ Abstract classes327.27%
▷ Concrete classes872.73%
▷ Final classes00.00%
Methods141
▷ Static methods21.42%
▷ Public methods13394.33%
▷ Protected methods10.71%
▷ Private methods74.96%
Functions36
▷ Named functions1541.67%
▷ Anonymous functions2158.33%
Constants36
▷ Global constants1233.33%
▷ Class constants2466.67%
▷ Public constants24100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.70MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/image/screenshot-4.png74.17KB32.18KB▼ 56.61%
asset/image/screenshot-3.png69.44KB29.39KB▼ 57.67%
asset/screenshot-4.png74.17KB32.18KB▼ 56.61%
asset/screenshot-1.png61.89KB27.78KB▼ 55.11%
asset/banner-772x250.png91.09KB69.12KB▼ 24.11%