90% valuepay-for-givewp

Code Review | ValuePay for GiveWP

WordPress plugin ValuePay for GiveWP scored90%from 54 tests.

About plugin

  • Plugin page: valuepay-for-givewp
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Apr 6, 2022
  • Latest release: May 13, 2022
  • Number of updates: 10
  • Update frequency: every 3.8 days
  • Top authors: valuepaymy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /620 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.87ms] Passed 4 tests

This is a short check of server-side resources used by ValuePay for GiveWP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1741.01 ▼1.86
Dashboard /wp-admin3.47 ▲0.1645.23 ▼5.58
Posts /wp-admin/edit.php3.58 ▲0.2247.02 ▲0.22
Add New Post /wp-admin/post-new.php6.05 ▲0.1682.89 ▼12.27
Media Library /wp-admin/upload.php3.39 ▲0.1634.32 ▲1.96

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ValuePay for GiveWP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.65 ▼0.961.86 ▲0.0644.21 ▲0.24
Dashboard /wp-admin2,212 ▲244.81 ▼0.24105.57 ▼14.1640.68 ▼6.36
Posts /wp-admin/edit.php2,094 ▲52.04 ▼0.0040.26 ▲6.1737.86 ▲3.24
Add New Post /wp-admin/post-new.php1,540 ▼423.20 ▲5.00671.42 ▲34.5051.83 ▼11.95
Media Library /wp-admin/upload.php1,394 ▲64.22 ▲0.0499.47 ▼8.1744.82 ▼2.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: dontation, valuepay, givewp, payment

valuepay-for-givewp/valuepay-givewp.php 92% from 13 tests

The entry point to "ValuePay for GiveWP" version 1.0.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("valuepay-for-givewp.php" instead of "valuepay-givewp.php")

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
Everything looks great! No dangerous files found in this plugin915 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP16325109907
JavaScript1118

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity10.56
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods3061.22%
▷ Protected methods36.12%
▷ Private methods1632.65%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/pay-with-valuepay.png22.45KB7.44KB▼ 66.84%
assets/images/valuepay-icon.png0.44KB0.48KB0.00%