84% wc-map-guest-orders-and-downloads

Code Review | WC Map Guest Orders and Downloads

WordPress plugin WC Map Guest Orders and Downloads scored84%from 54 tests.

About plugin

  • Plugin page: wc-map-guest-orde...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2017
  • Latest release: Jun 5, 2019
  • Number of updates: 4
  • Update frequency: every 182.3 days
  • Top authors: duplaja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /745 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.19ms] Passed 4 tests

Analyzing server-side resources used by WC Map Guest Orders and Downloads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0058.74 ▲15.32
Dashboard /wp-admin3.35 ▼0.0450.49 ▼13.52
Posts /wp-admin/edit.php3.40 ▲0.0046.63 ▼5.75
Add New Post /wp-admin/post-new.php5.93 ▲0.0083.07 ▼20.25
Media Library /wp-admin/upload.php3.27 ▲0.0036.52 ▼1.22

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WC Map Guest Orders and Downloads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.36 ▲0.181.80 ▲0.0444.46 ▲3.50
Dashboard /wp-admin2,198 ▲215.61 ▼0.1192.90 ▲3.3043.47 ▲0.29
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0436.06 ▼1.8533.04 ▼1.45
Add New Post /wp-admin/post-new.php1,542 ▲1418.33 ▼4.67640.88 ▼23.6575.18 ▲16.88
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0195.98 ▼14.4243.53 ▼1.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wc-map-guest-orders-and-downloads/wc-map-guest-orders-and-downloads.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: orders, mapping, woocommerce, downloads, guest

wc-map-guest-orders-and-downloads/wc-map-guest-orders-and-downloads.php Passed 13 tests

This is the main PHP file of "WC Map Guest Orders and Downloads" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
107 characters long description:
Maps WooCommerce guest orders and downloads to an account with the same e-mail on account creation or login

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1352457

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG files were detected