94% woofakepay

Code Review | WooFakePay

WordPress plugin WooFakePay scored 94% from 54 tests.

About plugin

  • Plugin page: woofakepay
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 5.8.1
  • First release: Jan 11, 2014
  • Latest release: Jan 11, 2014
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: cek (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,194 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼141.97ms] Passed 4 tests

Analyzing server-side resources used by WooFakePay
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1435.55 ▲14.79
Dashboard /wp-admin3.08 ▲0.0343.80 ▼0.13
Posts /wp-admin/edit.php3.13 ▲0.0243.78 ▲0.47
Add New Post /wp-admin/post-new.php5.44 ▲0.0190.96 ▼559.41
Media Library /wp-admin/upload.php3.02 ▲0.0129.85 ▼8.79

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooFakePay
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.99 ▲0.448.34 ▼0.6550.66 ▼1.07
Dashboard /wp-admin2,989 ▲555.96 ▲0.03136.45 ▼4.82105.53 ▼0.59
Posts /wp-admin/edit.php2,736 ▼32.80 ▲0.1171.83 ▲4.6393.45 ▲5.11
Add New Post /wp-admin/post-new.php1,670 ▲15719.14 ▲0.66372.72 ▲24.35102.23 ▼14.36
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.01143.63 ▼13.00122.23 ▲0.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woofakepay/woofakepay.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Payment Gateway config), #2 (Checkout), #3 (Visitor being redirected to the fake "remote" URL, and back), #4 (All done, Order has been paid and processed)
Please take inspiration from this readme.txt

woofakepay/woofakepay.php Passed 13 tests

The main PHP file in "WooFakePay" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Test Payment Gateway for WooCommerce That Always Pays Off

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
There were no executable files found in this plugin102 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12760102

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.51MB with 0.37MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png92.48KB25.20KB▼ 72.75%
screenshot-4.png196.47KB44.51KB▼ 77.34%
screenshot-1.png73.37KB22.50KB▼ 69.34%
screenshot-3.png159.92KB49.72KB▼ 68.91%