89% thermometer-for-woocommerce-crowdfunding

Code Review | Thermometer for WooCommerce Crowdfunding

WordPress plugin Thermometer for WooCommerce Crowdfunding scored89%from 54 tests.

About plugin

  • Plugin page: thermometer-for-w...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: May 11, 2017
  • Latest release: May 11, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: danielbair (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Thermometer for WooCommerce Crowdfunding
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.60 ▼6.70
Dashboard /wp-admin3.31 ▲0.0144.79 ▼6.99
Posts /wp-admin/edit.php3.36 ▲0.0047.85 ▼1.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.05 ▼4.94
Media Library /wp-admin/upload.php3.23 ▲0.0035.15 ▲1.27

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
wcj_thermometer_page_id
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Thermometer for WooCommerce Crowdfunding
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.124.70 ▲2.4142.95 ▼2.38
Dashboard /wp-admin2,203 ▲155.84 ▲0.9598.01 ▼17.8239.23 ▼4.84
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0739.10 ▲4.6634.63 ▼0.58
Add New Post /wp-admin/post-new.php1,542 ▲518.23 ▼5.08587.38 ▼76.3365.04 ▲8.00
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0595.19 ▼6.2440.15 ▼5.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • wcj_thermometer_page_id
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
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 smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: crowdfunding, thermometer, woocommerce

thermometer-for-woocommerce-crowdfunding/wcj_product_crowdfunding_thermometer.php 77% from 13 tests

The principal PHP file in "Thermometer for WooCommerce Crowdfunding" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 313 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("thermometer-for-woocommerce-crowdfunding.php" instead of "wcj_product_crowdfunding_thermometer.php")

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
Everything looks great! No dangerous files found in this plugin234 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14390234

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
8 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/widget/thermo_300.png9.85KB5.30KB▼ 46.14%
images/widget/thermo_150.png4.43KB2.71KB▼ 38.91%
images/widget/thermo_150_red.png6.79KB2.77KB▼ 59.26%
images/widget/thermo_100.png2.75KB1.97KB▼ 28.23%
images/widget/thermo_200.png6.23KB3.49KB▼ 43.94%