89% wc-fastpaynow-by-fave

Code Review | FastPayNow By Fave

WordPress plugin FastPayNow By Fave scored89%from 54 tests.

About plugin

  • Plugin page: wc-fastpaynow-by-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: May 10, 2023
  • Latest release: Sep 11, 2023
  • Number of updates: 11
  • Update frequency: every 11.7 days
  • Top authors: favemy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /183 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.66MB] [CPU: ▼15.17ms] Passed 4 tests

An overview of server-side resources used by FastPayNow By Fave
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.55 ▼1.13
Dashboard /wp-admin3.33 ▼0.0253.36 ▼7.19
Posts /wp-admin/edit.php3.44 ▲0.0947.60 ▲3.05
Add New Post /wp-admin/post-new.php3.21 ▼2.6834.27 ▼52.60
Media Library /wp-admin/upload.php3.25 ▲0.0234.23 ▲0.23

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
fastpay_wc_unique_site_id
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for FastPayNow By Fave
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲18014.08 ▼0.717.11 ▲5.4676.10 ▲33.78
Dashboard /wp-admin2,216 ▲285.82 ▲0.9497.73 ▼9.5040.18 ▼1.48
Posts /wp-admin/edit.php2,101 ▲122.04 ▲0.0640.13 ▲5.6837.43 ▲4.74
Add New Post /wp-admin/post-new.php1,546 ▲2223.31 ▲0.08670.73 ▼9.8350.65 ▼0.35
Media Library /wp-admin/upload.php1,398 ▲104.20 ▲0.00100.73 ▼5.0246.40 ▼1.02

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

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

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: You can look at the official readme.txt

wc-fastpaynow-by-fave/fastpay-wc.php 92% from 13 tests

Analyzing the main PHP file in "FastPayNow By Fave" version 1.0.1
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wc-fastpaynow-by-fave.php" instead of "fastpay-wc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,170 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP164863501,920
JavaScript12147132
SVG30154
Markdown120039
CSS24025

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.58
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes11
▷ Abstract classes19.09%
▷ Concrete classes1090.91%
▷ Final classes00.00%
Methods79
▷ Static methods1316.46%
▷ Public methods5670.89%
▷ Protected methods45.06%
▷ Private methods1924.05%
Functions19
▷ Named functions1789.47%
▷ Anonymous functions210.53%
Constants9
▷ Global constants777.78%
▷ Class constants222.22%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin