100% us-heat-map

Code Review | US Heat Map

WordPress plugin US Heat Map scored 100% from 54 tests.

About plugin

  • Plugin page: us-heat-map
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-1.0
  • WordPress version: 5.8.1
  • First release: Apr 29, 2016
  • Latest release: Apr 29, 2016
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: athangirala (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 542 total downloads

Benchmarks

Plugin footprint Passed 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.03MB] [CPU: ▼142.77ms] Passed 4 tests

Analyzing server-side resources used by US Heat Map
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1529.14 ▲8.27
Dashboard /wp-admin3.09 ▲0.0342.39 ▲0.94
Posts /wp-admin/edit.php3.14 ▲0.0339.71 ▼5.80
Add New Post /wp-admin/post-new.php5.45 ▲0.0191.04 ▼558.12
Media Library /wp-admin/upload.php3.03 ▲0.0326.02 ▼8.09

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for US Heat Map
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.95 ▲0.3812.33 ▲1.7345.23 ▼0.89
Dashboard /wp-admin2,973 ▲395.88 ▼0.08132.29 ▼13.13109.81 ▼4.31
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0061.73 ▼2.3597.80 ▲4.70
Add New Post /wp-admin/post-new.php1,872 ▲18919.16 ▲0.44371.81 ▼1.39111.90 ▼2.00
Media Library /wp-admin/upload.php1,810 ▼05.02 ▼0.02142.39 ▼11.14120.96 ▼1.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: us, distribution, map

us-heat-map/us-heat-map.php 92% from 13 tests

This is the main PHP file of "US Heat Map" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 282 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,359 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34241895,675
SVG281459
PHP13519194
CSS16028
Markdown1403

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.02
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin