89% mpulse-real-user-measurement

Code Review | mPulse Real User Measurement

WordPress plugin mPulse Real User Measurement scored89%from 54 tests.

About plugin

  • Plugin page: mpulse-real-user-...
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-5.0.0
  • WordPress version: 6.3.1
  • First release: Jul 9, 2013
  • Latest release: Jun 3, 2020
  • Number of updates: 29
  • Update frequency: every 87.0 days
  • Top authors: cliffcrocker (72.41%)nicjansma (31.03%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.02ms] Passed 4 tests

This is a short check of server-side resources used by mPulse Real User Measurement
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.43 ▼3.93
Dashboard /wp-admin3.33 ▲0.0342.40 ▼4.02
Posts /wp-admin/edit.php3.38 ▲0.0242.05 ▼5.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.08 ▲2.20
Media Library /wp-admin/upload.php3.25 ▲0.0234.68 ▲1.05
Akamai mPulse /wp-admin/options-general.php?page=mpulse_plugin_page3.2231.89

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for mPulse Real User Measurement
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲2415.02 ▲0.648.78 ▲7.0043.25 ▼2.25
Dashboard /wp-admin2,199 ▲255.57 ▼0.1083.50 ▼5.5039.01 ▼3.40
Posts /wp-admin/edit.php2,101 ▲11.95 ▼0.0634.59 ▼3.2234.95 ▲1.59
Add New Post /wp-admin/post-new.php1,540 ▲1418.20 ▼4.87600.34 ▼93.7472.87 ▲11.69
Media Library /wp-admin/upload.php1,407 ▲104.21 ▲0.0596.62 ▼3.8444.71 ▼1.65
Akamai mPulse /wp-admin/options-general.php?page=mpulse_plugin_page8172.1426.7926.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

mpulse-real-user-measurement/mpulse-real-user-measurement.php 92% from 13 tests

"mPulse Real User Measurement" version 2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 280 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin201 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15953184
CSS12317

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
akamai_logo.png14.15KB7.25KB▼ 48.72%