90% wpc-product-size-chart

Code Review | WPC Product Size Chart for WooCommerce

WordPress plugin WPC Product Size Chart for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-product-size-...
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 13, 2022
  • Latest release: Sep 25, 2023
  • Number of updates: 19
  • Update frequency: every 23.1 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /5,337 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.85ms] Passed 4 tests

An overview of server-side resources used by WPC Product Size Chart for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.16 ▲1.88
Dashboard /wp-admin3.32 ▼0.0244.22 ▼14.96
Posts /wp-admin/edit.php3.44 ▲0.0843.67 ▼3.23
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.70 ▼19.07
Media Library /wp-admin/upload.php3.25 ▲0.0239.30 ▲7.21
About /wp-admin/admin.php?page=wpclever3.2128.59
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.2130.84

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPC Product Size Chart for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲9514.32 ▼0.211.50 ▼0.2739.07 ▼2.75
Dashboard /wp-admin2,272 ▲955.60 ▼0.0783.63 ▼5.9372.34 ▲26.47
Posts /wp-admin/edit.php2,178 ▲812.02 ▲0.0736.22 ▼1.5034.15 ▲0.30
Add New Post /wp-admin/post-new.php1,763 ▲22924.43 ▲6.45714.35 ▲75.3151.18 ▼12.76
Media Library /wp-admin/upload.php1,471 ▲684.18 ▲0.05104.28 ▲10.2676.91 ▲36.17
About /wp-admin/admin.php?page=wpclever1,4052.1429.5933.51
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7352.1333.0766.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

wpc-product-size-chart/wpc-product-size-chart.php Passed 13 tests

The main PHP file in "WPC Product Size Chart for WooCommerce" ver. 2.0.6 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
Ultimate solution to manage WooCommerce product size charts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,342 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript74091791,769
CSS6259751,329
PHP4190421,198
SVG20046

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity38.25
▷ Minimum class complexity1.00
▷ Maximum class complexity105.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods52
▷ Static methods35.77%
▷ Public methods52100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants7
▷ Global constants7100.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
PNG images were not found in this plugin