94% vcanfly-fps

Code Review | FPS 轉數快 WooCommerce Plugin - VcanFly

WordPress plugin FPS 轉數快 WooCommerce Plugin - VcanFly scored 94% from 54 tests.

About plugin

  • Plugin page: vcanfly-fps
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4
  • WordPress version: 5.8.1
  • First release: Jun 23, 2020
  • Latest release: Jul 29, 2020
  • Number of updates: 11
  • Update frequency: every 3.6 days
  • Top authors: vcanfly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 596 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼144.64ms] Passed 4 tests

Analyzing server-side resources used by FPS 轉數快 WooCommerce Plugin - VcanFly
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0136.81 ▲5.11
Dashboard /wp-admin3.07 ▲0.0237.06 ▼6.95
Posts /wp-admin/edit.php3.12 ▲0.0244.13 ▲1.66
Add New Post /wp-admin/post-new.php5.43 ▼0.0083.89 ▼569.96
Media Library /wp-admin/upload.php3.01 ▲0.0129.58 ▼3.30

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for FPS 轉數快 WooCommerce Plugin - VcanFly
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲9816.22 ▲0.748.55 ▲0.1548.97 ▲0.37
Dashboard /wp-admin2,973 ▲425.98 ▲0.01164.35 ▲16.55115.37 ▼2.89
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0065.80 ▲0.6491.79 ▼4.94
Add New Post /wp-admin/post-new.php1,672 ▲17218.77 ▲0.02352.05 ▼16.94101.27 ▼9.01
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.00143.20 ▼23.98112.81 ▼8.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vcanfly-fps/includes/wc_gateway_offline.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: payment, fps

vcanfly-fps/vcanfly-fps.php Passed 13 tests

The main PHP script in "FPS 轉數快 WooCommerce Plugin - VcanFly" version 1.0.2 is automatically included on every request by WordPress
44 characters long description:
Enable FPS payment provided via Vcanfly FPS.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected379 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP57872305
PO File1263367
Markdown1207

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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
includes/fps-icon-small.png2.55KB1.39KB▼ 45.58%