10% vcx3-heatmap

Code Review | vcx3-Heatmap

WordPress plugin vcx3-Heatmap scored 10% from 54 tests.

About plugin

  • Plugin page: vcx3-heatmap
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Feb 13, 2022
  • Latest release: Feb 13, 2022
  • Number of updates: 12
  • Update frequency: every 6.9 days
  • Top authors: vcx3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 572 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/vcx3-heatmap/Vcx3_Plugin.php+29
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▲0.10MB] [CPU: ▼10.81ms] Passed 4 tests

Analyzing server-side resources used by vcx3-Heatmap
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.13 ▼8.21
Dashboard /wp-admin3.41 ▲0.1046.67 ▼5.79
Posts /wp-admin/edit.php3.52 ▲0.1646.92 ▼3.51
Add New Post /wp-admin/post-new.php5.99 ▲0.1083.55 ▼25.71
Media Library /wp-admin/upload.php3.33 ▲0.1036.89 ▲2.71
vcx3-heatmap /wp-admin/plugins.php?page=Vcx3_PluginSettings3.2931.18

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options
Vcx3_Plugin__version
Vcx3_Plugin_my_js_snippet_email
Vcx3_Plugin__installed
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for vcx3-Heatmap
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.31 ▼1.031.71 ▼0.6041.59 ▼9.20
Dashboard /wp-admin2,210 ▲225.79 ▲0.8997.75 ▼16.3535.68 ▼9.69
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0334.31 ▼3.5730.28 ▼0.74
Add New Post /wp-admin/post-new.php1,545 ▲1718.26 ▲0.08610.69 ▼0.0051.36 ▲4.27
Media Library /wp-admin/upload.php1,386 ▼54.23 ▼0.0197.00 ▼5.5142.71 ▲1.81
vcx3-heatmap /wp-admin/plugins.php?page=Vcx3_PluginSettings8312.0524.5829.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • Vcx3_Plugin__version
    • can_compress_scripts
    • Vcx3_Plugin_my_js_snippet_email
    • theysaidso_admin_options
    • widget_recent-comments
    • Vcx3_Plugin__installed

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vcx3-heatmap/vcx3.php:77

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

vcx3-heatmap/vcx3.php 85% from 13 tests

"vcx3-Heatmap" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: The principal plugin file should be the same as the plugin slug ("vcx3-heatmap.php" instead of "vcx3.php")

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
No dangerous file extensions were detected722 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8166514522
XML400200

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.83
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes233.33%
▷ Concrete classes466.67%
▷ Final classes00.00%
Methods71
▷ Static methods00.00%
▷ Public methods4360.56%
▷ Protected methods2839.44%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin