84% analytics-control-plus

Code Review | Analytics Control Plus

WordPress plugin Analytics Control Plus scored84%from 54 tests.

About plugin

  • Plugin page: analytics-control...
  • Plugin version: 1.15
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 29, 2014
  • Latest release: Oct 25, 2023
  • Number of updates: 26
  • Update frequency: every 134.5 days
  • Top authors: aykira (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /3,599 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.91ms] Passed 4 tests

This is a short check of server-side resources used by Analytics Control Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.97 ▼0.06
Dashboard /wp-admin3.41 ▲0.1043.26 ▼5.78
Posts /wp-admin/edit.php3.52 ▲0.1642.61 ▲2.40
Add New Post /wp-admin/post-new.php5.99 ▲0.1079.31 ▼19.00
Media Library /wp-admin/upload.php3.33 ▲0.1032.52 ▲1.21
Analytics Control+ /wp-admin/options-general.php?page=acp3.2928.58

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Analytics Control Plus: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.101.81 ▲0.0743.98 ▼0.18
Dashboard /wp-admin2,199 ▲195.55 ▼0.1185.30 ▼12.3637.29 ▼5.90
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0533.05 ▼8.6832.89 ▼1.05
Add New Post /wp-admin/post-new.php1,528 ▼823.62 ▲5.56644.84 ▲26.9955.76 ▼7.69
Media Library /wp-admin/upload.php1,401 ▲44.19 ▲0.00102.19 ▼2.9146.03 ▲3.94
Analytics Control+ /wp-admin/options-general.php?page=acp1,0181.9922.6136.88

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • analytics_control_plus
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/analytics-control-plus/analytics-control-plus.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt is a good inspiration

analytics-control-plus/analytics-control-plus.php 92% from 13 tests

Analyzing the main PHP file in "Analytics Control Plus" version 1.15
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 169 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
Good job! No executable or dangerous file extensions detected445 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
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity87.00
▷ Minimum class complexity87.00
▷ Maximum class complexity87.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods13.45%
▷ Public methods2379.31%
▷ Protected methods13.45%
▷ Private methods517.24%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There are no PNG files in this plugin