84% order-gift-proceed-checkout

Code Review | Order Gift Proceed Checkout

WordPress plugin Order Gift Proceed Checkout scored 84% from 54 tests.

About plugin

  • Plugin page: order-gift-procee...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2023
  • Latest release: Mar 11, 2023
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: rejuancse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 99 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.21MB] [CPU: ▲4.40ms] Passed 4 tests

A check of server-side resources used by Order Gift Proceed Checkout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2851.94 ▲2.76
Dashboard /wp-admin3.55 ▲0.2453.12 ▼2.19
Posts /wp-admin/edit.php3.60 ▲0.2456.60 ▲5.97
Add New Post /wp-admin/post-new.php6.06 ▲0.18114.39 ▲18.53
Media Library /wp-admin/upload.php3.41 ▲0.1850.35 ▲11.06

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 10 new options
New WordPress options
gift_page_id
theysaidso_admin_options
wc_gift_proceed_installed
widget_recent-comments
widget_recent-posts
ogpc_proceed_order
widget_theysaidso_widget
wc_gift_proceed_version
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Order Gift Proceed Checkout
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,183 ▲39415.21 ▲1.9630.32 ▲28.5040.32 ▼7.11
Dashboard /wp-admin2,231 ▲255.86 ▲0.02117.10 ▲16.2589.70 ▲51.25
Posts /wp-admin/edit.php2,132 ▲462.16 ▲0.1238.78 ▲2.2835.34 ▲1.73
Add New Post /wp-admin/post-new.php1,444 ▼8917.96 ▼4.95739.73 ▲75.8268.85 ▼3.14
Media Library /wp-admin/upload.php1,419 ▲344.28 ▲0.1594.53 ▼11.6788.89 ▲46.24

Uninstaller [IO: ✅] [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: 10 options
    • widget_recent-comments
    • wc_gift_proceed_version
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • wc_gift_proceed_installed
    • db_upgraded
    • gift_page_id
    • ogpc_proceed_order
    • widget_theysaidso_widget

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/order-gift-proceed-checkout/includes/Admin.php:229

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: order as a gift, gift checkout, woocommerce, gift proceed, checkout

order-gift-proceed-checkout/order-gift-proceed-checkout.php 92% from 13 tests

The primary PHP file in "Order Gift Proceed Checkout" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected2,745 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41911551,408
PHP132263691,075
CSS144110
Sass1150102
JSON30050

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity12.40
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes111.11%
Methods72
▷ Static methods56.94%
▷ Public methods6793.06%
▷ Protected methods34.17%
▷ Private methods22.78%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/src/images/gift-card.png1.44KB1.47KB0.00%
assets/build/e13502dde7668d846ce7.png3.19KB1.17KB▼ 63.52%
assets/src/images/border.png3.19KB1.17KB▼ 63.52%