90% woocommerce-hear-about-us

Code Review | WooCommerce Hear About Us

WordPress plugin WooCommerce Hear About Us scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-hear-...
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 2, 2014
  • Latest release: Nov 21, 2016
  • Number of updates: 27
  • Update frequency: every 28.9 days
  • Top authors: siteoptimo (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /10,900 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
Installer ran successfully

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

Server-side resources used by WooCommerce Hear About Us
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.46 ▼2.78
Dashboard /wp-admin3.32 ▼0.0254.46 ▼12.67
Posts /wp-admin/edit.php3.38 ▲0.0249.45 ▼2.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.46 ▼11.97
Media Library /wp-admin/upload.php3.25 ▲0.0238.86 ▲6.62

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Hear About Us
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.76 ▼0.991.88 ▼0.3842.48 ▼1.06
Dashboard /wp-admin2,206 ▲154.86 ▼0.02116.36 ▲14.6843.27 ▼1.36
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0437.29 ▲1.0631.39 ▼3.57
Add New Post /wp-admin/post-new.php1,520 ▼2523.23 ▲4.90655.43 ▲30.5047.08 ▼13.29
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.1096.90 ▼9.5940.98 ▼1.34

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

woocommerce-hear-about-us/woocommerce-hear-about-us.php Passed 13 tests

This is the main PHP file of "WooCommerce Hear About Us" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
51 characters long description:
Ask where your new customers come from at checkout.

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
Success! There were no dangerous files found in this plugin679 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP9156172457
PO File36676187
Markdown15018
JavaScript15017

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods49
▷ Static methods510.20%
▷ Public methods3877.55%
▷ Protected methods00.00%
▷ Private methods1122.45%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin