79% cycle-online-payment-gateway

Code Review | Cycle Online For WooCommerce

WordPress plugin Cycle Online For WooCommerce scored79%from 54 tests.

About plugin

  • Plugin page: cycle-online-paym...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 11, 2021
  • Latest release: Oct 11, 2021
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: cyclebit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /300 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by Cycle Online For WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.50 ▼2.10
Dashboard /wp-admin3.31 ▲0.0147.86 ▲0.22
Posts /wp-admin/edit.php3.42 ▲0.0748.81 ▲10.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.70 ▼1.06
Media Library /wp-admin/upload.php3.23 ▲0.0036.20 ▲1.97

Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: 1 new table, 7 new options
New tables
wp_cyclegateway_transactions
New WordPress options
can_compress_scripts
cyclebit_db_version
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cycle Online For WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.32 ▼1.061.70 ▼0.5947.22 ▲5.15
Dashboard /wp-admin2,206 ▲145.90 ▲0.96105.39 ▼14.0239.79 ▼5.84
Posts /wp-admin/edit.php2,086 ▼61.97 ▼0.0839.53 ▼0.5334.63 ▲0.55
Add New Post /wp-admin/post-new.php1,535 ▼723.59 ▲5.28673.60 ▲46.3067.44 ▲16.29
Media Library /wp-admin/upload.php1,385 ▲34.23 ▼0.0294.47 ▼11.4543.11 ▲0.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_cyclegateway_transactions
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • cyclebit_db_version
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: cryptocurrency, crypto, commerce, woocommerce, payments...

cycle-online-payment-gateway/class-wc-gateway-cyclegateway.php 85% from 13 tests

The main file in "Cycle Online For WooCommerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cycle-online-payment-gateway.php" instead of "class-wc-gateway-cyclegateway.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "5.0.0")

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
Success! There were no dangerous files found in this plugin1,899 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP194686471,589
Markdown2520214
JSON20096

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity20.17
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods92
▷ Static methods3436.96%
▷ Public methods6873.91%
▷ Protected methods00.00%
▷ Private methods2426.09%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png8.09KB4.33KB▼ 46.49%