Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.70ms] Passed 4 tests
An overview of server-side resources used by Favo - Woocommerce Product Favorite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.73 ▼6.89 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.83 ▼2.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.47 ▼1.01 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 82.75 ▼20.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.48 ▲2.47 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 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
An overview of browser requirements for Favo - Woocommerce Product Favorite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.65 ▼1.00 | 1.98 ▲0.18 | 43.38 ▼3.81 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼0.08 | 104.18 ▼7.18 | 39.38 ▼2.03 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.00 | 41.12 ▼0.21 | 36.32 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.15 ▲0.17 | 671.97 ▲72.77 | 57.15 ▲6.91 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.25 ▲0.04 | 98.01 ▼3.21 | 40.68 ▼1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/favo/inc/helpers.php:5
- > PHP Warning
Use of undefined constant FAVO_VERSION - assumed 'FAVO_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/favo/views/admin/page-setting.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function favo_setting() in wp-content/plugins/favo/views/admin/page-setting.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Favo on action.), #2 (General Options.), #3 (Button Options.), #4 (Message options.)
favo/favo.php 85% from 13 tests
The principal PHP file in "Favo - Woocommerce Product Favorite" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.5" instead of "3.0")
- Domain Path: The domain path points to a folder that does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected919 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 73 | 162 | 583 |
CSS | 2 | 8 | 4 | 192 |
JavaScript | 2 | 17 | 21 | 144 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 15.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.56% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 5 | |
▷ Global constants | 5 | 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
There were not PNG files found in your plugin