84% eshop-quantumwebform

Code Review | Quantum Gateway Web Form for eShop

WordPress plugin Quantum Gateway Web Form for eShop scored84%from 54 tests.

About plugin

  • Plugin page: eshop-quantumwebform
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 20, 2012
  • Latest release: Nov 23, 2012
  • Number of updates: 12
  • Update frequency: every 0.3 days
  • Top authors: mthosting (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /858 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 gracefully, with no errors

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

Analyzing server-side resources used by Quantum Gateway Web Form for eShop
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.68 ▲1.26
Dashboard /wp-admin3.31 ▲0.0045.36 ▼0.75
Posts /wp-admin/edit.php3.36 ▲0.0046.42 ▼6.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.20 ▼12.44
Media Library /wp-admin/upload.php3.23 ▲0.0033.79 ▼2.97

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quantum Gateway Web Form for eShop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.62 ▼0.782.12 ▲0.2242.18 ▼6.35
Dashboard /wp-admin2,206 ▲185.79 ▲0.7294.83 ▼16.2838.46 ▲1.04
Posts /wp-admin/edit.php2,086 ▼02.02 ▼0.0438.68 ▼0.4533.89 ▼2.50
Add New Post /wp-admin/post-new.php1,520 ▼2223.39 ▲5.09665.34 ▲46.4560.46 ▲2.09
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0096.69 ▼9.4543.29 ▲1.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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/eshop-quantumwebform/quantumwebform.php
    • > /wp-content/plugins/eshop-quantumwebform/quantumwebform.checkout.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
7 plugin tags: credit, cdgcommerce, quantumgateway, quantum, creditcard...

eshop-quantumwebform/quantumwebform.php 92% from 13 tests

"Quantum Gateway Web Form for eShop" version 0.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eshop-quantumwebform.php" instead of "quantumwebform.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin148 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23549148

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/button.png4.86KB2.66KB▼ 45.31%