Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.76MB] [CPU: ▲204.44ms] 75% from 4 tests
Analyzing server-side resources used by Gutenberg Block Editor Toolkit – EditorsKit
The following require your attention
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 204.44ms on /wp-admin/admin.php?page=gutenberghub-styles-manager)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 265.27 ▲229.23 |
Dashboard /wp-admin | 4.08 ▲0.74 | 230.02 ▲170.31 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 243.60 ▲197.55 |
Add New Post /wp-admin/post-new.php | 7.09 ▲1.20 | 318.28 ▲220.65 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 284.02 ▲250.97 |
EditorsKit /wp-admin/admin.php?page=editorskit-getting-started | 5.57 | 227.43 |
Styles Manager /wp-admin/admin.php?page=gutenberghub-styles-manager | 3.99 | 249.68 |
Server storage [IO: ▲5.48MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 407 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
editorskit_activation_marker |
_ek_is_styles_manager_cpt_flashed |
Browser metrics Passed 4 tests
Gutenberg Block Editor Toolkit – EditorsKit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 14.47 ▲0.10 | 1.83 ▲0.11 | 40.04 ▼1.23 |
Dashboard /wp-admin | 2,252 ▲60 | 4.84 ▼0.06 | 112.39 ▲1.47 | 43.03 ▲1.51 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.05 ▲0.07 | 41.49 ▲6.68 | 36.75 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,688 ▲160 | 27.77 ▲4.50 | 747.37 ▲81.89 | 53.35 ▼2.29 |
Media Library /wp-admin/upload.php | 1,440 ▲52 | 4.26 ▲0.10 | 108.77 ▲14.13 | 45.66 ▼0.14 |
EditorsKit /wp-admin/admin.php?page=editorskit-getting-started | 1,675 | 18.70 | 535.97 | 120.93 |
Styles Manager /wp-admin/admin.php?page=gutenberghub-styles-manager | 1,858 | 12.52 | 130.51 | 38.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- editorskit_activation_marker
- db_upgraded
- theysaidso_admin_options
- _ek_is_styles_manager_cpt_flashed
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% 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)
The smoke test was a success, however most plugin functionality was not tested
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
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/block-options/includes/addons/template-library/gutenberghub-template-library-assets.php
- > /wp-content/plugins/block-options/includes/addons/template-library/gutenberghub-template-library.php
- > /wp-content/plugins/block-options/includes/class-editorskit-addon-manager.php
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-options/includes/addons/styles-manager/blocks/gutenberghub-styles-manager-block.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-options/includes/addons/styles-manager/gutenberghub-styles-manager-blocks.php:31
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/block-options/includes/addons/template-library/rest-api/controllers/gutenberghub-template-library-controller.php:11
- > PHP Fatal error
require_once(): Failed opening required 'EDITORSKIT_PLUGIN_ADDON_PATHstyles-manager/rest-api/init.php' (include_path='.:/usr/share/php') in wp-content/plugins/block-options/includes/addons/styles-manager/gutenberghub-styles-manager-main.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/block-options/includes/helper.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/block-options/includes/class-editorskit-plugin-shortcuts.php:19
- > PHP Warning
Use of undefined constant EDITORSKIT_PLUGIN_URL - assumed 'EDITORSKIT_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/block-options/includes/class-editorskit-plugin-images-links.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-options/includes/addons/styles-manager/gutenberghub-styles-manager-core.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/block-options/includes/addons/styles-manager/templates/blank.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/block-options/includes/class-editorskit-block-locking.php:39
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=editorskit-getting-started
- > Network (severe)
var/www/wordpress/wp-content/plugins/block-options/build/styles-manager-addon.js?ver=65263a4d0be6d - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=gutenberghub-styles-manager
- > Network (severe)
index.php/wp-json/wp/v2/gsm_styles?search=&page=1&per_page=5&gsm_block=undefined&status=publish%2Cdraft&_locale=user - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/admin.php?page=gutenberghub-styles-manager
- > Console-api (severe) in unknown
/wp-content/plugins/block-options/build/styles-manager-addon-admin.js?ver=65263a506be6c 0:36055 Response
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Text and Highlight Colors), #2 (Gutenberg Editor Rich Text Formats), #3 (Responsive and User Logged-in State Visibility), #4 (Block Settings), #5 (Image and Cover Block Styles), #6 (Settings and Options), #7 (Custom Classes Utility and Auto Suggestions), #8 (Code Editor Mode Syntax Highlighter), #9 (Drag and Drop Featured Image Upload), #10 (Link rel attributes nofollow and sponsored option)
block-options/plugin.php 77% from 13 tests
The main file in "Gutenberg Block Editor Toolkit – EditorsKit" v. 1.40.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("block-options.php" instead of "plugin.php")
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
There were no executable files found in this plugin76,996 lines of code in 382 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 7 | 0 | 0 | 59,488 |
JavaScript | 230 | 1,714 | 1,466 | 11,335 |
Sass | 56 | 780 | 18 | 2,946 |
PHP | 48 | 718 | 1,486 | 2,903 |
Markdown | 31 | 154 | 0 | 247 |
CSS | 6 | 9 | 0 | 44 |
XML | 2 | 1 | 0 | 24 |
TypeScript | 1 | 1 | 0 | 8 |
Bourne Shell | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 13.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 4.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 4 | 13.33% |
Methods | 126 | |
▷ Static methods | 16 | 12.70% |
▷ Public methods | 108 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 14.29% |
Functions | 20 | |
▷ Named functions | 7 | 35.00% |
▷ Anonymous functions | 13 | 65.00% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 1.10MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-10.png | 66.34KB | 39.85KB | ▼ 39.92% |
screenshot-2.png | 84.96KB | 45.25KB | ▼ 46.74% |
screenshot-4.png | 78.00KB | 45.19KB | ▼ 42.06% |
images/templates.png | 148.97KB | 52.83KB | ▼ 64.54% |
screenshot-8.png | 183.47KB | 82.45KB | ▼ 55.06% |