10% kickstarter-tracker-widget

Code Review | Kickstarter Tracker Widget

WordPress plugin Kickstarter Tracker Widget scored10%from 54 tests.

About plugin

  • Plugin page: kickstarter-track...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Aug 13, 2013
  • Latest release: Aug 13, 2013
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: charto911 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /2,812 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.188.72 ▼36.49
Dashboard /wp-admin2.29 ▼1.0111.19 ▼41.41
Posts /wp-admin/edit.php2.29 ▼1.0610.48 ▼39.99
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.98 ▼86.13
Media Library /wp-admin/upload.php2.29 ▼0.9410.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.63 ▲0.071.70 ▼0.0444.15 ▼1.95
Dashboard /wp-admin2,195 ▲185.57 ▼0.0989.49 ▼9.9636.20 ▼5.81
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0633.18 ▼4.3235.66 ▼1.87
Add New Post /wp-admin/post-new.php1,526 ▼023.06 ▼0.63679.26 ▼17.9261.18 ▼11.08
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.00102.43 ▼3.1742.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP22772941,416
CSS12033

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 code0.47
Average class complexity111.67
▷ Minimum class complexity8.00
▷ Maximum class complexity197.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods89
▷ Static methods11.12%
▷ Public methods7382.02%
▷ Protected methods1617.98%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants21
▷ Global constants21100.00%
▷ Class constants00.00%
▷ Public constants00.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