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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 41.04 ▼4.50 |
Dashboard /wp-admin | 3.49 ▲0.19 | 49.51 ▼7.95 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 54.34 ▲4.85 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 101.11 ▼3.08 |
Media Library /wp-admin/upload.php | 3.42 ▲0.18 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.35 ▼0.00 | 1.82 ▼0.04 | 41.63 ▼3.87 |
Dashboard /wp-admin | 2,201 ▲24 | 5.51 ▼0.14 | 88.36 ▼13.46 | 40.18 ▼4.88 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.97 ▼0.01 | 39.63 ▲3.36 | 37.12 ▲4.58 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.56 ▲0.41 | 693.29 ▲5.86 | 56.82 ▼7.03 |
Media Library /wp-admin/upload.php | 1,412 ▲18 | 4.21 ▲0.07 | 106.42 ▲4.32 | 46.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 233 | 192 | 877 |
JavaScript | 1 | 2 | 31 | 82 |
CSS | 1 | 1 | 4 | 0 |
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 code | 0.16 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 4 | 20.00% |
▷ Public methods | 16 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 20.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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