10% woopra

Code Review | Woopra Analytics Plugin

WordPress plugin Woopra Analytics Plugin scored10%from 54 tests.

About plugin

  • Plugin page: woopra
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2008
  • Latest release: Jan 6, 2022
  • Number of updates: 343
  • Update frequency: every 14.2 days
  • Top authors: ShaneF (71.43%)eliekhoury (23.91%)marioac (5.25%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /210,034 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > User notice in wp-content/plugins/woopra/woopra-php-sdk/woopra_tracker.php+340
    Unexpected parameter in configuration array: click_tracking.

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.80ms] Passed 4 tests

Analyzing server-side resources used by Woopra Analytics Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.56 ▼39.02
Dashboard /wp-admin2.05 ▼1.2514.32 ▼35.87
Posts /wp-admin/edit.php2.05 ▼1.309.75 ▼42.33
Add New Post /wp-admin/post-new.php2.05 ▼3.846.66 ▼89.99
Media Library /wp-admin/upload.php2.05 ▼1.187.05 ▼29.87
Woopra /wp-admin/options-general.php?page=woopra2.056.06

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Woopra Analytics Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.37 ▲0.0111.09 ▲9.2944.95 ▲2.18
Dashboard /wp-admin2,202 ▲255.62 ▼0.0486.41 ▼15.0738.70 ▼6.49
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0934.76 ▼4.5837.47 ▲1.78
Add New Post /wp-admin/post-new.php1,530 ▼523.03 ▲4.85664.00 ▲26.3051.67 ▼12.35
Media Library /wp-admin/upload.php1,407 ▲104.23 ▼0.00102.71 ▼3.8742.90 ▼4.52
Woopra /wp-admin/options-general.php?page=woopra1,1302.0224.9730.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-content/plugins/woopra/woopra-php-sdk/woopra_tracker.php+340
    Unexpected parameter in configuration array: click_tracking.
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% 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
    • > GET request to /wp-admin/options-general.php?page=woopra
    • > User notice in wp-content/plugins/woopra/woopra-php-sdk/woopra_tracker.php+340
    Unexpected parameter in configuration array: click_tracking.
    • > GET request to /wp-admin/options-general.php?page=woopra
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=woopra
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woopra/woopra.php:177
    • > PHP Fatal error
      Uncaught Error: Class 'Woopra' not found in wp-content/plugins/woopra/inc/admin.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Woopra' not found in wp-content/plugins/woopra/inc/frontend.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WoopraFrontend' not found in wp-content/plugins/woopra/inc/events.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: funnels, analytics, stats, track visitors, real-time...

woopra/woopra.php Passed 13 tests

The primary PHP file in "Woopra Analytics Plugin" version 3.0 is used by WordPress to initiate all plugin functionality
117 characters long description:
Track who is on your website, what pages they're browsing, actions they're taking, articles they're reading and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,175 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP62125251,106
Markdown14069

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity34.20
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods57
▷ Static methods11.75%
▷ Public methods5087.72%
▷ Protected methods00.00%
▷ Private methods712.28%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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