10% windows-azure-end-user-analytics-unofficial

Code Review | Windows Azure End User Analytics for WordPress (Unofficial)

WordPress plugin Windows Azure End User Analytics for WordPress (Unofficial) scored10%from 54 tests.

About plugin

  • Plugin page: windows-azure-end...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 23, 2014
  • Latest release: Jul 23, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: timward60 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /751 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'WindowsAzureEndUserAnalytics' does not have a method 'activate'

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.68ms] Passed 4 tests

A check of server-side resources used by Windows Azure End User Analytics for WordPress (Unofficial)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.61 ▲4.13
Dashboard /wp-admin3.33 ▼0.0246.97 ▼15.90
Posts /wp-admin/edit.php3.38 ▲0.0250.97 ▲3.90
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.35 ▼9.63
Media Library /wp-admin/upload.php3.25 ▲0.0234.92 ▼1.09
Windows Azure End User Analytics (Unofficial) for WordPress Settings /wp-admin/options-general.php?page=windows-azure-end-user-analytics-unofficial_settings3.2128.90

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Windows Azure End User Analytics for WordPress (Unofficial)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲3814.48 ▲0.151.86 ▼0.0243.77 ▼0.91
Dashboard /wp-admin2,210 ▲255.85 ▲0.00100.08 ▼3.9639.76 ▼0.14
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0036.63 ▼2.2434.99 ▲2.30
Add New Post /wp-admin/post-new.php1,517 ▼217.63 ▼5.45589.95 ▼88.4646.61 ▼20.78
Media Library /wp-admin/upload.php1,392 ▲14.18 ▼0.0692.29 ▼11.8842.10 ▼4.70
Windows Azure End User Analytics (Unofficial) for WordPress Settings /wp-admin/options-general.php?page=windows-azure-end-user-analytics-unofficial_settings6901.356.7617.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'WindowsAzureEndUserAnalytics' does not have a method 'deactivate'
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=windows-azure-end-user-analytics-unofficial_settings
    • > Error in wp-admin/includes/template.php+1801
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/windows-azure-end-user-analytics-unofficial/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
    Stack trace:
    #0 wp-content/plugins/windows-azure-end-user-analytics-unofficial/templates/settings.php(5): do_settings_fields()
    #1 wp-content/plugins/windows-azure-end-user-analytics-unofficial/windows-azure-end-user-analytics-unofficial.php(82): include('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): WindowsAzureEndUserAnalytics->plugin_settings_page()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #7 {m

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/windows-azure-end-user-analytics-unofficial/windows-azure-end-user-analytics-unofficial.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/windows-azure-end-user-analytics-unofficial/templates/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === windows-azure-end-user-analytics-unofficial === )
You can look at the official readme.txt

windows-azure-end-user-analytics-unofficial/windows-azure-end-user-analytics-unofficial.php Passed 13 tests

The main PHP script in "Windows Azure End User Analytics for WordPress (Unofficial)" version 1.0 is automatically included on every request by WordPress
57 characters long description:
Adds Windows Azure End User Analytics to WordPress pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin135 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2272488
JavaScript15047

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods337.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin