78% category-collapser-seo-for-woocommerce

Code Review | Category collapser SEO for WooCommerce

WordPress plugin Category collapser SEO for WooCommerce scored 78% from 54 tests.

About plugin

  • Plugin page: category-collapse...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 1, 2020
  • Latest release: Apr 20, 2020
  • Number of updates: 8
  • Update frequency: every 13.9 days
  • Top authors: camilo517 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 780 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Category collapser SEO for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.51 ▼3.92
Dashboard /wp-admin3.31 ▲0.0047.33 ▼7.00
Posts /wp-admin/edit.php3.36 ▲0.0043.15 ▼2.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.47 ▼14.59
Media Library /wp-admin/upload.php3.23 ▲0.0039.06 ▲0.67
Category Collapser SEO /wp-admin/admin.php?page=category-collapser-seo3.0025.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Category collapser SEO for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.29 ▼1.091.96 ▲0.0244.12 ▼0.13
Dashboard /wp-admin2,209 ▲185.80 ▼0.0997.16 ▼20.7440.26 ▼4.72
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0438.37 ▼1.3131.62 ▼3.51
Add New Post /wp-admin/post-new.php1,534 ▼022.93 ▼0.26578.81 ▼24.2954.25 ▼3.53
Media Library /wp-admin/upload.php1,388 ▲34.27 ▲0.0491.79 ▼13.0239.90 ▼4.14
Category Collapser SEO /wp-admin/admin.php?page=category-collapser-seo280.440.063.62

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/category-collapser-seo-for-woocommerce/includes/settings_page.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-collapser-seo-for-woocommerce/includes/main.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-collapser-seo-for-woocommerce/includes/settings.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=category-collapser-seo
    • > Network (severe)
    wp-admin/admin.php?page=category-collapser-seo - 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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (test) image missing
The official readme.txt is a good inspiration

category-collapser-seo-for-woocommerce/category-collapse.php 85% from 13 tests

The main file in "Category collapser SEO for WooCommerce" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("category-collapser-seo-for-woocommerce.php" instead of "category-collapse.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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected463 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript28629242
PHP45013163
PO File1181858

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin