90% virtuaria-google-shopping

Code Review | Virtuaria - Google Shopping

WordPress plugin Virtuaria - Google Shopping scored90%from 54 tests.

About plugin

  • Plugin page: virtuaria-google-...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 5, 2022
  • Latest release: Nov 22, 2023
  • Number of updates: 7
  • Update frequency: every 50.6 days
  • Top authors: tecnologiavirtuaria (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /327 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.10MB] [CPU: ▼2.92ms] Passed 4 tests

A check of server-side resources used by Virtuaria - Google Shopping
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1034.87 ▼14.68
Dashboard /wp-admin3.41 ▲0.1046.79 ▼2.37
Posts /wp-admin/edit.php3.52 ▲0.1648.49 ▲1.73
Add New Post /wp-admin/post-new.php5.99 ▲0.1084.63 ▲4.69
Media Library /wp-admin/upload.php3.33 ▲0.1037.08 ▲3.64

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Virtuaria - Google Shopping
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1714.70 ▲0.051.54 ▼0.6835.87 ▼8.53
Dashboard /wp-admin2,212 ▲355.63 ▼0.0194.80 ▲0.7841.64 ▲1.20
Posts /wp-admin/edit.php2,118 ▲182.03 ▲0.0040.54 ▲5.5535.45 ▼4.29
Add New Post /wp-admin/post-new.php1,549 ▲2325.32 ▲2.03620.70 ▲12.8260.46 ▲9.82
Media Library /wp-admin/upload.php1,408 ▲54.16 ▼0.0699.57 ▲3.6244.68 ▲3.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
6 plugin tags: feed, merchant, google, marketing, integration...

virtuaria-google-shopping/virtuaria-google-shopping.php Passed 13 tests

The main PHP script in "Virtuaria - Google Shopping" version 1.0.7 is automatically included on every request by WordPress
49 characters long description:
Generate xml from products in store and shopping.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin651 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP487184651

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity49.00
▷ Minimum class complexity41.00
▷ Maximum class complexity57.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods27
▷ Static methods311.11%
▷ Public methods1970.37%
▷ Protected methods27.41%
▷ Private methods622.22%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin