78% statvoo

Code Review | Realtime analytics for the web

WordPress plugin Realtime analytics for the web scored78%from 54 tests.

About plugin

  • Plugin page: statvoo
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: May 13, 2013
  • Latest release: Jan 27, 2016
  • Number of updates: 32
  • Update frequency: every 30.9 days
  • Top authors: statvoo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Realtime analytics for the web
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.35 ▼5.43
Dashboard /wp-admin3.31 ▲0.0144.35 ▼5.09
Posts /wp-admin/edit.php3.37 ▲0.0146.25 ▼3.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.42 ▲4.05
Media Library /wp-admin/upload.php3.24 ▲0.0134.71 ▲0.32
Statvoo /wp-admin/index.php?page=statvoo3.2030.46

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Realtime analytics for the web
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9614.83 ▲0.582.37 ▲0.4344.08 ▼0.24
Dashboard /wp-admin2,222 ▲315.86 ▲0.96101.59 ▼2.6738.81 ▼3.83
Posts /wp-admin/edit.php2,102 ▲102.02 ▲0.0538.78 ▼4.0335.91 ▲2.82
Add New Post /wp-admin/post-new.php1,544 ▲2123.15 ▼0.06594.99 ▼7.7750.83 ▲2.44
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.0397.33 ▲0.1141.63 ▼1.53
Statvoo /wp-admin/index.php?page=statvoo8442.0228.5429.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% 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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/index.php?page=statvoo
    • > Notice in wp-content/plugins/statvoo/options.php+40
    Undefined variable: domain

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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/statvoo/statvoo.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/statvoo/options.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: statvoo, realtime, surf, javascript, chat...

statvoo/statvoo.php 92% from 13 tests

The main PHP file in "Realtime analytics for the web" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected85 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2241285

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin