Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼137.84ms] Passed 4 tests
A check of server-side resources used by Sfx product donate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 33.90 ▲14.32 |
Dashboard /wp-admin | 3.22 ▲0.16 | 61.10 ▲16.41 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 51.82 ▲6.37 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 90.32 ▼577.71 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 35.52 ▲5.65 |
Settings /wp-admin/admin.php?page=sfx-woo-donate/views/admin/settings.php | 3.08 | 36.54 |
/wp-admin/admin.php?page=process_admin | 2.98 | 26.96 |
Woo Donate /wp-admin/admin.php?page=sfx-woo-donate/views/admin/index.php | 3.08 | 33.88 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Sfx product donate
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,048 ▲452 | 18.30 ▲2.65 | 18.07 ▲8.78 | 49.81 ▼1.72 |
Dashboard /wp-admin | 3,203 ▲272 | 8.14 ▲2.13 | 168.58 ▲14.38 | 121.02 ▲11.62 |
Posts /wp-admin/edit.php | 3,038 ▲299 | 4.44 ▲1.72 | 92.71 ▲26.82 | 95.70 ▲7.36 |
Add New Post /wp-admin/post-new.php | 1,653 ▼1,892 | 21.89 ▲0.61 | 276.92 ▼225.36 | 111.24 ▼2.41 |
Media Library /wp-admin/upload.php | 1,804 ▼3 | 5.06 ▲0.05 | 118.95 ▼42.94 | 137.72 ▲8.54 |
Settings /wp-admin/admin.php?page=sfx-woo-donate/views/admin/settings.php | 1,454 | 3.86 | 79.16 | 91.74 |
/wp-admin/admin.php?page=process_admin | 8 | 0.90 | 0.06 | 0.15 |
Woo Donate /wp-admin/admin.php?page=sfx-woo-donate/views/admin/index.php | 1,402 | 4.51 | 88.22 | 86.35 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sfx-woo-donate/functions/front_generate.php
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sfx-woo-donate/core/__xt__/_menu_items.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sfx-woo-donate/controller/front.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sfx-woo-donate/widgets/sfxplugin.php:3
- > PHP Warning
Use of undefined constant sfxdonate_images_url - assumed 'sfxdonate_images_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/sfx-woo-donate/core/configs.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sfx-woo-donate/controller/woo.php:5
- > PHP Warning
Use of undefined constant sfxdonate_is_pro - assumed 'sfxdonate_is_pro' (this will throw an Error in a future version of PHP) in wp-content/plugins/sfx-woo-donate/core/configs.php on line 41
- > PHP Warning
Use of undefined constant sfxdonate_plugin_id - assumed 'sfxdonate_plugin_id' (this will throw an Error in a future version of PHP) in wp-content/plugins/sfx-woo-donate/core/configs.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sfx-woo-donate/controller/admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sfx-woo-donate/views/__xt__/settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sfx-woo-donate/core/menus.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: woo product donate, woo, woo donate, donate
sfx-woo-donate/sfx-product-donate.php 85% from 13 tests
This is the main PHP file of "Sfx product donate" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sfx-woo-donate.php" instead of "sfx-product-donate.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin12,377 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,390 | 1,598 | 9,497 |
PHP | 24 | 750 | 483 | 2,514 |
CSS | 2 | 61 | 13 | 187 |
PO File | 1 | 77 | 84 | 179 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 80.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 1 | 1.01% |
▷ Public methods | 84 | 84.85% |
▷ Protected methods | 15 | 15.15% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 15 | 39.47% |
▷ Anonymous functions | 23 | 60.53% |
Constants | 44 | |
▷ Global constants | 44 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/images/icon-black.png | 0.29KB | 0.27KB | ▼ 9.60% |
common/images/icon.png | 0.32KB | 0.27KB | ▼ 15.74% |
common/images/setting.png | 0.51KB | 0.43KB | ▼ 14.94% |