90% woocommerce-extender

Code Review | WooCommerce Extender

WordPress plugin WooCommerce Extender scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-extender
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7
  • WordPress version: 6.3.1
  • First release: Jul 10, 2014
  • Latest release: Jan 3, 2017
  • Number of updates: 13
  • Update frequency: every 69.9 days
  • Top authors: PentagonPromotions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,614 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.84ms] Passed 4 tests

Server-side resources used by WooCommerce Extender
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0240.87 ▼2.86
Dashboard /wp-admin3.32 ▲0.0241.20 ▼11.62
Posts /wp-admin/edit.php3.37 ▲0.0148.02 ▲3.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.08 ▼4.18
Media Library /wp-admin/upload.php3.24 ▲0.0134.32 ▼0.71

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Extender
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.19 ▼1.091.56 ▼0.6742.30 ▼0.90
Dashboard /wp-admin2,220 ▲295.88 ▲1.01107.39 ▲3.1843.34 ▲3.91
Posts /wp-admin/edit.php2,103 ▲142.03 ▼0.0240.85 ▼2.2436.38 ▲0.17
Add New Post /wp-admin/post-new.php1,542 ▼023.39 ▲5.15607.03 ▼8.3950.34 ▼1.89
Media Library /wp-admin/upload.php1,402 ▲114.20 ▼0.03100.00 ▼2.4243.15 ▼0.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • 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
Even though no errors were found, this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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: woocommerce, shop, store, law, checkout...

woocommerce-extender/woocommerce-extender.php Passed 13 tests

The main file in "WooCommerce Extender" v. 0.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
Customize your WooCommerce shop with options like custom order button text and more

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
Success! There were no dangerous files found in this plugin167 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44294108
PO File17114159

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected