Benchmarks
Plugin footprint 48% 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.09MB] [CPU: ▼5.32ms] Passed 4 tests
Server-side resources used by Woo Login To See Price And Buy
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 24.30 ▼20.77 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.33 ▼1.75 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 47.30 ▲2.69 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 88.79 ▲6.51 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 33.20 ▼1.45 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Woo Login To See Price And Buy
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,459 ▼276 | 13.21 ▼1.54 | 0.47 ▼1.19 | 17.47 ▼31.69 |
Dashboard /wp-admin | 2,194 ▲9 | 5.82 ▲0.93 | 106.46 ▼1.38 | 35.25 ▼7.89 |
Posts /wp-admin/edit.php | 2,083 ▼6 | 2.05 ▲0.03 | 39.04 ▲0.30 | 30.86 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 18.45 ▲1.07 | 601.28 ▼90.32 | 61.07 ▼1.70 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.23 ▼0.00 | 97.10 ▼7.46 | 37.91 ▼8.13 |
Uninstaller [IO: ▲0.04MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the followingThis plugin did not uninstall successfully, leaving 7 options in the database
- This plugin did not uninstall without warnings or errors
- > Error in wp-content/plugins/woo-login-to-see-price-and-buy/uninstall.php+7
Uncaught Error: Call to undefined function apply_filter() in wp-content/plugins/woo-login-to-see-price-and-buy/uninstall.php:7
Stack trace:
#0 wp-admin/includes/plugin.php(1245): include_once()
#1 wp-admin/includes/plugin.php(960): uninstall_plugin() - Uninstaller has failed for this plugin, leaving 11 files (0.04MB) in the plugin directory
- (new file) frontend/class-wltspab-hide-product-add-to-cart.php
- (new file) uninstall.php
- (new file) assets/js/wltspab-admin-settings.js
- (new file) admin/class-wltspab-render-admin-settings.php
- (new file) assets/css/wltspab-woo-frontend.css
- (new file) frontend/class-wltspab-render-alternative-html.php
- (new file) readme.txt
- (new file) assets/css/wltspab-admin-settings.css
- (new file) language/.empty
- (new file) frontend/class-wltspab-hide-product-price.php
- ...
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
10 plugin tags: remove update link, hide plugin update link, hide update link, woocommerce, woocommerce plugin...
woo-login-to-see-price-and-buy/woo-login-to-see-price-and-buy.php 92% from 13 tests
"Woo Login To See Price And Buy" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/i18n/languages/")
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
Success! There were no dangerous files found in this plugin522 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 120 | 251 | 470 |
CSS | 2 | 2 | 0 | 47 |
JavaScript | 1 | 3 | 1 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.40 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 37 | |
▷ Static methods | 5 | 13.51% |
▷ Public methods | 30 | 81.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.92% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
No PNG images were found in this plugin