83% woobytes-gateway

Code Review | WooBytes gateway

WordPress plugin WooBytes gateway scored 83% from 54 tests.

About plugin

  • Plugin page: woobytes-gateway
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2017
  • Latest release: May 10, 2019
  • Number of updates: 42
  • Update frequency: every 14.4 days
  • Top authors: bottapress (95.24%)tarmo888 (7.14%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 967 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.97ms] Passed 4 tests

Analyzing server-side resources used by WooBytes gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.62 ▲1.96
Dashboard /wp-admin3.33 ▲0.0346.40 ▼3.95
Posts /wp-admin/edit.php3.38 ▲0.0347.38 ▼5.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.52 ▼23.72
Media Library /wp-admin/upload.php3.25 ▲0.0232.72 ▼2.88

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WooBytes gateway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5813.19 ▼1.181.85 ▼0.2743.74 ▼8.38
Dashboard /wp-admin2,224 ▲424.85 ▲0.00103.31 ▲2.3640.44 ▼1.66
Posts /wp-admin/edit.php2,107 ▲182.03 ▲0.0337.52 ▼3.6033.38 ▼2.64
Add New Post /wp-admin/post-new.php1,543 ▲2423.22 ▲0.05622.32 ▼24.5758.24 ▲5.85
Media Library /wp-admin/upload.php1,406 ▲154.20 ▼0.0299.02 ▼16.6242.37 ▼6.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/woobytes-gateway/class/wc_BBFM_report_class.php:77

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

woobytes-gateway/bbfm-woocommerce.php 85% from 13 tests

The main PHP file in "WooBytes gateway" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woobytes-gateway.php" instead of "bbfm-woocommerce.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,215 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP56192021,205
CSS12010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity19.33
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods74
▷ Static methods00.00%
▷ Public methods7297.30%
▷ Protected methods00.00%
▷ Private methods22.70%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
byteball.png0.95KB0.61KB▼ 35.63%