94% mousestats-tracking-script

Code Review | MouseStats Tracking Script

WordPress plugin MouseStats Tracking Script scored 94% from 54 tests.

About plugin

  • Plugin page: mousestats-tracki...
  • Plugin version: 0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.1
  • WordPress version: 5.8.1
  • First release: Feb 24, 2015
  • Latest release: Jan 29, 2018
  • Number of updates: 4
  • Update frequency: every 267.5 days
  • Top authors: MouseStatsDev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 867 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by MouseStats Tracking Script
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1338.85 ▲16.97
Dashboard /wp-admin3.07 ▲0.0250.39 ▼6.19
Posts /wp-admin/edit.php3.12 ▲0.0247.61 ▼3.60
Add New Post /wp-admin/post-new.php5.43 ▼0.0094.56 ▼580.45
Media Library /wp-admin/upload.php3.01 ▲0.0130.45 ▼3.87
MouseStats Tracking Script /wp-admin/options-general.php?page=mousestats-tracking-script2.9832.97

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
ms_account_id

Browser metrics Passed 4 tests

An overview of browser requirements for MouseStats Tracking Script
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.80 ▲0.249.78 ▲0.8450.69 ▲4.04
Dashboard /wp-admin2,972 ▲415.87 ▼0.12146.56 ▼9.48114.55 ▼0.72
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0171.84 ▲5.4495.57 ▼6.73
Add New Post /wp-admin/post-new.php1,501 ▼18219.03 ▲0.27388.77 ▼19.37115.44 ▲4.37
Media Library /wp-admin/upload.php1,812 ▲55.06 ▲0.06153.95 ▼1.73131.39 ▼3.84
MouseStats Tracking Script /wp-admin/options-general.php?page=mousestats-tracking-script1,0732.2157.7366.05

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 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 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/mousestats-tracking-script/mousestats-tracking-script.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: analytics, formanalytics, tracking, recording, mousestats...

mousestats-tracking-script/mousestats-tracking-script.php 92% from 13 tests

This is the main PHP file of "MouseStats Tracking Script" version 0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16966

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
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 are no PNG files in this plugin