89% bulk-actions-for-product-feed-for-google

Code Review | Bulk Actions for Product Feed for Google

WordPress plugin Bulk Actions for Product Feed for Google scored89%from 54 tests.

About plugin

  • Plugin page: bulk-actions-for-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 8, 2020
  • Latest release: Jun 9, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: pluginterritory (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /429 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Bulk Actions for Product Feed for Google
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.45 ▲0.64
Dashboard /wp-admin3.31 ▲0.0147.38 ▲2.44
Posts /wp-admin/edit.php3.36 ▲0.0045.75 ▼1.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.83 ▲2.19
Media Library /wp-admin/upload.php3.23 ▲0.0035.09 ▲0.73

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Bulk Actions for Product Feed for Google
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.191.69 ▲0.0446.45 ▲5.04
Dashboard /wp-admin2,203 ▲185.91 ▲0.06110.18 ▲8.8542.94 ▲2.89
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0136.58 ▲2.4034.88 ▼3.46
Add New Post /wp-admin/post-new.php1,514 ▼517.58 ▼5.57627.00 ▼64.5151.67 ▼2.59
Media Library /wp-admin/upload.php1,391 ▲34.13 ▼0.1396.68 ▼0.6541.26 ▼3.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon 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 no errors were found, this is by no means 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: woocommerce product feed, google merchant center, bulk hide

bulk-actions-for-product-feed-for-google/pt-wc-bulk-actions-for-product-feed-for-google.php 77% from 13 tests

The entry point to "Bulk Actions for Product Feed for Google" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bulk-actions-for-product-feed-for-google.php" instead of "pt-wc-bulk-actions-for-product-feed-for-google.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("3.5" instead of "5.0")

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
Good job! No executable or dangerous file extensions detected128 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3113114128

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity9.50
▷ Minimum class complexity3.00
▷ Maximum class complexity16.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods650.00%
▷ Protected methods00.00%
▷ Private methods650.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin