100% wooheat

Code Review | wooHeat!

WordPress plugin wooHeat! scored 100% from 54 tests.

About plugin

  • Plugin page: wooheat
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 5.8.1
  • First release: Jul 22, 2015
  • Latest release: Oct 8, 2020
  • Number of updates: 9
  • Update frequency: every 211.7 days
  • Top authors: uiux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 662 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼139.68ms] Passed 4 tests

Server-side resources used by wooHeat!
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0335.60 ▲0.73
Dashboard /wp-admin3.10 ▲0.0444.13 ▲0.88
Posts /wp-admin/edit.php3.15 ▲0.0434.80 ▼6.80
Add New Post /wp-admin/post-new.php5.46 ▲0.0290.94 ▼553.51
Media Library /wp-admin/upload.php3.05 ▲0.0437.04 ▲7.92

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for wooHeat!
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.89 ▲0.2911.11 ▲1.0948.08 ▲0.31
Dashboard /wp-admin2,990 ▲596.00 ▲0.01135.50 ▼7.96111.34 ▼3.34
Posts /wp-admin/edit.php2,759 ▲232.71 ▼0.0166.33 ▼1.6088.61 ▼7.88
Add New Post /wp-admin/post-new.php1,889 ▲28519.14 ▲0.23369.22 ▼2.04109.58 ▼6.86
Media Library /wp-admin/upload.php1,830 ▲235.03 ▼0.00153.95 ▲1.05122.12 ▲3.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #2, #3 in wooheat/assets to your readme.txt
The official readme.txt might help

wooheat/wooheat.php Passed 13 tests

The main file in "wooHeat!" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
103 characters long description:
Woocommerce Plugin for adding Heat Ratings to products allowing items to be sorted by their heat value.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin193 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP39711193

PHP code Passed 2 tests

This is a short overview 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.36
Average class complexity10.00
▷ Minimum class complexity3.00
▷ Maximum class complexity17.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected