90% remove-woocommerce-product-content

Code Review | Remove Woocommerce Product Content

WordPress plugin Remove Woocommerce Product Content scored90%from 54 tests.

About plugin

  • Plugin page: remove-woocommerc...
  • Plugin version: 2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2018
  • Latest release: Nov 20, 2023
  • Number of updates: 34
  • Update frequency: every 56.0 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /38,874 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.01MB] [CPU: ▼5.45ms] Passed 4 tests

A check of server-side resources used by Remove Woocommerce Product Content
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.49 ▼5.96
Dashboard /wp-admin3.31 ▼0.0449.73 ▼13.08
Posts /wp-admin/edit.php3.36 ▲0.0047.11 ▲5.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.64 ▼1.35
Media Library /wp-admin/upload.php3.23 ▲0.0032.38 ▼1.41

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Woocommerce Product Content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.06 ▼0.382.36 ▲0.5740.72 ▼2.89
Dashboard /wp-admin2,198 ▲275.60 ▼0.0584.37 ▼15.2542.81 ▼4.83
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0139.89 ▲0.5934.79 ▼1.55
Add New Post /wp-admin/post-new.php1,535 ▲923.11 ▼0.02611.38 ▼135.7662.51 ▲1.55
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.1394.12 ▼15.4341.51 ▼5.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: hide content from single product page, remove price, remove product tab, woocommerce customize, remove sale price...

remove-woocommerce-product-content/remove-woocommerce-product-content.php Passed 13 tests

The entry point to "Remove Woocommerce Product Content" version 2.1 is a PHP file that has certain tags in its header comment area
88 characters long description:
Hide product content from wooocommerce Single product page, Shop page and category page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected412 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36121316
CSS118088
JavaScript1108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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