Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/track-page-scroll/trackpage.php+60
include(inc/install.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.89ms] Passed 4 tests
This is a short check of server-side resources used by Track Page Scroll
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.33 ▼4.40 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.52 ▼4.04 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.27 ▼6.60 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.24 ▼16.12 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.97 ▼4.42 |
Add New /wp-admin/admin.php?page=addnewtrackpage | 3.28 | 31.72 |
Settings /wp-admin/admin.php?page=trackpage_settings | 3.24 | 28.60 |
Track Page Scroll /wp-admin/admin.php?page=trackpage | 3.31 | 28.64 |
Upgrade To Pro /wp-admin/admin.php?page=trackpage_upgrade_pro | 3.26 | 30.05 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
track_page_scroll_options2 |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Track Page Scroll
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲125 | 13.30 ▼0.65 | 2.56 ▲0.64 | 39.59 ▼14.80 |
Dashboard /wp-admin | 2,239 ▲51 | 4.87 ▼0.03 | 107.36 ▼6.16 | 35.49 ▼6.72 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.05 ▲0.08 | 39.00 ▼2.75 | 32.19 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,704 ▲176 | 24.81 ▲6.65 | 638.35 ▼46.54 | 63.50 ▲9.48 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.27 ▼0.03 | 105.60 ▼13.78 | 46.23 ▼5.86 |
Add New /wp-admin/admin.php?page=addnewtrackpage | 869 | 2.19 | 24.72 | 23.44 |
Settings /wp-admin/admin.php?page=trackpage_settings | 822 | 2.13 | 24.45 | 25.65 |
Track Page Scroll /wp-admin/admin.php?page=trackpage | 1,058 | 2.25 | 48.35 | 47.30 |
Upgrade To Pro /wp-admin/admin.php?page=trackpage_upgrade_pro | 813 | 2.06 | 23.14 | 27.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- track_page_scroll_options2
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=trackpage_upgrade_pro
- > Notice in wp-content/plugins/track-page-scroll/inc/upgrade_pro.php+8
Undefined index: _wpnonce
- > GET request to /wp-admin/admin.php?page=trackpage_upgrade_pro
- > Notice in wp-content/plugins/track-page-scroll/inc/upgrade_pro.php+59
Undefined index: licence_key_track_page_scroll
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/track-page-scroll/inc/shortcode.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/track-page-scroll/trackpage.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/track-page-scroll/inc/shortcode.php:3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/track-page-scroll/trackpage.php on line 31
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: scrolling time, click events, measure reading time, page tracking
track-page-scroll/trackpage.php 85% from 13 tests
"Track Page Scroll" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("track-page-scroll.php" instead of "trackpage.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,103 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 276 | 332 | 1,268 |
PHP | 7 | 18 | 70 | 567 |
SVG | 1 | 0 | 0 | 229 |
CSS | 4 | 0 | 5 | 39 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/edit.png | 0.36KB | 0.27KB | ▼ 25.75% |
inc/img/del.png | 1.17KB | 1.18KB | 0.00% |