83% wc-category-description-jump-under-products

Code Review | Move Category description under products for WooCommerce

WordPress plugin Move Category description under products for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: wc-category-descr...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0+
  • WordPress version: 6.3.1
  • First release: Nov 10, 2021
  • Latest release: Nov 20, 2022
  • Number of updates: 46
  • Update frequency: every 8.2 days
  • Top authors: marcobarbadoro81 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,013 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
This plugin's installer ran successfully

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

Server-side resources used by Move Category description under products for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.72 ▲6.76
Dashboard /wp-admin3.31 ▲0.0050.34 ▼7.77
Posts /wp-admin/edit.php3.36 ▲0.0048.70 ▼1.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.83 ▼10.27
Media Library /wp-admin/upload.php3.23 ▲0.0039.32 ▲4.14

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Move Category description under products for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▼0.061.94 ▲0.0645.08 ▲3.11
Dashboard /wp-admin2,195 ▲185.63 ▲0.0993.47 ▲3.3042.26 ▼4.23
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0137.17 ▼0.0634.00 ▼4.70
Add New Post /wp-admin/post-new.php1,526 ▼222.96 ▼0.19662.46 ▲18.6355.13 ▲7.92
Media Library /wp-admin/upload.php1,403 ▼04.17 ▲0.0196.14 ▼14.3245.99 ▲2.77

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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
Even though no errors were found, 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/wc-category-description-jump-under-products/salta-sotto.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: The official readme.txt might help

wc-category-description-jump-under-products/admin-salta-sotto.php 85% from 13 tests

The primary PHP file in "Move Category description under products for WooCommerce" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wc-category-description-jump-under-products.php" instead of "admin-salta-sotto.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected25 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23351625

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions2
▷ Named functions2100.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 files were detected