Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.68ms] Passed 4 tests
Server-side resources used by WooCommerce RRP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.34 ▼6.44 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.23 ▲0.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.90 ▼1.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.57 ▼19.05 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.11 ▲2.62 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce RRP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.74 ▲0.36 | 1.65 ▼0.00 | 44.74 ▲7.27 |
Dashboard /wp-admin | 2,203 ▲11 | 5.91 ▲1.04 | 111.25 ▲2.44 | 43.27 ▲1.15 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.99 ▼0.01 | 33.91 ▼2.38 | 34.05 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,533 ▼5 | 23.09 ▼0.24 | 671.49 ▼14.86 | 57.89 ▲6.97 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.05 | 95.34 ▼4.42 | 44.63 ▼2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/includes/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/assets/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/public/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/languages/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/admin/index.php on line 2
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/woocommerce-rrp/public/partials/index.php on line 2
- > PHP Warning
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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: wc-admin, admin, woocommerce, woocommerce-admin, woocommerce-price...
woocommerce-rrp/woocommerce-rrp.php 92% from 13 tests
"WooCommerce RRP" version 1.7.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "6.0.0")
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
Good job! No executable or dangerous file extensions detected267 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 86 | 318 | 229 |
PO File | 1 | 9 | 9 | 38 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 61.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 38.46% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected