90% hookie-woocommerce

Code Review | Hookie for Woocommerce

WordPress plugin Hookie for Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: hookie-woocommerce
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: Mar 22, 2016
  • Number of updates: 3
  • Update frequency: every 87.7 days
  • Top authors: mirkolofio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /915 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Hookie for Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0247.47 ▲8.54
Dashboard /wp-admin3.33 ▼0.0150.91 ▼12.33
Posts /wp-admin/edit.php3.38 ▲0.0256.25 ▲4.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.50 ▼6.14
Media Library /wp-admin/upload.php3.25 ▲0.0239.80 ▲0.30

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Hookie for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.77 ▲0.481.71 ▼0.0141.67 ▼1.18
Dashboard /wp-admin2,209 ▲244.84 ▼0.20112.04 ▲4.0742.72 ▲1.12
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0340.28 ▼0.0934.29 ▼8.13
Add New Post /wp-admin/post-new.php1,540 ▲2123.22 ▲0.18674.63 ▼6.9958.70 ▲4.52
Media Library /wp-admin/upload.php1,391 ▲34.29 ▲0.0697.41 ▼15.2945.45 ▼7.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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
Even though no errors were found, 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
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: buddypress, woocommerce, developer, filter hooks, action hooks

hookie-woocommerce/hookie-woocommerce.php Passed 13 tests

The main PHP script in "Hookie for Woocommerce" version 1.0.1 is automatically included on every request by WordPress
111 characters long description:
Enables specific WooCommerce hooks to get shown into the page dom [Extension of Hookie (Visual Hook Reference)]

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 plugin163 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11739163

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods150.00%
▷ Protected methods00.00%
▷ Private methods150.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin