84% easy-woocommerce-customizer

Code Review | Easy Woocommerce Customizer

WordPress plugin Easy Woocommerce Customizer scored 84% from 54 tests.

About plugin

  • Plugin page: easy-woocommerce-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 29, 2016
  • Latest release: Jan 4, 2017
  • Number of updates: 7
  • Update frequency: every 6.9 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 6,377 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.34ms] Passed 4 tests

Analyzing server-side resources used by Easy Woocommerce Customizer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.72 ▼0.49
Dashboard /wp-admin3.31 ▲0.0046.09 ▼4.66
Posts /wp-admin/edit.php3.36 ▲0.0043.60 ▼5.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.28 ▼10.91
Media Library /wp-admin/upload.php3.23 ▲0.0036.53 ▲2.54

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

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

Browser metrics Passed 4 tests

Easy Woocommerce Customizer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.35 ▼1.201.77 ▲0.0841.51 ▼8.59
Dashboard /wp-admin2,209 ▲244.87 ▼0.0798.86 ▼9.9542.01 ▼0.90
Posts /wp-admin/edit.php2,086 ▼62.04 ▲0.0434.68 ▼5.1731.00 ▼5.79
Add New Post /wp-admin/post-new.php1,542 ▲2318.52 ▼4.63682.52 ▲9.1955.36 ▼2.78
Media Library /wp-admin/upload.php1,382 ▼64.20 ▼0.0295.63 ▼0.2741.24 ▼7.91

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cs_get_option() in wp-content/plugins/easy-woocommerce-customizer/admin-contact.php:4

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 Passed 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
6 plugin tags: woocommerce, woocommerce filters, woocommerce customize plugin, easy woocommerce customize, woocommerce shop...

easy-woocommerce-customizer/easy-woocommerce-customizer.php Passed 13 tests

The entry point to "Easy Woocommerce Customizer" version 1.0.2 is a PHP file that has certain tags in its header comment area
91 characters long description:
easily customize your woocommerce store with tons of options without writing a single code.

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
No dangerous file extensions were detected28,393 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,928
JavaScript81,0687934,533
CSS6141403,992
PHP511,3601,1153,595
Sass531801,952
SVG100655
PO File6261285601
Markdown2210137

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity13.15
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity4.89
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes26.06%
▷ Concrete classes3193.94%
▷ Final classes00.00%
Methods103
▷ Static methods54.85%
▷ Public methods103100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions75
▷ Named functions75100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
options/assets/images/chosen-sprite.png0.63KB0.88KB0.00%
options/assets/images/checkerboard.png2.29KB2.54KB0.00%
options/assets/images/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%