84% rapidspike-real-user-monitoring

Code Review | Real User Monitoring by RapidSpike

WordPress plugin Real User Monitoring by RapidSpike scored84%from 54 tests.

About plugin

  • Plugin page: rapidspike-real-u...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.5
  • WordPress version: 6.3.1
  • First release: May 27, 2017
  • Latest release: May 27, 2017
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: rapidspike (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.15ms] Passed 4 tests

An overview of server-side resources used by Real User Monitoring by RapidSpike
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.03 ▼0.49
Dashboard /wp-admin3.31 ▲0.0147.47 ▼7.84
Posts /wp-admin/edit.php3.36 ▲0.0148.83 ▲1.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.79 ▼5.69
Media Library /wp-admin/upload.php3.23 ▲0.0038.37 ▲3.56
RapidSpike Real User Monitoring /wp-admin/plugins.php?page=rapidspike-rum-config3.2032.02

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Real User Monitoring by RapidSpike
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.121.71 ▲0.0344.19 ▼0.79
Dashboard /wp-admin2,196 ▲195.56 ▼0.1185.00 ▼15.3040.73 ▼2.78
Posts /wp-admin/edit.php2,101 ▲12.00 ▼0.0235.16 ▼1.4436.61 ▲0.85
Add New Post /wp-admin/post-new.php1,529 ▲123.28 ▲0.35694.35 ▲32.3557.37 ▲4.44
Media Library /wp-admin/upload.php1,407 ▲74.27 ▲0.07104.49 ▲0.1445.88 ▼2.43
RapidSpike Real User Monitoring /wp-admin/plugins.php?page=rapidspike-rum-config8042.0024.3433.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/rapidspike-real-user-monitoring/rapidspike-rum.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: web performance, rum, real user monitoring, rapidspike

rapidspike-real-user-monitoring/rapidspike-rum.php 85% from 13 tests

The main PHP file in "Real User Monitoring by RapidSpike" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 342 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rapidspike-real-user-monitoring.php" instead of "rapidspike-rum.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141066

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions4
▷ Named functions4100.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
No PNG images were found in this plugin