10% wp-e-commerce-whish-list

Code Review | WP eCommerce Wishlist

WordPress plugin WP eCommerce Wishlist scored10%from 54 tests.

About plugin

  • Plugin page: wp-e-commerce-whi...
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Dec 8, 2014
  • Latest release: May 2, 2023
  • Number of updates: 36
  • Update frequency: every 85.3 days
  • Top authors: fahadmahmood (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,523 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-e-commerce-whish-list/inc/functions.php+227
    Methods with the same name as their class will not be constructors in a future version of PHP; wpecwlWidget has a deprecated constructor

Server metrics [RAM: ▼1.77MB] [CPU: ▼50.28ms] Passed 4 tests

A check of server-side resources used by WP eCommerce Wishlist
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.246.38 ▼31.81
Dashboard /wp-admin2.24 ▼1.068.02 ▼40.87
Posts /wp-admin/edit.php2.25 ▼1.117.05 ▼38.70
Add New Post /wp-admin/post-new.php2.24 ▼3.657.99 ▼89.75
Media Library /wp-admin/upload.php2.25 ▼0.987.93 ▼23.69

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
wpsc_compatibility
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_wpecwlwidget
theysaidso_admin_options

Browser metrics Passed 4 tests

WP eCommerce Wishlist: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.78 ▲0.382.19 ▲0.3742.82 ▲1.39
Dashboard /wp-admin2,209 ▲215.86 ▼0.0497.76 ▼5.8640.32 ▼3.56
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0636.87 ▼6.8032.61 ▼7.17
Add New Post /wp-admin/post-new.php1,536 ▲1923.01 ▲5.52596.98 ▲0.3056.37 ▲3.82
Media Library /wp-admin/upload.php1,382 ▼64.23 ▼0.0296.33 ▼0.1944.04 ▲0.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > Deprecated in wp-content/plugins/wp-e-commerce-whish-list/inc/functions.php+227
    Methods with the same name as their class will not be constructors in a future version of PHP; wpecwlWidget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_wpecwlwidget
    • wpsc_compatibility

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-e-commerce-whish-list/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
5 plugin tags: wishlist, wish list, wp ecommerce, e-commerce, add to wishlist

wp-e-commerce-whish-list/index.php 85% from 13 tests

The principal PHP file in "WP eCommerce Wishlist" v. 1.1.6 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-e-commerce-whish-list.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected486 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP39928270
PO File34242133
CSS121283

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/notfound.png1.37KB0.33KB▼ 75.93%
images/heart-icon.png1.94KB1.26KB▼ 35.05%
images/remove.png0.91KB0.69KB▼ 23.60%