90% aurora-heatmap

Code Review | Aurora Heatmap

WordPress plugin Aurora Heatmap scored90%from 54 tests.

About plugin

  • Plugin page: aurora-heatmap
  • Plugin version: 1.6.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2019
  • Latest release: Aug 14, 2023
  • Number of updates: 144
  • Update frequency: every 9.9 days
  • Top authors: r3098 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

20,000+ active /265,140 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
Install script ran successfully

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

This is a short check of server-side resources used by Aurora Heatmap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.92 ▲1.82
Dashboard /wp-admin3.34 ▲0.0348.06 ▼6.27
Posts /wp-admin/edit.php3.39 ▲0.0347.23 ▲0.09
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.75 ▼4.25
Media Library /wp-admin/upload.php3.26 ▲0.0342.76 ▲7.65
Aurora Heatmap /wp-admin/options-general.php?page=aurora-heatmap3.3832.19

Server storage [IO: ▲0.49MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 28 new files
Database: 2 new tables, 8 new options
New tables
wp_ahm_pages
wp_ahm_events
New WordPress options
db_upgraded
can_compress_scripts
Activated_Plugin
widget_recent-posts
aurora_heatmap_option
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Aurora Heatmap
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.48 ▲0.071.53 ▼0.1337.14 ▼4.06
Dashboard /wp-admin2,222 ▲154.87 ▼1.03111.86 ▲3.9042.05 ▼2.04
Posts /wp-admin/edit.php2,101 ▲11.97 ▼0.0439.92 ▲3.9033.41 ▼3.41
Add New Post /wp-admin/post-new.php1,548 ▲1922.91 ▲5.28594.71 ▼70.0348.68 ▼4.31
Media Library /wp-admin/upload.php1,407 ▲74.28 ▼0.1299.53 ▼2.3345.90 ▲2.63
Aurora Heatmap /wp-admin/options-general.php?page=aurora-heatmap1,1011.9028.6933.78

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • Activated_Plugin
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: heatmap, analytics, analyze, click, japanese...

aurora-heatmap/aurora-heatmap.php Passed 13 tests

"Aurora Heatmap" version 1.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
94 characters long description:
Beautiful like an aurora! A simple WordPress heatmap that can be completed with just a plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected7,202 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JSON2004,139
PHP63025452,051
JavaScript1090228580
CSS1921432

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity75.33
▷ Minimum class complexity9.00
▷ Maximum class complexity201.00
Average method complexity3.98
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods71
▷ Static methods45.63%
▷ Public methods3549.30%
▷ Protected methods3447.89%
▷ Private methods22.82%
Functions18
▷ Named functions211.11%
▷ Anonymous functions1688.89%
Constants12
▷ Global constants18.33%
▷ Class constants1191.67%
▷ Public constants11100.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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/legend_breakaway@2x.png1.75KB2.39KB0.00%
img/legend_attention@1x.png1.13KB1.81KB0.00%
img/legend_breakaway@1x.png1.10KB1.80KB0.00%
img/legend_attention@2x.png1.88KB2.45KB0.00%
img/legend_click@1x.png1.17KB1.71KB0.00%