Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/runtastic-widget/runtastic.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; Runtastic_Widget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼55.06ms] Passed 4 tests
Server-side resources used by Runtastic Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.56 ▼34.04 |
Dashboard /wp-admin | 2.10 ▼1.25 | 11.70 ▼44.45 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.65 ▼37.63 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.17 ▼104.11 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.70 ▼25.04 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_RuntasticWidgetCache |
New WordPress options |
---|
widget_recent-posts |
widget_runtastic_widget_id |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Runtastic Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.57 ▼1.11 | 4.48 ▲2.82 | 44.62 ▲6.94 |
Dashboard /wp-admin | 2,206 ▲17 | 4.86 ▼1.06 | 113.33 ▼9.13 | 43.20 ▼5.88 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.05 ▲0.05 | 36.10 ▲0.26 | 33.46 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,519 ▼17 | 23.20 ▼0.11 | 630.68 ▼9.81 | 54.29 ▲4.77 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.18 ▼0.05 | 92.34 ▼8.01 | 40.92 ▼0.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/runtastic-widget/runtastic.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; Runtastic_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_runtastic_widget_id
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/runtastic-widget/anzeige_Englisch.php
- > /wp-content/plugins/runtastic-widget/anzeige.php
- > /wp-content/plugins/runtastic-widget/credentials.php
- > /wp-content/plugins/runtastic-widget/anzeige_Deutsch.php
- 47× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/runtastic-widget/anzeige.php on line 23
- > PHP Notice
Undefined variable: LastActivity in wp-content/plugins/runtastic-widget/anzeige_Deutsch.php on line 22
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/runtastic-widget/anzeige.php on line 15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/runtastic-widget/anzeige_Deutsch.php on line 22
- > PHP Notice
Undefined variable: instance in wp-content/plugins/runtastic-widget/anzeige_Deutsch.php on line 3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/runtastic-widget/Update_Cache.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/runtastic-widget/anzeige.php on line 19
- > PHP Notice
Undefined variable: LastActivity in wp-content/plugins/runtastic-widget/anzeige_Englisch.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/runtastic-widget/anzeige_Deutsch.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/runtastic-widget/runtastic.php:12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
3 plugin tags: fitness widget, runtastic widget, runtastic
runtastic-widget/runtastic.php 92% from 13 tests
The principal PHP file in "Runtastic Widget" v. 1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("runtastic-widget.php" instead of "runtastic.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,106 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 103 | 50 | 755 |
PO File | 4 | 144 | 262 | 337 |
CSS | 1 | 1 | 0 | 14 |
PHP code Passed 2 tests
Analyzing 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.21 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 77.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 22.86% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin