68% woo-categories-list-in-footer

Code Review | Woo Categories List In Footer

WordPress plugin Woo Categories List In Footer scored68%from 54 tests.

About plugin

  • Plugin page: woo-categories-li...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Sep 10, 2018
  • Latest release: Sep 10, 2018
  • Number of updates: 2
  • Update frequency: every 6.5 days
  • Top authors: frametagmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /525 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼35.64ms] Passed 4 tests

A check of server-side resources used by Woo Categories List In Footer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0853.08 ▲9.90
Dashboard /wp-admin3.07 ▼0.2424.53 ▼35.06
Posts /wp-admin/edit.php3.07 ▼0.2925.28 ▼32.79
Add New Post /wp-admin/post-new.php3.07 ▼2.8240.18 ▼62.65
Media Library /wp-admin/upload.php3.07 ▼0.1624.53 ▼12.07
Footer Products /wp-admin/options-general.php?page=wooFooterProducts3.0726.70

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
wooFooterProducts_columns
widget_theysaidso_widget
wooFooterProducts_title
db_upgraded
wooFooterProducts_pages
wooFooterProducts_pagesTitle
...

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Categories List In Footer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.62 ▲0.272.15 ▲0.1842.13 ▲0.18
Dashboard /wp-admin2,202 ▲285.61 ▲0.0890.68 ▼4.5139.58 ▼2.75
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0443.33 ▲0.1534.50 ▼3.62
Add New Post /wp-admin/post-new.php1,529 ▼722.95 ▲4.59685.31 ▲1.7059.23 ▼11.05
Media Library /wp-admin/upload.php1,404 ▲44.20 ▼0.0296.25 ▼8.3443.35 ▼5.35
Footer Products /wp-admin/options-general.php?page=wooFooterProducts9502.0029.1526.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/woo-categories-list-in-footer/assets/lib/PluginOptionsPage.php+39
    Undefined index: page
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wooFooterProducts
    • > Notice in wp-content/plugins/woo-categories-list-in-footer/assets/lib/PluginOptionsPage.php+39
    Undefined index: action
    • > GET request to /wp-admin/options-general.php?page=wooFooterProducts
    • > Notice in wp-content/plugins/woo-categories-list-in-footer/assets/lib/PluginOptionsPage.php+58
    Undefined index: saved
    • > GET request to /wp-admin/options-general.php?page=wooFooterProducts
    • > Notice in wp-content/plugins/woo-categories-list-in-footer/assets/lib/PluginOptionsPage.php+60
    Undefined index: reset
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wooFooterProducts
    • > Notice in wp-content/plugins/woo-categories-list-in-footer/assets/lib/PluginOptionsPage.php+87
    Undefined index: description

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/woo-categories-list-in-footer/assets/php/customWalker.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
8 plugin tags: woocommerce pages, woocommerce product categories, footer category list, storefront, category display...

woo-categories-list-in-footer/wooFooterProducts.php 92% from 13 tests

The main PHP script in "Woo Categories List In Footer" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-categories-list-in-footer.php" instead of "wooFooterProducts.php")

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
There were no executable files found in this plugin771 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP67549534
CSS3296237

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.00
▷ Minimum class complexity12.00
▷ Maximum class complexity28.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin