78% woo-orders-to-google-spreadsheet

Code Review | Woogs - WooCommerce orders to Google spreadsheet

WordPress plugin Woogs - WooCommerce orders to Google spreadsheet scored78%from 54 tests.

About plugin

  • Plugin page: woo-orders-to-goo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Jun 20, 2019
  • Latest release: Jun 21, 2019
  • Number of updates: 13
  • Update frequency: every 0.4 days
  • Top authors: javmah (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,280 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.74ms] Passed 4 tests

Analyzing server-side resources used by Woogs - WooCommerce orders to Google spreadsheet
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1335.62 ▼4.53
Dashboard /wp-admin3.43 ▲0.1344.46 ▼1.35
Posts /wp-admin/edit.php3.54 ▲0.1941.27 ▼3.83
Add New Post /wp-admin/post-new.php6.03 ▲0.1483.83 ▼5.26
Media Library /wp-admin/upload.php3.35 ▲0.1233.94 ▲0.94

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Woogs - WooCommerce orders to Google spreadsheet
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲13113.42 ▼0.929.01 ▲7.2939.20 ▼1.57
Dashboard /wp-admin2,215 ▲345.66 ▼0.0185.75 ▼21.5036.62 ▼1.70
Posts /wp-admin/edit.php2,120 ▲202.02 ▲0.0135.53 ▼6.3832.02 ▼5.30
Add New Post /wp-admin/post-new.php1,543 ▲1423.45 ▲0.34621.04 ▲25.7785.05 ▲34.22
Media Library /wp-admin/upload.php1,423 ▲234.24 ▲0.10101.37 ▼1.3943.02 ▼5.31

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woo-orders-to-google-spreadsheet/public/partials/woo-orders-to-google-spreadsheet-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/woo-orders-to-google-spreadsheet/admin/partials/woo-orders-to-google-spreadsheet-admin-display.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === woo-orders-to-google-spreadsheet === )
Please take inspiration from this readme.txt

woo-orders-to-google-spreadsheet/woo-orders-to-google-spreadsheet.php 92% from 13 tests

"Woogs - WooCommerce orders to Google spreadsheet" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Git Repository: Please do not include Git repositories in your plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin625 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12227597602
JavaScript2113123
CSS2080

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.29
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3386.84%
▷ Protected methods00.00%
▷ Private methods513.16%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected