78% pelepay-integration-for-woocommerce

Code Review | Pelepay integration for woocommerce

WordPress plugin Pelepay integration for woocommerce scored78%from 54 tests.

About plugin

  • Plugin page: pelepay-integrati...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 6.3.1
  • First release: Feb 14, 2013
  • Latest release: Apr 25, 2013
  • Number of updates: 4
  • Update frequency: every 17.7 days
  • Top authors: etamaro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,403 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼11.66ms] Passed 4 tests

An overview of server-side resources used by Pelepay integration for woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.57 ▲0.57
Dashboard /wp-admin3.39 ▲0.0444.73 ▼13.69
Posts /wp-admin/edit.php3.50 ▲0.1548.28 ▼2.88
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.81 ▼28.80
Media Library /wp-admin/upload.php3.31 ▲0.0834.05 ▼1.26

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Pelepay integration for woocommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼0.981.71 ▼0.0544.20 ▲0.35
Dashboard /wp-admin2,206 ▲154.82 ▼1.21108.41 ▲1.1537.86 ▼5.13
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0036.62 ▼3.1729.32 ▼7.41
Add New Post /wp-admin/post-new.php1,514 ▼1417.87 ▼0.42677.85 ▲30.4458.81 ▼0.54
Media Library /wp-admin/upload.php1,385 ▼64.20 ▼0.0198.28 ▼3.9740.60 ▼5.55

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pelepay-integration-for-woocommerce/templates/checkout/failed.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: order in wp-content/plugins/pelepay-integration-for-woocommerce/templates/checkout/failed.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pelepay-integration-for-woocommerce/class-wc-pelepay.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: pelepay, woocommerce, woo-commerce, woo commerce

pelepay-integration-for-woocommerce/class-wc-pelepay.php 92% from 13 tests

The main PHP file in "Pelepay integration for woocommerce" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("pelepay-integration-for-woocommerce.php" instead of "class-wc-pelepay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected454 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3104194454

PHP code Passed 2 tests

This is a short overview 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.30
Average class complexity51.00
▷ Minimum class complexity51.00
▷ Maximum class complexity51.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin