90% features-for-woocommerce

Code Review | Features for WooCommerce

WordPress plugin Features for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: features-for-wooc...
  • Plugin version: 3.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 9, 2019
  • Latest release: Oct 19, 2023
  • Number of updates: 25
  • Update frequency: every 59.3 days
  • Top authors: raftaar1191 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,477 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.11MB] [CPU: ▲2.72ms] Passed 4 tests

A check of server-side resources used by Features for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1239.93 ▲3.23
Dashboard /wp-admin3.40 ▲0.0948.98 ▼1.15
Posts /wp-admin/edit.php3.52 ▲0.1649.77 ▲1.93
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.40 ▲6.85
Media Library /wp-admin/upload.php3.33 ▲0.0939.24 ▲7.27

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Features for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.51 ▲0.121.77 ▼0.0739.25 ▲0.52
Dashboard /wp-admin2,192 ▲125.57 ▼0.1390.85 ▲5.0942.39 ▼5.00
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0739.68 ▲1.2037.66 ▲4.58
Add New Post /wp-admin/post-new.php1,531 ▲522.90 ▼0.25684.67 ▲31.9963.02 ▲14.31
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0594.12 ▼2.9139.82 ▼2.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: buddypress, hide, coupon, woocommerce, quantity...

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

The primary PHP file in "Features for WooCommerce" version 3.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin811 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP14194374742
JavaScript57569

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity5.42
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods61
▷ Static methods11.64%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin