72% full-woo-commerce-admin

Code Review | Full Woo Commerce Admin

WordPress plugin Full Woo Commerce Admin scored72%from 54 tests.

About plugin

  • Plugin page: full-woo-commerce...
  • Plugin version: 0.9821
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9.1
  • WordPress version: 6.3.1
  • First release: Jan 3, 2016
  • Latest release: Apr 8, 2022
  • Number of updates: 40
  • Update frequency: every 57.2 days
  • Top authors: erwanpia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /9,106 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.28ms] Passed 4 tests

Analyzing server-side resources used by Full Woo Commerce Admin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.87 ▲1.34
Dashboard /wp-admin3.40 ▲0.0552.15 ▼17.60
Posts /wp-admin/edit.php3.51 ▲0.1551.49 ▲1.62
Add New Post /wp-admin/post-new.php5.98 ▲0.0989.24 ▼14.48
Media Library /wp-admin/upload.php3.32 ▲0.0938.14 ▲3.58
Products / Full Admin /wp-admin/edit.php?post_type=product&page=wave-woo-admin-page-products3.0924.96
Products / Full Admin /wp-admin/admin.php?page=wave-woo-admin-page-woo3.2733.34

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Full Woo Commerce Admin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.35 ▼0.002.26 ▲0.5944.46 ▲2.02
Dashboard /wp-admin2,197 ▲205.55 ▲0.0195.45 ▲6.8043.38 ▲5.25
Posts /wp-admin/edit.php2,105 ▲51.97 ▼0.0235.53 ▼5.6933.46 ▼4.00
Add New Post /wp-admin/post-new.php1,531 ▲522.94 ▼0.67665.44 ▼25.6249.85 ▼18.59
Media Library /wp-admin/upload.php1,402 ▲54.25 ▲0.09103.95 ▼13.0444.64 ▼0.13
Products / Full Admin /wp-admin/edit.php?post_type=product&page=wave-woo-admin-page-products280.420.073.36
Products / Full Admin /wp-admin/admin.php?page=wave-woo-admin-page-woo7161.9321.3337.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wave-woo-admin-page-woo
    • > Notice in wp-content/plugins/full-woo-commerce-admin/admin/class-wave-woo-admin.php+147
    Undefined variable: output
  • 409580 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wave-woo-admin-page-woo
    • > Notice in wp-content/plugins/full-woo-commerce-admin/admin/class-wave-woo-admin.php+215
    Trying to get property 'term_id' of non-object
  • 81916 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wave-woo-admin-page-woo
    • > Notice in wp-content/plugins/full-woo-commerce-admin/admin/class-wave-woo-admin.php+214
    Trying to get property 'name' of non-object

SRP 50% from 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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/full-woo-commerce-admin/public/partials/plugin-name-public-display.php
    • > /wp-content/plugins/full-woo-commerce-admin/admin/partials/plugin-name-admin-display.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=product&page=wave-woo-admin-page-products
    • > Network (severe)
    wp-admin/edit.php?post_type=product&page=wave-woo-admin-page-products - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (woocommerce admin screenshot)
The official readme.txt might help

full-woo-commerce-admin/wave-woo-admin.php 85% from 13 tests

Analyzing the main PHP file in "Full Woo Commerce Admin" version 0.9821
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("full-woo-commerce-admin.php" instead of "wave-woo-admin.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin19,463 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript271,8827,18216,894
CSS14941621,561
PHP13249668724
HTML150106
LESS1185679
JSON20055
Markdown119030
XML140014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.88
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods48
▷ Static methods1735.42%
▷ Public methods4287.50%
▷ Protected methods00.00%
▷ Private methods612.50%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.79MB with 0.26MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/js/sophilabs-jquery-counter-7cc91ab/src/jquery.counter-analog2.png44.34KB42.54KB▼ 4.08%
screenshot-1.png656.73KB265.93KB▼ 59.51%
admin/js/sophilabs-jquery-counter-7cc91ab/src/jquery.counter-analog.png29.77KB31.07KB0.00%
admin/js/sophilabs-jquery-counter-7cc91ab/src/jquery.counter-analog3.png78.13KB23.83KB▼ 69.50%