Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.74MB] [CPU: ▲1.53ms] Passed 4 tests
A check of server-side resources used by Trackserver
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 40.97 ▲0.87 |
Dashboard /wp-admin | 4.14 ▲0.84 | 51.67 ▼0.36 |
Posts /wp-admin/edit.php | 4.19 ▲0.83 | 52.17 ▲5.46 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.84 | 91.42 ▲0.27 |
Media Library /wp-admin/upload.php | 4.06 ▲0.83 | 39.05 ▲5.34 |
Options /wp-admin/admin.php?page=trackserver-options | 3.96 | 35.84 |
Embedded maps /wp-admin/edit.php?post_type=tsmap | 4.10 | 38.92 |
Trackserver /wp-admin/options-general.php?page=trackserver-admin-menu | 3.96 | 35.63 |
Server storage [IO: ▲22.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 114 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_ts_tracks |
wp_ts_locations |
New WordPress options |
---|
trackserver_options |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Trackserver
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲90 | 14.48 ▲0.10 | 1.76 ▼0.29 | 38.89 ▼1.12 |
Dashboard /wp-admin | 2,250 ▲62 | 5.85 ▲0.96 | 101.94 ▼15.99 | 79.09 ▲32.51 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.00 ▲0.00 | 36.74 ▼0.96 | 32.61 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 17.74 ▲0.32 | 761.06 ▲154.43 | 51.47 ▲1.28 |
Media Library /wp-admin/upload.php | 1,423 ▲41 | 4.11 ▼0.15 | 106.70 ▲6.40 | 67.87 ▲26.16 |
Options /wp-admin/admin.php?page=trackserver-options | 1,213 | 2.13 | 28.58 | 33.43 |
Embedded maps /wp-admin/edit.php?post_type=tsmap | 1,105 | 1.92 | 35.01 | 29.66 |
Trackserver /wp-admin/options-general.php?page=trackserver-admin-menu | 1,212 | 2.07 | 26.55 | 32.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 14× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/trackserver/class-trackserver-location.php
- > /wp-content/plugins/trackserver/class-trackserver-shortcode.php
- > /wp-content/plugins/trackserver/class-trackserver-ulogger.php
- > /wp-content/plugins/trackserver/class-trackserver-db.php
- > /wp-content/plugins/trackserver/class-trackserver-owntracks.php
- > /wp-content/plugins/trackserver/embedded-404.php
- > /wp-content/plugins/trackserver/class-trackserver-trackme.php
- > /wp-content/plugins/trackserver/class-trackserver-settings.php
- > /wp-content/plugins/trackserver/class-trackserver-getrequest.php
- > /wp-content/plugins/trackserver/class-trackserver-profile.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/trackserver/tests/bootstrap.php on line 14
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/trackserver/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/trackserver/tracks-list-table.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function the_title() in wp-content/plugins/trackserver/embedded-template.php:5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The track management page in the WordPress admin), #2 (Configuration of OruxMaps for use with Trackserver / WordPress)
trackserver/trackserver.php Passed 13 tests
The principal PHP file in "Trackserver" v. 5.0.2 is loaded by WordPress automatically on each request
49 characters long description:
GPS Track Server for TrackMe, OruxMaps and others
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected29,873 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 5,982 | 7,565 | 21,410 |
PHP | 19 | 899 | 1,440 | 4,990 |
PO File | 2 | 417 | 568 | 1,274 |
XSD | 2 | 57 | 23 | 939 |
CSS | 6 | 65 | 28 | 679 |
Markdown | 4 | 139 | 0 | 412 |
Bourne Shell | 1 | 21 | 7 | 99 |
YAML | 1 | 8 | 0 | 38 |
XML | 2 | 3 | 1 | 27 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 42.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 244 | |
▷ Static methods | 7 | 2.87% |
▷ Public methods | 154 | 63.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 90 | 36.89% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
33 PNG files occupy 2.22MB with 1.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/gpslogger-howto.png | 137.93KB | 49.27KB | ▼ 64.28% |
img/traccar-logo.png | 6.23KB | 3.07KB | ▼ 50.71% |
img/ulogger-logo.png | 4.03KB | 2.51KB | ▼ 37.82% |
img/osmand-settings.png | 151.68KB | 59.42KB | ▼ 60.82% |
img/phonetrack-logo.png | 11.63KB | 5.38KB | ▼ 53.72% |