84% sitekit

Code Review | Sitekit

WordPress plugin Sitekit scored84%from 54 tests.

About plugin

  • Plugin page: sitekit
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2016
  • Latest release: Sep 24, 2023
  • Number of updates: 13
  • Update frequency: every 210.2 days
  • Top authors: webvitaly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /27,768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼3.33ms] Passed 4 tests

Server-side resources used by Sitekit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2041.04 ▼4.50
Dashboard /wp-admin3.49 ▲0.1949.51 ▼7.95
Posts /wp-admin/edit.php3.61 ▲0.2554.34 ▲4.85
Add New Post /wp-admin/post-new.php6.08 ▲0.19101.11 ▼3.08
Media Library /wp-admin/upload.php3.42 ▲0.1836.64 ▲2.20

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 11 new options
New WordPress options
sitekit_settings
widget_sitekit_posts_widget
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_sitekit_search_widget
widget_recent-comments
widget_sitekit_archives_widget
widget_sitekit_categories_widget
...

Browser metrics Passed 4 tests

Sitekit: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.35 ▼0.001.82 ▼0.0441.63 ▼3.87
Dashboard /wp-admin2,201 ▲245.51 ▼0.1488.36 ▼13.4640.18 ▼4.88
Posts /wp-admin/edit.php2,112 ▲121.97 ▼0.0139.63 ▲3.3637.12 ▲4.58
Add New Post /wp-admin/post-new.php1,536 ▲1023.56 ▲0.41693.29 ▲5.8656.82 ▼7.03
Media Library /wp-admin/upload.php1,412 ▲184.21 ▲0.07106.42 ▲4.3246.41 ▲1.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 11 options in the database
    • widget_theysaidso_widget
    • widget_sitekit_categories_widget
    • theysaidso_admin_options
    • sitekit_settings
    • widget_sitekit_archives_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_sitekit_search_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sitekit/inc/sitekit-shortcode-categories.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sitekit/inc/sitekit-widget-archives.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sitekit/inc/sitekit-widget-categories.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sitekit/inc/sitekit-shortcode-archives.php:54
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sitekit/inc/sitekit-widget-search.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sitekit/inc/sitekit-shortcode-bloginfo.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sitekit/inc/sitekit-shortcode-posts.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sitekit/inc/sitekit-shortcode-iframe.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sitekit/inc/sitekit-widget-posts.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

sitekit/sitekit.php Passed 13 tests

The main PHP script in "Sitekit" version 1.5 is automatically included on every request by WordPress
103 characters long description:
Widgets: search, archives, categories, pages, posts. Shortcodes: archives, bloginfo, categories, posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected959 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12233192877
JavaScript123182
CSS1140

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity8.00
▷ Minimum class complexity2.00
▷ Maximum class complexity15.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods420.00%
▷ Public methods1680.00%
▷ Protected methods00.00%
▷ Private methods420.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin