10% pelepay-integration-for-wpecommerce

Code Review | Pelepay integration for wpecommerce

WordPress plugin Pelepay integration for wpecommerce scored10%from 54 tests.

About plugin

  • Plugin page: pelepay-integrati...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5
  • WordPress version: 6.3.1
  • First release: Feb 14, 2013
  • Latest release: Feb 14, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: etamaro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /747 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/pelepay-integration-for-wpecommerce/pelepay.merchant.php+13
    Undefined variable: num

Server metrics [RAM: ▼1.80MB] [CPU: ▼60.54ms] Passed 4 tests

This is a short check of server-side resources used by Pelepay integration for wpecommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.265.35 ▼38.69
Dashboard /wp-admin2.23 ▼1.125.98 ▼61.44
Posts /wp-admin/edit.php2.23 ▼1.146.07 ▼48.36
Add New Post /wp-admin/post-new.php2.23 ▼3.676.33 ▼93.66
Media Library /wp-admin/upload.php2.23 ▼1.016.63 ▼28.91

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 13 new options
New WordPress options
widget_recent-comments
pelepay_cancel_url
pelepay_payment_number
pelepay_button_url
pelepay_success_url
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
pelepay_business_method
...

Browser metrics Passed 4 tests

A check of browser resources used by Pelepay integration for wpecommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.56 ▲0.151.84 ▲0.0545.15 ▼1.35
Dashboard /wp-admin2,195 ▲155.61 ▼0.0190.96 ▼9.2845.64 ▲3.00
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0641.78 ▲7.1337.15 ▼1.21
Add New Post /wp-admin/post-new.php1,526 ▼223.09 ▲0.02677.12 ▼36.8852.93 ▼7.67
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.02100.79 ▼3.8145.86 ▲2.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/pelepay-integration-for-wpecommerce/pelepay.merchant.php+13
    Undefined variable: num
  • This plugin does not fully uninstall, leaving 13 options in the database
    • pelepay_failure_url
    • pelepay_cancel_url
    • widget_theysaidso_widget
    • can_compress_scripts
    • pelepay_button_url
    • widget_recent-posts
    • pelepay_success_url
    • pelepay_payment_number
    • widget_recent-comments
    • theysaidso_admin_options
    • ...

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 register_activation_hook() in wp-content/plugins/pelepay-integration-for-wpecommerce/pelepay.merchant.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wpe-commerce, wp ecommerce, pelepay, wp-ecommerce, wpecommerce

pelepay-integration-for-wpecommerce/pelepay.merchant.php 92% from 13 tests

"Pelepay integration for wpecommerce" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pelepay-integration-for-wpecommerce.php" instead of "pelepay.merchant.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected371 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16338371

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin