67% wassup

Code Review | WassUp Real Time Analytics

WordPress plugin WassUp Real Time Analytics scored67%from 54 tests.

About plugin

  • Plugin page: wassup
  • Plugin version: 1.9.4.5
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Oct 10, 2007
  • Latest release: Feb 18, 2020
  • Number of updates: 155
  • Update frequency: every 29.1 days
  • Top authors: michelem (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

10,000+ active /937,532 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲2.12MB] [CPU: ▲4.75ms] 75% from 4 tests

A check of server-side resources used by WassUp Real Time Analytics
Please fix the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,592.13ms on /wp-admin/admin.php?page=wassup-spia)
PageMemory (MB)CPU Time (ms)
Home /4.85 ▲1.3950.43 ▲9.16
Dashboard /wp-admin5.96 ▲2.6263.54 ▲0.56
Posts /wp-admin/edit.php5.75 ▲2.3966.80 ▲13.45
Add New Post /wp-admin/post-new.php8.22 ▲2.3494.28 ▼4.17
Media Library /wp-admin/upload.php5.57 ▲2.3454.26 ▲15.19
Options /wp-admin/admin.php?page=wassup-options6.1468.09
SPY Visitors /wp-admin/admin.php?page=wassup-spia5.551,592.13
Visitor Details /wp-admin/admin.php?page=wassup5.5553.99
Current Visitors Online /wp-admin/admin.php?page=wassup-online5.5550.64
WassUp Stats /wp-admin/index.php?page=wassup-stats5.5652.72

Server storage [IO: ▲4.66MB] [DB: ▲0.02MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 439 new files
Database: 3 new tables, 9 new options
New tables
wp_wassup
wp_wassup_meta
wp_wassup_tmp
New WordPress options
db_upgraded
wassup_settings
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_wassup_online
can_compress_scripts
widget_recent-comments
widget_wassup_topstats

Browser metrics Passed 4 tests

Checking browser requirements for WassUp Real Time Analytics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14313.60 ▼0.774.95 ▲3.1940.13 ▲1.48
Dashboard /wp-admin2,250 ▲594.86 ▼0.0497.44 ▼7.9439.15 ▼7.89
Posts /wp-admin/edit.php2,130 ▲382.05 ▲0.0240.36 ▼0.1837.48 ▲0.72
Add New Post /wp-admin/post-new.php1,575 ▲6118.57 ▲0.92613.64 ▼74.2054.00 ▼5.41
Media Library /wp-admin/upload.php1,426 ▲354.21 ▲0.0296.80 ▼4.1642.62 ▼5.66
Options /wp-admin/admin.php?page=wassup-options2,3902.5660.48101.04
SPY Visitors /wp-admin/admin.php?page=wassup-spia1,9626.54136.55124.82
Visitor Details /wp-admin/admin.php?page=wassup1,7682.0751.7669.75
Current Visitors Online /wp-admin/admin.php?page=wassup-online1,3612.1841.8448.61
WassUp Stats /wp-admin/index.php?page=wassup-stats1,7712.0950.6960.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function like_escape is deprecated since version 4.0.0! Use wpdb::esc_like() instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wassup-options
    • > Notice in wp-content/plugins/wassup/lib/settings.php+823
    Undefined offset: 0
    • > GET request to /wp-admin/admin.php?page=wassup-options
    • > Notice in wp-content/plugins/wassup/lib/settings.php+823
    Trying to get property 'max_connections' of non-object
    • > GET request to /wp-admin/admin.php?page=wassup-options
    • > Warning in wp-content/plugins/wassup/lib/wassup.class.php+1401
    mysqli_character_set_name() expects exactly 1 parameter, 0 given

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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=wassup-spia
    • > Console-api (warning) in unknown
    https://maps.googleapis.com/maps/api/js?key=AIzaSyBsrNZDit1Y8xKMv_8VUhFT-Hghaj4pEkA 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Wassup - Visitor Details view.), #2 (Wassup - SPY Visitors view.)
The official readme.txt might help

wassup/wassup.php 92% from 13 tests

This is the main PHP file of "WassUp Real Time Analytics" version 1.9.4.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin84,431 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
PO File4327,90731,08568,990
PHP142862,53613,661
CSS434981,517
JavaScript32033263

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity106.56
▷ Minimum class complexity4.00
▷ Maximum class complexity442.00
Average method complexity10.94
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods170
▷ Static methods5130.00%
▷ Public methods16597.06%
▷ Protected methods00.00%
▷ Private methods52.94%
Functions90
▷ Named functions90100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
310 compressed PNG files occupy 0.31MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/flags/il.png0.42KB0.50KB0.00%
img/list-bg3.png0.19KB0.23KB0.00%
img/shadow.png1.43KB1.63KB0.00%
img/flags/el.png0.48KB0.70KB0.00%
img/flags/sj.png0.50KB0.62KB0.00%