84% analytics-integrator

Code Review | Analytics Integrator

WordPress plugin Analytics Integrator scored84%from 54 tests.

About plugin

  • Plugin page: analytics-integrator
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2023
  • Latest release: Jun 4, 2023
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: wpreplay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /101 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Analytics Integrator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.88 ▼6.57
Dashboard /wp-admin3.33 ▲0.0246.25 ▼4.30
Posts /wp-admin/edit.php3.38 ▲0.0248.10 ▼0.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.56 ▼15.67
Media Library /wp-admin/upload.php3.25 ▲0.0237.41 ▲4.03
Analytics integrator /wp-admin/options-general.php?page=analytics_integrator_settings3.2438.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Analytics Integrator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.18 ▼1.001.59 ▼0.4239.99 ▼8.35
Dashboard /wp-admin2,210 ▲194.86 ▼1.05102.34 ▲3.5937.08 ▼9.20
Posts /wp-admin/edit.php2,093 ▲12.02 ▲0.0039.03 ▼1.2434.73 ▼4.07
Add New Post /wp-admin/post-new.php1,517 ▼2517.53 ▼0.90665.68 ▲65.0567.34 ▲19.12
Media Library /wp-admin/upload.php1,392 ▲74.20 ▼0.07103.41 ▲3.5244.91 ▲0.56
Analytics integrator /wp-admin/options-general.php?page=analytics_integrator_settings9722.0326.9434.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/analytics-integrator/settings.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/analytics-integrator/analytics-integrator.php:149

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: mouseflow, funnels, feedback, fullstory, heatmaps...

analytics-integrator/analytics-integrator.php 92% from 13 tests

The main PHP script in "Analytics Integrator" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 303 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin201 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin