Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.62ms] Passed 4 tests
Analyzing server-side resources used by Simple Woocommerce Favourites
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.76 ▼0.28 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.43 ▲3.64 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.36 ▼5.16 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.50 ▼18.87 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.26 ▲1.85 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Woocommerce Favourites
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲114 | 13.37 ▼0.90 | 8.55 ▲6.95 | 41.31 ▼1.06 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.00 | 88.73 ▼1.06 | 39.01 ▼5.34 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.00 | 39.20 ▼2.33 | 34.52 ▼5.05 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.49 ▲0.33 | 685.62 ▲80.45 | 52.54 ▼2.22 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.21 ▲0.09 | 103.75 ▲3.59 | 48.50 ▲5.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_id() on null in wp-content/plugins/simple-woocommerce-favourites/views/add-to-favourites-button.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/simple-woocommerce-favourites/views/favourites-template.php:18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/simple-woocommerce-favourites/views/favourites-template.php on line 2
- > PHP Notice
Undefined variable: args in wp-content/plugins/simple-woocommerce-favourites/views/favourites-template.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid plugin version format
simple-woocommerce-favourites/simple-woocommerce-favourites.php Passed 13 tests
Analyzing the main PHP file in "Simple Woocommerce Favourites" version 2.1.3
90 characters long description:
Manages a simple list of favourite products for each user and displays it with a shortcode
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
No dangerous file extensions were detected414 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 113 | 128 | 320 |
JavaScript | 1 | 4 | 0 | 44 |
Sass | 1 | 5 | 0 | 27 |
CSS | 1 | 1 | 1 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 3.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 25 | |
▷ Static methods | 25 | 100.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There are no PNG files in this plugin