84% audience-analytics-by-quantcast

Code Review | Audience Analytics - by Quantcast

WordPress plugin Audience Analytics - by Quantcast scored84%from 54 tests.

About plugin

  • Plugin page: audience-analytic...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Dec 6, 2016
  • Latest release: Nov 27, 2018
  • Number of updates: 15
  • Update frequency: every 47.7 days
  • Top authors: quantcast (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active /23,660 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.16MB] [CPU: ▼12.60ms] Passed 4 tests

An overview of server-side resources used by Audience Analytics - by Quantcast
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.58 ▼0.11
Dashboard /wp-admin3.21 ▼0.0933.11 ▼16.14
Posts /wp-admin/edit.php3.28 ▼0.0834.29 ▼12.70
Add New Post /wp-admin/post-new.php5.45 ▼0.4468.33 ▼21.43
Media Library /wp-admin/upload.php3.21 ▼0.0133.55 ▲0.47
Quantcast /wp-admin/options-general.php?page=wp-quantcast3.1827.34

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Audience Analytics - by Quantcast
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7714.79 ▲0.401.66 ▼0.1344.51 ▼2.28
Dashboard /wp-admin2,218 ▲304.84 ▼0.19113.46 ▼4.6445.16 ▼1.22
Posts /wp-admin/edit.php2,098 ▲92.01 ▲0.0235.94 ▼1.6735.29 ▲1.78
Add New Post /wp-admin/post-new.php1,525 ▼817.44 ▼5.63676.39 ▼8.2554.10 ▼12.05
Media Library /wp-admin/upload.php1,403 ▲154.23 ▼0.0193.57 ▼13.2443.25 ▼4.57
Quantcast /wp-admin/options-general.php?page=wp-quantcast8082.0224.7424.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-quantcast
    • > Notice in wp-content/plugins/audience-analytics-by-quantcast/audience-analytics.php+128
    Trying to access array offset on value of type bool

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
Everything seems fine, however this is by no means an exhaustive test

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: stats, advertising, analytics, statistics, audiences...

audience-analytics-by-quantcast/audience-analytics.php 92% from 13 tests

The main file in "Audience Analytics - by Quantcast" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("audience-analytics-by-quantcast.php" instead of "audience-analytics.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 plugin131 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.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
3 PNG files occupy 0.20MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo-black.png20.15KB4.52KB▼ 77.58%
assets/screenshot-1.png58.72KB13.78KB▼ 76.53%
assets/screenshot-2.png129.11KB35.99KB▼ 72.12%