84% woo-single-product-page-customizer

Code Review | Woocommerce Single Product Page Customizer

WordPress plugin Woocommerce Single Product Page Customizer scored84%from 54 tests.

About plugin

  • Plugin page: woo-single-produc...
  • Plugin version: 2.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 31, 2018
  • Latest release: Nov 20, 2023
  • Number of updates: 48
  • Update frequency: every 39.8 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

10,000+ active /160,484 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.43ms] Passed 4 tests

Server-side resources used by Woocommerce Single Product Page Customizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.36 ▼7.13
Dashboard /wp-admin3.31 ▲0.0042.36 ▼5.90
Posts /wp-admin/edit.php3.36 ▲0.0045.38 ▼3.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.56 ▼6.09
Media Library /wp-admin/upload.php3.23 ▲0.0031.27 ▼10.60

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Woocommerce Single Product Page Customizer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.72 ▲0.381.72 ▲0.0841.85 ▼4.02
Dashboard /wp-admin2,195 ▲155.60 ▼0.0189.16 ▼10.0742.09 ▼0.87
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0639.19 ▲3.8837.63 ▼0.25
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.54667.66 ▼22.1758.48 ▲2.01
Media Library /wp-admin/upload.php1,397 ▼04.29 ▲0.0997.78 ▼4.2340.80 ▼2.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-single-product-page-customizer/front/index.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: single product page, single product page customize, insert html in product page, woocommerce customize

woo-single-product-page-customizer/woocommerce-single-product-page-customizer.php 85% from 13 tests

"Woocommerce Single Product Page Customizer" version 2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-single-product-page-customizer.php" instead of "woocommerce-single-product-page-customizer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected909 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP49730607
CSS1263302

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/image/Default-Image.png12.77KB4.49KB▼ 64.83%