100% woocommerce-template-hints

Code Review | WooCommerce Template Hints

WordPress plugin WooCommerce Template Hints scored 100% from 54 tests.

About plugin

  • Plugin page: woocommerce-templ...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.5.3
  • WordPress version: 5.9.2
  • First release: Apr 9, 2015
  • Latest release: Jul 6, 2016
  • Number of updates: 6
  • Update frequency: every 81.0 days
  • Top authors: growdev (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

60+ active / 8,387 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
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼304.36ms] Passed 4 tests

Server-side resources used by WooCommerce Template Hints
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0251.98 ▲2.49
Dashboard /wp-admin3.42 ▲0.0132.42 ▼1.66
Posts /wp-admin/edit.php3.65 ▲0.0137.49 ▼0.97
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.85 ▼1,214.24
Media Library /wp-admin/upload.php3.31 ▲0.0123.71 ▼0.57

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Template Hints
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,774 ▲4915.53 ▼0.257.32 ▲1.802.29 ▼0.24
Dashboard /wp-admin2,906 ▲456.08 ▼0.12113.84 ▼18.62156.55 ▼0.91
Posts /wp-admin/edit.php2,700 ▲63.24 ▼0.0063.55 ▼0.40137.00 ▼5.61
Add New Post /wp-admin/post-new.php1,792 ▲12421.35 ▲2.50429.66 ▼0.10157.11 ▲2.17
Media Library /wp-admin/upload.php1,709 ▲115.52 ▲0.05146.56 ▲3.02188.39 ▲5.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
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 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

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: development helper, woocommerce helper, ecommerce, design helper, woocommerce theme...

woocommerce-template-hints/woocommerce-template-hints.php Passed 13 tests

"WooCommerce Template Hints" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
126 characters long description:
WooCommerce Template Hints adds a visual border around parts of all WooCommerce pages showing details about the template used.

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
Everything looks great! No dangerous files found in this plugin65 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1316859
Markdown1406

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods228.57%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
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

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png48.95KB16.54KB▼ 66.21%
screenshot-1.png111.62KB37.08KB▼ 66.78%