83% bc-kickstarter-widget

Code Review | BC Kickstarter widget

WordPress plugin BC Kickstarter widget scored83%from 54 tests.

About plugin

  • Plugin page: bc-kickstarter-wi...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.11-5.2
  • WordPress version: 6.3.1
  • First release: May 7, 2019
  • Latest release: May 29, 2019
  • Number of updates: 9
  • Update frequency: every 18.7 days
  • Top authors: beocode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /820 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.10ms] Passed 4 tests

This is a short check of server-side resources used by BC Kickstarter widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.78 ▼14.27
Dashboard /wp-admin3.33 ▲0.0345.35 ▼4.45
Posts /wp-admin/edit.php3.38 ▲0.0347.66 ▼1.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.18 ▼7.71
Media Library /wp-admin/upload.php3.25 ▲0.0236.78 ▲4.31

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_kickstarter_project_tracker
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

BC Kickstarter widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲13714.00 ▼0.375.98 ▲3.9843.57 ▲0.33
Dashboard /wp-admin2,206 ▲185.85 ▲0.81107.71 ▼13.8738.06 ▼7.71
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0739.63 ▲0.2733.68 ▲1.47
Add New Post /wp-admin/post-new.php1,542 ▲2218.34 ▼4.90597.31 ▼92.1055.73 ▲1.75
Media Library /wp-admin/upload.php1,382 ▼34.14 ▼0.1392.74 ▼8.8643.64 ▲1.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_kickstarter_project_tracker

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-kickstarter-widget/kickstarter-project-tracker.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Please fix the following attributes: You can look at the official readme.txt

bc-kickstarter-widget/kickstarter-project-tracker.php 77% from 13 tests

The main file in "BC Kickstarter widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bc-kickstarter-widget.php" instead of "kickstarter-project-tracker.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "4.7.11")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin143 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1212674
CSS110260
JavaScript1209

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin