78% heatclix-analytics

Code Review | Heatclix Analytics

WordPress plugin Heatclix Analytics scored78%from 54 tests.

About plugin

  • Plugin page: heatclix-analytics
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2018
  • Latest release: Dec 14, 2021
  • Number of updates: 30
  • Update frequency: every 38.8 days
  • Top authors: imcdheatclix (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

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

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

Analyzing server-side resources used by Heatclix Analytics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.95 ▼4.60
Dashboard /wp-admin3.32 ▲0.0154.89 ▼0.23
Posts /wp-admin/edit.php3.37 ▲0.0150.00 ▼1.79
Add New Post /wp-admin/post-new.php5.90 ▲0.01104.85 ▲11.15
Media Library /wp-admin/upload.php3.25 ▲0.0140.65 ▲6.64

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Heatclix Analytics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.24 ▼0.492.31 ▲0.6243.85 ▼4.06
Dashboard /wp-admin2,206 ▲295.58 ▼0.0787.53 ▼16.8293.37 ▲50.74
Posts /wp-admin/edit.php2,108 ▲51.98 ▼0.0135.06 ▼3.0834.78 ▲0.87
Add New Post /wp-admin/post-new.php1,552 ▲2322.98 ▼0.34775.85 ▲123.4158.81 ▲3.21
Media Library /wp-admin/upload.php1,405 ▲54.21 ▲0.1098.57 ▼2.6874.69 ▲31.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/heatclix-analytics/heatclix-analytics.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/heatclix-analytics/inc/heatclix_plugin_frontend.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/heatclix-analytics/inc/heatclix_plugin_option.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/heatclix-analytics/inc/heatclix_plugin_info.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/heatclix-analytics/inc/heatclix_plugin_menu.php:20

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
No tags were detected

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

The primary PHP file in "Heatclix Analytics" version 1.0.8 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 465 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected462 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS1570282
PHP62963130
PO File241649
JSON1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
8 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/instaicon-grau.png2.13KB0.95KB▼ 55.62%
assets/img/instaicon.png2.18KB0.95KB▼ 56.57%
assets/img/fbicon.png1.76KB0.83KB▼ 52.94%
assets/img/icon.png1.51KB0.53KB▼ 65.29%
assets/img/twittericon-grau.png2.28KB1.00KB▼ 56.00%