89% analytics-in-the-footer-titibate

Code Review | Analytics in the footer - Titibate

WordPress plugin Analytics in the footer - Titibate scored89%from 54 tests.

About plugin

  • Plugin page: analytics-in-the-...
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 13, 2019
  • Latest release: Feb 17, 2021
  • Number of updates: 10
  • Update frequency: every 70.9 days
  • Top authors: titibate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /628 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.88ms] Passed 4 tests

A check of server-side resources used by Analytics in the footer - Titibate
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.01 ▼8.31
Dashboard /wp-admin3.32 ▲0.0249.39 ▼5.03
Posts /wp-admin/edit.php3.37 ▲0.0252.86 ▲1.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.44 ▼23.51
Media Library /wp-admin/upload.php3.25 ▲0.0238.30 ▲5.30

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Analytics in the footer - Titibate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.161.71 ▼0.0239.00 ▼11.70
Dashboard /wp-admin2,206 ▲185.92 ▲0.07113.83 ▼1.4242.12 ▼1.54
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0439.67 ▲5.0336.10 ▲2.08
Add New Post /wp-admin/post-new.php1,528 ▼1423.43 ▲4.97668.20 ▲32.3554.65 ▼2.02
Media Library /wp-admin/upload.php1,388 ▲94.21 ▼0.0098.95 ▼5.6142.70 ▲0.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: analytics, footer

analytics-in-the-footer-titibate/titibate_analytics_footer.php 85% from 13 tests

The main PHP script in "Analytics in the footer - Titibate" version 0.3.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Name the main plugin file the same as the plugin slug ("analytics-in-the-footer-titibate.php" instead of "titibate_analytics_footer.php")

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 plugin65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin