100% productsize-chart-for-woocommerce

Code Review | Product Size Chart for Woocommerce

WordPress plugin Product Size Chart for Woocommerce scored 100% from 54 tests.

About plugin

  • Plugin page: productsize-chart...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 5.8.1
  • First release: Sep 28, 2015
  • Latest release: Sep 8, 2021
  • Number of updates: 101
  • Update frequency: every 21.5 days
  • Top authors: Crispweb (94.06%)giucu91 (6.93%)

Code review

54 tests

User reviews

24 reviews

Install metrics

1,000+ active / 18,592 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by Product Size Chart for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0333.14 ▼2.12
Dashboard /wp-admin3.08 ▲0.0345.96 ▼1.14
Posts /wp-admin/edit.php3.13 ▲0.0358.69 ▲13.33
Add New Post /wp-admin/post-new.php5.45 ▲0.02111.90 ▼557.43
Media Library /wp-admin/upload.php3.03 ▲0.0233.08 ▼7.82

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Product Size Chart for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9315.87 ▲0.2711.05 ▼0.1246.92 ▼0.76
Dashboard /wp-admin2,977 ▲405.91 ▼0.01161.48 ▲18.22137.89 ▲28.60
Posts /wp-admin/edit.php2,749 ▲102.72 ▲0.0080.66 ▲10.08100.78 ▲6.70
Add New Post /wp-admin/post-new.php1,611 ▼7618.81 ▼0.05393.12 ▼7.44108.49 ▼6.12
Media Library /wp-admin/upload.php1,817 ▲695.00 ▼0.01190.47 ▲25.58121.46 ▼0.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: product chart for woocommerce, size chart for woocommerce, product chart, size chart

productsize-chart-for-woocommerce/productsize-chart-for-woocommerce.php Passed 13 tests

The principal PHP file in "Product Size Chart for Woocommerce" v. 1.1.3 is loaded by WordPress automatically on each request
68 characters long description:
This plugin allow you to use size charts to products on woocommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,647 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP184087751,339
JavaScript4241270901
CSS59059407

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity12.62
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods59
▷ Static methods23.39%
▷ Public methods5491.53%
▷ Protected methods00.00%
▷ Private methods58.47%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin