84% woo-wide-pay

Code Review | Woo Wide Pay

WordPress plugin Woo Wide Pay scored84%from 54 tests.

About plugin

  • Plugin page: woo-wide-pay
  • Plugin version: 1.0.13
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Jan 18, 2018
  • Latest release: Mar 8, 2023
  • Number of updates: 31
  • Update frequency: every 60.5 days
  • Top authors: widepay (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,319 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Woo Wide Pay
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.22 ▼6.89
Dashboard /wp-admin3.31 ▼0.0344.36 ▼15.57
Posts /wp-admin/edit.php3.36 ▲0.0143.07 ▲0.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.81 ▼0.95
Media Library /wp-admin/upload.php3.24 ▲0.0135.27 ▲0.60

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Wide Pay
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.471.70 ▼0.2243.10 ▼0.34
Dashboard /wp-admin2,192 ▲155.54 ▼0.1281.93 ▼15.8038.75 ▼4.14
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0532.53 ▼6.5736.47 ▼1.36
Add New Post /wp-admin/post-new.php1,535 ▼118.37 ▲0.25609.44 ▼38.1970.38 ▲0.09
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.0397.47 ▼4.8042.31 ▼0.19

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× 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/woo-wide-pay/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
6 plugin tags: payment, pagamentos, widepay, ecommerce, woocommerce...

woo-wide-pay/index.php 85% from 13 tests

"Woo Wide Pay" version 1.0.13's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 168 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-wide-pay.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin663 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26726635
Markdown110028

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity30.00
▷ Minimum class complexity3.00
▷ Maximum class complexity57.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.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

All PNG images should be compressed to minimize bandwidth usage for end users
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
images/logo.png4.14KB1.97KB▼ 52.42%