84% easy-options-for-woocommerce

Code Review | Easy Options for WooCommerce

WordPress plugin Easy Options for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: easy-options-for-...
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.9.3
  • WordPress version: 6.3.1
  • First release: Nov 8, 2017
  • Latest release: May 19, 2022
  • Number of updates: 39
  • Update frequency: every 42.4 days
  • Top authors: jsherk (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

300+ active /7,733 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.83MB] [CPU: ▼29.12ms] Passed 4 tests

Server-side resources used by Easy Options for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.91 ▼0.5521.30 ▼21.53
Dashboard /wp-admin3.33 ▲0.0241.95 ▼20.35
Posts /wp-admin/edit.php3.27 ▼0.0930.94 ▼20.10
Add New Post /wp-admin/post-new.php3.19 ▼2.7037.40 ▼54.50
Media Library /wp-admin/upload.php3.33 ▲0.1037.12 ▲1.08
Easy Options for WooCommerce /wp-admin/options-general.php?page=easy-options-for-woocommerce3.2932.49

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Options for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,492 ▼1,25411.84 ▼2.390.43 ▼1.2519.86 ▼20.94
Dashboard /wp-admin1,250 ▼9381.38 ▼4.4315.09 ▼93.3935.10 ▼5.47
Posts /wp-admin/edit.php45 ▼2,0470.44 ▼1.610.08 ▼41.8410.10 ▼27.29
Add New Post /wp-admin/post-new.php45 ▼1,4750.44 ▼22.780.09 ▼680.4310.28 ▼47.33
Media Library /wp-admin/upload.php1,386 ▼24.18 ▼0.05113.69 ▲10.0187.09 ▲40.75
Easy Options for WooCommerce /wp-admin/options-general.php?page=easy-options-for-woocommerce7742.0427.8741.17

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-options-for-woocommerce/easy-options-for-woocommerce.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 25 tag instead of maximum 10
You can look at the official readme.txt

easy-options-for-woocommerce/easy-options-for-woocommerce.php 92% from 13 tests

The entry point to "Easy Options for WooCommerce" version 1.6.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 417 characters long)

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
Everything looks great! No dangerous files found in this plugin614 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112395613
HTML1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
stars-small.png1.50KB1.51KB0.00%
dbut.png13.46KB6.06KB▼ 55.01%
dbut-small.png5.33KB2.67KB▼ 49.92%