84% kit-com

Code Review | Kit.co - Share your Product Recommendations

WordPress plugin Kit.co - Share your Product Recommendations scored84%from 54 tests.

About plugin

  • Plugin page: kit-com
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.1-5.4
  • WordPress version: 6.3.1
  • First release: Apr 19, 2017
  • Latest release: May 20, 2020
  • Number of updates: 10
  • Update frequency: every 112.7 days
  • Top authors: kittechinc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,853 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.38ms] Passed 4 tests

This is a short check of server-side resources used by Kit.co - Share your Product Recommendations
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0043.59 ▼1.14
Dashboard /wp-admin3.57 ▲0.0052.10 ▼4.60
Posts /wp-admin/edit.php3.68 ▲0.0049.57 ▼8.04
Add New Post /wp-admin/post-new.php6.15 ▲0.0090.48 ▼3.73
Media Library /wp-admin/upload.php3.49 ▲0.0043.25 ▲3.56

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kit.co - Share your Product Recommendations
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.37 ▲0.002.06 ▲0.2644.23 ▲4.48
Dashboard /wp-admin2,198 ▲245.65 ▲0.0490.18 ▼10.5038.46 ▼7.26
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0240.39 ▼2.6735.41 ▼1.30
Add New Post /wp-admin/post-new.php1,526 ▼523.64 ▲0.61708.46 ▲31.1057.58 ▼1.93
Media Library /wp-admin/upload.php1,400 ▼04.25 ▼0.0199.92 ▼8.3444.42 ▲1.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/kit-com/kit-com.php:11

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: embed, affiliate, kit, kit-co, oembed...

kit-com/kit-com.php Passed 13 tests

This is the main PHP file of "Kit.co - Share your Product Recommendations" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
93 characters long description:
Share your favorite products in an interactive, shoppable embed module directly on your blog.

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 plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1196

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin