70% woo-login-to-see-price-and-buy

Code Review | Woo Login To See Price And Buy

WordPress plugin Woo Login To See Price And Buy scored70%from 54 tests.

About plugin

  • Plugin page: woo-login-to-see-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Dec 11, 2016
  • Latest release: Dec 12, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: simplerthansimplest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,457 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0824.30 ▼20.77
Dashboard /wp-admin3.40 ▲0.1046.33 ▼1.75
Posts /wp-admin/edit.php3.51 ▲0.1647.30 ▲2.69
Add New Post /wp-admin/post-new.php5.98 ▲0.1088.79 ▲6.51
Media Library /wp-admin/upload.php3.32 ▲0.1033.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,459 ▼27613.21 ▼1.540.47 ▼1.1917.47 ▼31.69
Dashboard /wp-admin2,194 ▲95.82 ▲0.93106.46 ▼1.3835.25 ▼7.89
Posts /wp-admin/edit.php2,083 ▼62.05 ▲0.0339.04 ▲0.3030.86 ▼4.28
Add New Post /wp-admin/post-new.php1,536 ▲2218.45 ▲1.07601.28 ▼90.3261.07 ▼1.70
Media Library /wp-admin/upload.php1,382 ▼34.23 ▼0.0097.10 ▼7.4637.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 following
  • 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
    • ...
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • 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:
LanguageFilesBlank linesComment linesLines of code
PHP6120251470
CSS22047
JavaScript1315

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 code0.25
Average class complexity8.40
▷ Minimum class complexity6.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods37
▷ Static methods513.51%
▷ Public methods3081.08%
▷ Protected methods00.00%
▷ Private methods718.92%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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