84% hide-sku-category-tags

Code Review | Remove SKUs Category Tags

WordPress plugin Remove SKUs Category Tags scored84%from 54 tests.

About plugin

  • Plugin page: hide-sku-category...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2022
  • Latest release: Sep 12, 2023
  • Number of updates: 6
  • Update frequency: every 100.8 days
  • Top authors: asifalimca.2011 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /265 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Remove SKUs Category Tags
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.54 ▲0.49
Dashboard /wp-admin3.31 ▲0.0049.97 ▲1.51
Posts /wp-admin/edit.php3.36 ▲0.0049.62 ▼4.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.17 ▲2.38
Media Library /wp-admin/upload.php3.23 ▲0.0035.51 ▼2.73

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove SKUs Category Tags
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.17 ▼1.212.08 ▲0.2043.23 ▼0.95
Dashboard /wp-admin2,206 ▲155.82 ▼0.08110.76 ▲3.5055.08 ▲11.87
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0340.89 ▲0.5735.41 ▲2.79
Add New Post /wp-admin/post-new.php1,533 ▼023.08 ▼0.38695.22 ▲84.4553.39 ▼8.85
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0295.23 ▼4.3645.21 ▼4.51

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/hide-sku-category-tags/hide-sku-category-tags.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: remove category, remove tags, remove skus

hide-sku-category-tags/hide-sku-category-tags.php Passed 13 tests

"Remove SKUs Category Tags" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
This plugin will Remove Woocommerce product SKUs Category Tags woocommerce Product Details Page.

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
Success! There were no dangerous files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1092

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected