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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 36.81 ▲5.11 |
Dashboard /wp-admin | 3.07 ▲0.02 | 37.06 ▼6.95 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 44.13 ▲1.66 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 83.89 ▼569.96 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲98 | 16.22 ▲0.74 | 8.55 ▲0.15 | 48.97 ▲0.37 |
Dashboard /wp-admin | 2,973 ▲42 | 5.98 ▲0.01 | 164.35 ▲16.55 | 115.37 ▼2.89 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.00 | 65.80 ▲0.64 | 91.79 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,672 ▲172 | 18.77 ▲0.02 | 352.05 ▼16.94 | 101.27 ▼9.01 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.00 | 143.20 ▼23.98 | 112.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 78 | 72 | 305 |
PO File | 1 | 26 | 33 | 67 |
Markdown | 1 | 2 | 0 | 7 |
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 code | 0.27 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/fps-icon-small.png | 2.55KB | 1.39KB | ▼ 45.58% |