89% woo-extended-settings

Code Review | Extended Settings for WooCommerce

WordPress plugin Extended Settings for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: woo-extended-sett...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 10, 2019
  • Latest release: Sep 10, 2019
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: npsorel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.12ms] Passed 4 tests

Analyzing server-side resources used by Extended Settings for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1737.49 ▼4.65
Dashboard /wp-admin3.47 ▲0.1746.95 ▼4.28
Posts /wp-admin/edit.php3.59 ▲0.2348.13 ▲2.04
Add New Post /wp-admin/post-new.php6.05 ▲0.17108.15 ▲10.94
Media Library /wp-admin/upload.php3.39 ▲0.1740.34 ▲2.43

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Extended Settings for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.181.80 ▲0.1550.93 ▲7.55
Dashboard /wp-admin2,206 ▲184.84 ▼0.04111.83 ▲1.9740.58 ▼0.47
Posts /wp-admin/edit.php2,089 ▼02.13 ▲0.1639.99 ▲2.7535.20 ▲0.30
Add New Post /wp-admin/post-new.php1,541 ▲2723.24 ▲5.70582.23 ▼88.5253.50 ▼12.86
Media Library /wp-admin/upload.php1,391 ▲34.23 ▼0.02101.23 ▼17.1549.91 ▲0.75

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: Please describe screenshot #5 in woo-extended-settings/assets to your readme.txt
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
Please take inspiration from this readme.txt

woo-extended-settings/wc-extended-settings.php 77% from 13 tests

"Extended Settings for WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 195 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("3.9" instead of "4.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-extended-settings.php" instead of "wc-extended-settings.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,205 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP112785771,125
JavaScript5192180
CSS1010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity18.75
▷ Minimum class complexity2.00
▷ Maximum class complexity64.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods52
▷ Static methods35.77%
▷ Public methods4994.23%
▷ Protected methods00.00%
▷ Private methods35.77%
Functions9
▷ Named functions222.22%
▷ Anonymous functions777.78%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin