89% whimcu

Code Review | Whimcu - WooCommerce Customer and Product Analytics

WordPress plugin Whimcu - WooCommerce Customer and Product Analytics scored89%from 54 tests.

About plugin

  • Plugin page: whimcu
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Jun 8, 2021
  • Latest release: Jul 31, 2023
  • Number of updates: 15
  • Update frequency: every 52.4 days
  • Top authors: teamdevbees (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /386 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Whimcu - WooCommerce Customer and Product Analytics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.08 ▲3.14
Dashboard /wp-admin3.33 ▲0.0349.91 ▼2.00
Posts /wp-admin/edit.php3.45 ▲0.0948.69 ▲1.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.03 ▼10.84
Media Library /wp-admin/upload.php3.26 ▲0.0333.05 ▼1.95

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Whimcu - WooCommerce Customer and Product Analytics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.65 ▼1.101.78 ▲0.1444.53 ▲3.68
Dashboard /wp-admin2,210 ▲195.86 ▲0.8199.07 ▼6.0137.99 ▼3.68
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0338.94 ▲3.4536.68 ▲6.29
Add New Post /wp-admin/post-new.php1,537 ▲923.31 ▲0.27650.80 ▼18.6056.19 ▲0.14
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.0298.11 ▼18.7942.96 ▼6.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in whimcu/assets to your readme.txt
The official readme.txt is a good inspiration

whimcu/whimcu.php Passed 13 tests

The principal PHP file in "Whimcu - WooCommerce Customer and Product Analytics" v. 1.0.1 is loaded by WordPress automatically on each request
58 characters long description:
Customer and product analytics designed to maximize sales.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin334 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP882362333
Markdown1001

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.21
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods832.00%
▷ Public methods2184.00%
▷ Protected methods00.00%
▷ Private methods416.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/images/whimcu_logo_16x16.png1.18KB0.81KB▼ 31.10%