89% powerup-for-woocommerce

Code Review | PowerUp! for WooCommerce

WordPress plugin PowerUp! for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: powerup-for-wooco...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7
  • WordPress version: 6.3.1
  • First release: Jan 29, 2021
  • Latest release: Apr 15, 2021
  • Number of updates: 10
  • Update frequency: every 7.6 days
  • Top authors: 3minimonsters (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /607 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.07ms] Passed 4 tests

Analyzing server-side resources used by PowerUp! for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.15 ▼2.98
Dashboard /wp-admin3.40 ▲0.0954.69 ▲3.39
Posts /wp-admin/edit.php3.51 ▲0.1549.40 ▼0.23
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.31 ▼15.51
Media Library /wp-admin/upload.php3.32 ▲0.0933.04 ▼1.56

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for PowerUp! for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.34 ▼0.021.75 ▼0.3341.43 ▼1.59
Dashboard /wp-admin2,205 ▲285.64 ▼0.0388.08 ▼1.5942.17 ▼0.42
Posts /wp-admin/edit.php2,107 ▲71.99 ▲0.0537.56 ▼3.9836.56 ▼0.94
Add New Post /wp-admin/post-new.php1,533 ▲723.18 ▼0.30649.23 ▼35.3157.73 ▲11.04
Media Library /wp-admin/upload.php1,401 ▲44.23 ▲0.0399.01 ▼6.3744.00 ▲0.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 ([screenhot-1.png] WooCommerce Settings > PowerUp! - Shop page options), #2 ([screenhot-2.png] WooCommerce Settings > PowerUp! - Product page options), #3 ([screenhot-3.png] WooCommerce Settings > PowerUp! - Cart page options), #4 ([screenhot-4.png] WooCommerce Settings > PowerUp! - Checkout page options), #5 ([screenhot-5.png] WooCommerce Settings > PowerUp! - Tax options), #6 ([screenhot-6.png] WooCommerce Settings > PowerUp! - Product Image options), #7 ([screenhot-7.png] WooCommerce Settings > PowerUp! - Misc options), #8 ([screenhot-8.png] Add "Buy Now" button to your shop/category page), #9 ([screenhot-9.png] Add "Buy Now" button to your simple product page)
The official readme.txt might help

powerup-for-woocommerce/woocommerce-powerup.php 92% from 13 tests

"PowerUp! for WooCommerce" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("powerup-for-woocommerce.php" instead of "woocommerce-powerup.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
Everything looks great! No dangerous files found in this plugin1,477 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35124501,150
PO File1121155324
CSS1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity46.33
▷ Minimum class complexity9.00
▷ Maximum class complexity121.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods56
▷ Static methods47.14%
▷ Public methods4987.50%
▷ Protected methods11.79%
▷ Private methods610.71%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.80MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png80.53KB22.23KB▼ 72.40%
screenshot-2.png127.35KB39.99KB▼ 68.60%
screenshot-4.png85.80KB25.68KB▼ 70.07%
screenshot-9.png113.38KB38.35KB▼ 66.18%
screenshot-6.png50.80KB12.59KB▼ 75.22%