Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.62ms] Passed 4 tests
Server-side resources used by Woo Partial.ly
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 35.74 ▼9.30 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.40 ▼0.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.25 ▼5.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.24 ▼3.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.47 ▲1.94 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Woo Partial.ly
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.06 | 2.06 ▲0.08 | 41.15 ▼5.55 |
Dashboard /wp-admin | 2,206 ▲21 | 5.80 ▲0.90 | 96.95 ▼18.91 | 38.10 ▼3.93 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.03 | 39.50 ▲2.90 | 34.39 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,542 ▲21 | 23.23 ▲0.19 | 586.87 ▼66.75 | 47.24 ▼17.92 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.28 ▲0.09 | 94.89 ▼3.74 | 41.62 ▼1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-partially/inc/checkout-button.php
- > /wp-content/plugins/woo-partially/inc/notification-handler.php
- > /wp-content/plugins/woo-partially/inc/gateway.php
- > /wp-content/plugins/woo-partially/inc/widget.php
- > /wp-content/plugins/woo-partially/classes/partially/admin.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: partially_offer in wp-content/plugins/woo-partially/templates/partially-checkout.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/woo-partially/templates/partially-checkout.php:6
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Contributors: Plugin contributors field is missing
woo-partially/woocommerce-partially.php 92% from 13 tests
This is the main PHP file of "Woo Partial.ly" version 2.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-partially.php" instead of "woocommerce-partially.php")
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
Success! There were no dangerous files found in this plugin931 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 172 | 80 | 931 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 3 | 14.29% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin