79% track-kickstarter-project

Code Review | Track Kickstarter Project

WordPress plugin Track Kickstarter Project scored79%from 54 tests.

About plugin

  • Plugin page: track-kickstarter...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2016
  • Latest release: Feb 6, 2016
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: teFox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,802 total downloads

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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.63ms] Passed 4 tests

Analyzing server-side resources used by Track Kickstarter Project
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.19 ▲3.40
Dashboard /wp-admin3.32 ▲0.0245.64 ▼9.85
Posts /wp-admin/edit.php3.43 ▲0.0848.77 ▼8.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.91 ▼15.34
Media Library /wp-admin/upload.php3.24 ▲0.0237.84 ▼8.45

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_tf_track_kickstarter
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Track Kickstarter Project
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲3114.41 ▲0.031.80 ▼0.1042.44 ▼3.98
Dashboard /wp-admin2,224 ▲214.84 ▼1.01100.33 ▼5.5339.55 ▼4.11
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0039.05 ▼2.4335.13 ▼1.42
Add New Post /wp-admin/post-new.php1,545 ▼023.32 ▲0.13584.58 ▼119.4355.56 ▲1.99
Media Library /wp-admin/upload.php1,394 ▼94.40 ▲0.1694.64 ▼6.9945.04 ▼3.17

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
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_tf_track_kickstarter

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/track-kickstarter-project/templates/default.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/track-kickstarter-project/templates/widget-footer.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/track-kickstarter-project/templates/widget-header.php on line 6
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/track-kickstarter-project/templates/widget-header.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/track-kickstarter-project/templates/widget-footer.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: kickstarter

track-kickstarter-project/track-kickstarter-project.php Passed 13 tests

Analyzing the main PHP file in "Track Kickstarter Project" version 1.0.1
69 characters long description:
Easly track your Kickstarter projects and show up stats in your blog.

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
Good job! No executable or dangerous file extensions detected430 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9135315416
Sass10013
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity10.40
▷ Minimum class complexity6.00
▷ Maximum class complexity18.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods26
▷ Static methods311.54%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin