100% wplife-woo-s

Code Review | Switcher for WooCommerce

WordPress plugin Switcher for WooCommerce scored 100% from 54 tests.

About plugin

  • Plugin page: wplife-woo-s
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 5.8.1
  • First release: Sep 18, 2021
  • Latest release: Sep 20, 2021
  • Number of updates: 6
  • Update frequency: every 2.8 days
  • Top authors: newterra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 70 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼140.33ms] Passed 4 tests

Analyzing server-side resources used by Switcher for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1541.35 ▲20.80
Dashboard /wp-admin3.09 ▲0.0450.65 ▲5.79
Posts /wp-admin/edit.php3.15 ▲0.0442.58 ▼5.61
Add New Post /wp-admin/post-new.php5.45 ▲0.0293.49 ▼562.39
Media Library /wp-admin/upload.php3.04 ▲0.0433.75 ▲0.90
Switcher /wp-admin/options-general.php?page=wplife-woo-s/wplife-woo-s.php3.0131.64

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Switcher for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11315.89 ▲0.319.13 ▼2.9947.11 ▲1.69
Dashboard /wp-admin2,978 ▲415.96 ▲0.02142.73 ▼9.50104.54 ▼8.20
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0059.12 ▼10.0387.71 ▲2.23
Add New Post /wp-admin/post-new.php1,514 ▼10118.83 ▼1.97398.34 ▼77.41101.13 ▲0.60
Media Library /wp-admin/upload.php1,812 ▲25.04 ▼0.03157.14 ▼3.94124.69 ▲13.93
Switcher /wp-admin/options-general.php?page=wplife-woo-s/wplife-woo-s.php1,0962.1559.1070.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests Passed 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 everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: setup, wplife, switcher, woocommerce, wc...

wplife-woo-s/wplife-woo-s.php 92% from 13 tests

Analyzing the main PHP file in "Switcher for WooCommerce" version 1.1.1
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected195 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File112044

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin