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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.12 | 46.07 ▲4.70 |
Dashboard /wp-admin | 3.53 ▲0.14 | 49.71 ▼14.18 |
Posts /wp-admin/edit.php | 3.58 ▲0.18 | 52.21 ▲2.32 |
Add New Post /wp-admin/post-new.php | 3.34 ▼2.59 | 38.55 ▼71.71 |
Media Library /wp-admin/upload.php | 3.39 ▲0.12 | 41.49 ▲10.19 |
SpeedMetriks Plots /wp-admin/tools.php?page=speed-metriks-plots-page | 3.36 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,875 ▲1,114 | 19.90 ▲5.55 | 22.00 ▲20.35 | 40.14 ▼4.22 |
Dashboard /wp-admin | 3,235 ▲1,058 | 8.73 ▲3.07 | 136.96 ▲43.82 | 49.30 ▲7.42 |
Posts /wp-admin/edit.php | 3,160 ▲1,060 | 6.33 ▲4.37 | 64.15 ▲24.76 | 45.58 ▲11.04 |
Add New Post /wp-admin/post-new.php | 7,272 ▲5,746 | 29.45 ▲6.37 | 984.38 ▲269.70 | 50.84 ▼7.23 |
Media Library /wp-admin/upload.php | 2,448 ▲1,045 | 8.32 ▲4.11 | 122.91 ▲21.62 | 57.68 ▲12.24 |
SpeedMetriks Plots /wp-admin/tools.php?page=speed-metriks-plots-page | 1,859 | 5.89 | 47.49 | 44.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 1,846 | 3,992 | 4,523 |
PHP | 19 | 165 | 31 | 801 |
HTML | 1 | 1 | 0 | 11 |
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 code | 0.20 |
Average class complexity | 3.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 23 | 31.94% |
▷ Public methods | 49 | 68.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 31.94% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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