67% full-picture-analytics-cookie-notice

Code Review | WP Full Picture - Analytics & Privacy Toolkit

WordPress plugin WP Full Picture - Analytics & Privacy Toolkit scored67%from 54 tests.

About plugin

  • Plugin page: full-picture-anal...
  • Plugin version: 6.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 18, 2020
  • Latest release: Nov 15, 2023
  • Number of updates: 128
  • Update frequency: every 8.3 days
  • Top authors: chrisplaneta (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /8,497 total downloads

Benchmarks

Plugin footprint 65% 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.64MB] [CPU: ▲0.30ms] Passed 4 tests

A check of server-side resources used by WP Full Picture - Analytics & Privacy Toolkit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6236.33 ▼3.35
Dashboard /wp-admin4.03 ▲0.7248.51 ▼0.87
Posts /wp-admin/edit.php4.08 ▲0.7252.07 ▲2.40
Add New Post /wp-admin/post-new.php6.55 ▲0.66100.06 ▲13.10
Media Library /wp-admin/upload.php3.79 ▲0.5643.43 ▲3.00
General Settings /wp-admin/admin.php?page=full_picture_main4.1143.40
Upgrade  ➤ /wp-admin/admin.php?page=full_picture_tools-pricing3.8337.55
Support Forum /wp-admin/admin.php?page=full_picture_tools-wp-support-forum3.6631.77
Modules /wp-admin/admin.php?page=full_picture_tools4.0545.05
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius4.1437.09
Contact Us /wp-admin/admin.php?page=full_picture_tools-contact3.8236.29

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 514 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
fupi_versions
db_upgraded
fs_debug_mode
widget_theysaidso_widget
theysaidso_admin_options
fs_accounts
can_compress_scripts
fs_active_plugins
widget_recent-posts

Browser metrics Passed 4 tests

WP Full Picture - Analytics & Privacy Toolkit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲13114.33 ▼0.011.63 ▼0.1743.65 ▼0.40
Dashboard /wp-admin2,301 ▲1245.61 ▲0.0893.07 ▲3.2343.88 ▲3.04
Posts /wp-admin/edit.php2,203 ▲1002.01 ▲0.0740.94 ▲0.7237.67 ▼0.86
Add New Post /wp-admin/post-new.php1,403 ▼12416.95 ▼6.37518.21 ▼170.6049.46 ▼2.49
Media Library /wp-admin/upload.php1,506 ▲1034.21 ▲0.0497.31 ▼3.1842.66 ▼0.25
General Settings /wp-admin/admin.php?page=full_picture_main1,8302.4249.0977.09
Upgrade  ➤ /wp-admin/admin.php?page=full_picture_tools-pricing1,9323.3565.09114.66
Support Forum /wp-admin/admin.php?page=full_picture_tools-wp-support-forum1,8093.7390.3993.24
Modules /wp-admin/admin.php?page=full_picture_tools2,9492.0356.3362.20
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1651.6825.6827.62
Contact Us /wp-admin/admin.php?page=full_picture_tools-contact1,6333.2156.7663.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/full-picture-analytics-cookie-notice/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_theysaidso_widget
    • fs_debug_mode
    • db_upgraded
    • fupi_versions
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • fs_accounts
    • can_compress_scripts
    • fs_active_plugins

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 162× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: a in wp-content/plugins/full-picture-analytics-cookie-notice/admin/settings/modules/blockscr/fupi-admin-descr_blockscr.php on line 3
    • > PHP Notice
      Undefined variable: input in wp-content/plugins/full-picture-analytics-cookie-notice/admin/settings/modules/iframeblock/fupi-admin-sanitize-iframeblock.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/full-picture-analytics-cookie-notice/admin/settings/modules/gtm/fupi-admin-tab-gtm.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/full-picture-analytics-cookie-notice/public/functions/iframeblock_parser.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/full-picture-analytics-cookie-notice/admin/settings/modules/cook/fupi-admin-tab-cook.php:66
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/full-picture-analytics-cookie-notice/admin/settings/modules/fbp1/fupi-admin-descr_fbp1.php on line 3
    • > PHP Notice
      Undefined variable: input in wp-content/plugins/full-picture-analytics-cookie-notice/admin/settings/modules/cook/fupi-admin-sanitize-cook.php on line 4
    • > PHP Notice
      Undefined variable: input in wp-content/plugins/full-picture-analytics-cookie-notice/admin/settings/modules/gads/fupi-admin-sanitize-gads.php on line 4
    • > PHP Notice
      Undefined variable: input in wp-content/plugins/full-picture-analytics-cookie-notice/admin/settings/modules/main/fupi-admin-sanitize-main.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/full-picture-analytics-cookie-notice/admin/settings/modules/ga41/checklist_ga41.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=full_picture_main
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=full_picture_main 321:14 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=full_picture_tools-contact
    • > Javascript (severe) in unknown
    /wp-content/plugins/full-picture-analytics-cookie-notice/admin/settings/js/fupi-admin.js?ver=6.2.0 1071:15 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
    • > GET request to /wp-admin/admin.php?page=full_picture_tools-pricing
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=full_picture_tools-pricing 383:14 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
    • > GET request to /wp-admin/admin.php?page=full_picture_tools-pricing
    • > Network (severe)
    https://fullpictureplugin.com/wp-content/freemius-dashboard-styles/fp_fs_pricing.css - Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
    • > GET request to /wp-admin/admin.php?page=full_picture_tools
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=full_picture_tools 599:14 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=freemius 381:14 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
    • > GET request to /wp-admin/admin.php?page=full_picture_tools-contact
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=full_picture_tools-contact 222:14 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 28 tag instead of maximum 10
The official readme.txt is a good inspiration

full-picture-analytics-cookie-notice/full-picture.php 69% from 13 tests

The main file in "WP Full Picture - Analytics & Privacy Toolkit" v. 6.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("full-picture-analytics-cookie-notice.php" instead of "full-picture.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version must match the one declared in readme.txt ("5.0.0" instead of "5.0")
  • Description: Please don't use more than 140 characters for the plugin description (currently 271 characters long)

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin68,717 lines of code in 363 files:
LanguageFilesBlank linesComment linesLines of code
PHP25610,36118,91949,073
JavaScript672,8991,2089,196
PO File12,0033,1185,976
Sass192751043,294
CSS186201,135
XML10027
SVG10016

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity74.44
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes65
▷ Abstract classes23.08%
▷ Concrete classes6396.92%
▷ Final classes00.00%
Methods1,396
▷ Static methods20114.40%
▷ Public methods98570.56%
▷ Protected methods171.22%
▷ Private methods39428.22%
Functions143
▷ Named functions10674.13%
▷ Anonymous functions3725.87%
Constants148
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.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
54 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/settings/img/feedback-2.png1.02KB0.63KB▼ 37.81%
admin/customizer/imgs/notice-inform.png1.88KB0.18KB▼ 90.46%
admin/settings/img/replace_ico.png0.59KB0.35KB▼ 40.93%
admin/settings/img/cookie_icon.png1.46KB0.98KB▼ 33.13%
admin/settings/img/fp_logo_2_160.png4.95KB2.61KB▼ 47.26%