84% technoscore-hotjar-tracking

Code Review | Technoscore Hotjar Tracking

WordPress plugin Technoscore Hotjar Tracking scored84%from 54 tests.

About plugin

  • Plugin page: technoscore-hotja...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.6-4.7
  • WordPress version: 6.3.1
  • First release: May 24, 2017
  • Latest release: May 24, 2017
  • Number of updates: 11
  • Update frequency: every 1.3 days
  • Top authors: saravan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,422 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Technoscore Hotjar Tracking
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0141.85 ▲3.93
Dashboard /wp-admin3.31 ▲0.0144.50 ▼1.80
Posts /wp-admin/edit.php3.36 ▲0.0145.33 ▼3.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.31 ▼13.45
Media Library /wp-admin/upload.php3.23 ▲0.0135.54 ▲2.56

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Technoscore Hotjar Tracking
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8413.34 ▼1.251.98 ▲0.1341.28 ▲0.34
Dashboard /wp-admin2,222 ▲305.84 ▲0.91101.52 ▼14.6640.49 ▼6.16
Posts /wp-admin/edit.php2,108 ▲192.00 ▼0.0235.67 ▼4.5832.24 ▼3.04
Add New Post /wp-admin/post-new.php1,547 ▲1623.10 ▲0.14688.91 ▲78.2149.52 ▼9.10
Media Library /wp-admin/upload.php1,398 ▲104.22 ▲0.0294.71 ▼1.0339.84 ▼2.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× 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/technoscore-hotjar-tracking/technoscore-hotjar-tracking.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
5 plugin tags: headers, header, script, analytics, hotjar

technoscore-hotjar-tracking/technoscore-hotjar-tracking.php 92% from 13 tests

The entry point to "Technoscore Hotjar Tracking" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2181854

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin