83% move-wc-category-description-below-products

Code Review | Move category description below products for WooCommerce

WordPress plugin Move category description below products for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: move-wc-category-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.9.2
  • WordPress version: 6.3.1
  • First release: Mar 29, 2022
  • Latest release: Mar 29, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kazinishatit (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Move category description below products for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.59 ▼0.65
Dashboard /wp-admin3.31 ▲0.0049.17 ▼13.94
Posts /wp-admin/edit.php3.36 ▲0.0053.08 ▼0.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.30 ▼5.89
Media Library /wp-admin/upload.php3.23 ▲0.0042.19 ▲6.03

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

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

Browser metrics Passed 4 tests

Move category description below products for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.251.78 ▼0.1944.32 ▼3.33
Dashboard /wp-admin2,198 ▲215.65 ▼0.0283.92 ▼14.3940.11 ▼1.61
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0039.36 ▼0.0335.05 ▼2.50
Add New Post /wp-admin/post-new.php1,526 ▼023.59 ▲0.24681.62 ▲72.1355.32 ▲3.98
Media Library /wp-admin/upload.php1,394 ▼94.24 ▲0.0797.42 ▼8.2845.46 ▼0.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/move-wc-category-description-below-products/move-category-description-below-products-for-woocommerce.php:10

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 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
Attributes that require attention: The official readme.txt is a good inspiration

move-wc-category-description-below-products/move-category-description-below-products-for-woocommerce.php 85% from 13 tests

The main PHP file in "Move category description below products for WooCommerce" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("move-wc-category-description-below-products.php" instead of "move-category-description-below-products-for-woocommerce.php")
  • Description: The description should be shorter than 140 characters (currently 346 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin328 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1800320
PHP1088

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin