84% howuku

Code Review | Heatmap & Analytics - Howuku Web Optimization

WordPress plugin Heatmap & Analytics - Howuku Web Optimization scored84%from 54 tests.

About plugin

  • Plugin page: howuku
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.0
  • WordPress version: 6.3.1
  • First release: Jul 11, 2020
  • Latest release: Jun 12, 2022
  • Number of updates: 50
  • Update frequency: every 14.0 days
  • Top authors: howuku (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /2,076 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.17ms] Passed 4 tests

Analyzing server-side resources used by Heatmap & Analytics - Howuku Web Optimization
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.11 ▼4.41
Dashboard /wp-admin3.33 ▲0.0352.59 ▲3.86
Posts /wp-admin/edit.php3.38 ▲0.0242.27 ▼5.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.03 ▼20.66
Media Library /wp-admin/upload.php3.25 ▲0.0240.19 ▲1.94

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Heatmap & Analytics - Howuku Web Optimization
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9813.22 ▼1.001.99 ▲0.3842.11 ▼3.82
Dashboard /wp-admin2,210 ▲194.96 ▼0.95114.90 ▲9.8881.00 ▲38.11
Posts /wp-admin/edit.php2,108 ▲192.13 ▲0.1449.94 ▲13.9533.05 ▲0.06
Add New Post /wp-admin/post-new.php1,694 ▲15724.80 ▲1.62744.11 ▲17.2268.74 ▼2.21
Media Library /wp-admin/upload.php1,401 ▲164.20 ▲0.01114.10 ▲9.7149.48 ▲1.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/howuku/views/options.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/howuku/howuku-analytics.php:71

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: recording, analytics, conversion, heatmaps, heat map...

howuku/howuku-analytics.php 92% from 13 tests

The main PHP script in "Heatmap & Analytics - Howuku Web Optimization" version 1.0.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("howuku.php" instead of "howuku-analytics.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin87 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP214887

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
images/icon.png4.04KB0.39KB▼ 90.30%