Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/kickstarter-tracker-widget/kickstarter-tracker-widget.php+165
Methods with the same name as their class will not be constructors in a future version of PHP; Kickstarter_Widget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼51.01ms] Passed 4 tests
Server-side resources used by Kickstarter Tracker Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 8.72 ▼36.49 |
Dashboard /wp-admin | 2.29 ▼1.01 | 11.19 ▼41.41 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 10.48 ▼39.99 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.98 ▼86.13 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 10.34 ▼27.02 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_kickstarter-widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Kickstarter Tracker Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.63 ▲0.07 | 1.70 ▼0.04 | 44.15 ▼1.95 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.09 | 89.49 ▼9.96 | 36.20 ▼5.81 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.06 | 33.18 ▼4.32 | 35.66 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.06 ▼0.63 | 679.26 ▼17.92 | 61.18 ▼11.08 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▲0.00 | 102.43 ▼3.17 | 42.55 ▼0.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Kickstarter_Widget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_kickstarter-widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kickstarter-tracker-widget/kickstarter-tracker-widget.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: kickstarter, widget
kickstarter-tracker-widget/kickstarter-tracker-widget.php Passed 13 tests
The main file in "Kickstarter Tracker Widget" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
40 characters long description:
A widget that displays Kickstarter stats
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
Success! There were no dangerous files found in this plugin1,449 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 277 | 294 | 1,416 |
CSS | 1 | 2 | 0 | 33 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 111.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 1 | 1.12% |
▷ Public methods | 73 | 82.02% |
▷ Protected methods | 16 | 17.98% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.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
PNG images were not found in this plugin