74% speedmetriks

Code Review | SpeedMetriks

WordPress plugin SpeedMetriks scored74%from 54 tests.

About plugin

  • Plugin page: speedmetriks
  • Plugin version: 1.4.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2018
  • Latest release: Apr 26, 2019
  • Number of updates: 12
  • Update frequency: every 14.1 days
  • Top authors: bookwyrm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /792 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.55MB] [CPU: ▼19.72ms] Passed 4 tests

An overview of server-side resources used by SpeedMetriks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1246.07 ▲4.70
Dashboard /wp-admin3.53 ▲0.1449.71 ▼14.18
Posts /wp-admin/edit.php3.58 ▲0.1852.21 ▲2.32
Add New Post /wp-admin/post-new.php3.34 ▼2.5938.55 ▼71.71
Media Library /wp-admin/upload.php3.39 ▲0.1241.49 ▲10.19
SpeedMetriks Plots /wp-admin/tools.php?page=speed-metriks-plots-page3.3634.32

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 31 new files
Database: 6 new tables, 7 new options
New tables
wp_speed_metriks_timing_nonces
wp_speed_metriks_platforms
wp_speed_metriks_timing_urls
wp_speed_metriks_guids
wp_speed_metriks_timing_data
wp_speed_metriks_vendors
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
speed_metriks_db_version
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

SpeedMetriks: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,875 ▲1,11419.90 ▲5.5522.00 ▲20.3540.14 ▼4.22
Dashboard /wp-admin3,235 ▲1,0588.73 ▲3.07136.96 ▲43.8249.30 ▲7.42
Posts /wp-admin/edit.php3,160 ▲1,0606.33 ▲4.3764.15 ▲24.7645.58 ▲11.04
Add New Post /wp-admin/post-new.php7,272 ▲5,74629.45 ▲6.37984.38 ▲269.7050.84 ▼7.23
Media Library /wp-admin/upload.php2,448 ▲1,0458.32 ▲4.11122.91 ▲21.6257.68 ▲12.24
SpeedMetriks Plots /wp-admin/tools.php?page=speed-metriks-plots-page1,8595.8947.4944.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure failed, leaving 6 tables in the database
    • wp_speed_metriks_timing_urls
    • wp_speed_metriks_timing_nonces
    • wp_speed_metriks_platforms
    • wp_speed_metriks_vendors
    • wp_speed_metriks_timing_data
    • wp_speed_metriks_guids
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • speed_metriks_db_version

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
Everything seems fine, however this is by no means 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 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/tools.php?page=speed-metriks-plots-page
    • > Network (severe)
    wp-json/speedmetriks/v1/url-list - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/tools.php?page=speed-metriks-plots-page
    • > Network (severe)
    wp-json/speedmetriks/v1/graph-data?url=/&start_date=2023-10-10&end_date=2023-10-17 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: real user monitoring, visitor experience, anonymous data, performance

speedmetriks/speedmetriks.php Passed 13 tests

The principal PHP file in "SpeedMetriks" v. 1.4.4 is loaded by WordPress automatically on each request
34 characters long description:
Real User Monitoring for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin5,335 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81,8463,9924,523
PHP1916531801
HTML11011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.35
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods72
▷ Static methods2331.94%
▷ Public methods4968.06%
▷ Protected methods00.00%
▷ Private methods2331.94%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin