84% revcent-payments

Code Review | Centralize all Your WooCommerce Stores While Elevating Your Business with Hyper-advanced Features

WordPress plugin Centralize all Your WooCommerce Stores While Elevating Your Business with Hyper-advanced Features scored84%from 54 tests.

About plugin

  • Plugin page: revcent-payments
  • Plugin version: 1.6.3
  • PHP compatiblity: 5.2.17+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: May 12, 2020
  • Latest release: Oct 1, 2023
  • Number of updates: 102
  • Update frequency: every 12.1 days
  • Top authors: revcentadmin (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /2,077 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.01MB] [CPU: ▼3.97ms] Passed 4 tests

Server-side resources used by Centralize all Your WooCommerce Stores While Elevating Your Business with Hyper-advanced Features
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.58 ▼6.46
Dashboard /wp-admin3.31 ▲0.0143.57 ▼6.00
Posts /wp-admin/edit.php3.36 ▲0.0144.51 ▼2.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.31 ▲6.21
Media Library /wp-admin/upload.php3.24 ▲0.0132.51 ▼0.81

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Centralize all Your WooCommerce Stores While Elevating Your Business with Hyper-advanced Features
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.191.65 ▼0.1440.88 ▼3.12
Dashboard /wp-admin2,206 ▲185.82 ▲0.93110.87 ▼6.8939.13 ▼3.84
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0635.36 ▼1.3032.73 ▼4.57
Add New Post /wp-admin/post-new.php1,542 ▲2318.01 ▼5.21596.74 ▼86.7456.08 ▼8.18
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.0598.19 ▼3.7643.84 ▼0.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/revcent-payments/revcent-payment-gateway.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/revcent-payments/revcent-payments.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
6 plugin tags: woocommerce subscriptions, subscription billing, improve woocommerce, woocommerce membership, woocommerce crm...

revcent-payments/revcent-payment-gateway.php 92% from 13 tests

This is the main PHP file of "Centralize all Your WooCommerce Stores While Elevating Your Business with Hyper-advanced Features" version 1.6.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("revcent-payments.php" instead of "revcent-payment-gateway.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin934 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP412250934

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity46.67
▷ Minimum class complexity3.00
▷ Maximum class complexity72.00
Average method complexity8.21
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods210.53%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin