89% woocommerce-remove-sku

Code Review | Remove SKU From Product detail page

WordPress plugin Remove SKU From Product detail page scored89%from 54 tests.

About plugin

  • Plugin page: woocommerce-remov...
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Aug 6, 2023
  • Number of updates: 34
  • Update frequency: every 87.4 days
  • Top authors: freewebmentor (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /29,694 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Remove SKU From Product detail page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.93 ▲0.90
Dashboard /wp-admin3.31 ▼0.0344.55 ▼13.17
Posts /wp-admin/edit.php3.36 ▲0.0145.11 ▲1.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.02 ▼8.68
Media Library /wp-admin/upload.php3.23 ▲0.0035.46 ▼3.20

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Remove SKU From Product detail page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4514.38 ▲0.101.88 ▲0.0538.98 ▼1.74
Dashboard /wp-admin2,192 ▲115.52 ▼0.1991.71 ▼7.9740.18 ▼2.82
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0036.12 ▼2.4734.22 ▼1.78
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▼0.32679.52 ▲14.5955.37 ▲0.39
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.07103.81 ▲2.7646.06 ▲1.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (You can enable and disable this feature from settings.) image missing
The official readme.txt is a good inspiration

woocommerce-remove-sku/index.php 92% from 13 tests

Analyzing the main PHP file in "Remove SKU From Product detail page" version 1.4.2
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woocommerce-remove-sku.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin58 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1174355
CSS1033

PHP code Passed 2 tests

Analyzing 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.13
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.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 files were detected