Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.09MB] [CPU: ▲19.77ms] Passed 4 tests
Analyzing server-side resources used by Toolkit for Block Theme (Starter Templates, Gutenberg Blocks, Patterns, Google Fonts) – Twentig
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.59 ▲2.12 | 63.52 ▲22.10 |
Dashboard /wp-admin | 5.40 ▲2.05 | 67.18 ▲14.49 |
Posts /wp-admin/edit.php | 5.45 ▲2.09 | 67.08 ▲20.86 |
Add New Post /wp-admin/post-new.php | 9.42 ▲3.54 | 124.10 ▲33.66 |
Media Library /wp-admin/upload.php | 5.32 ▲2.09 | 56.61 ▲21.64 |
Server storage [IO: ▲3.88MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 211 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Toolkit for Block Theme (Starter Templates, Gutenberg Blocks, Patterns, Google Fonts) – Twentig
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲65 | 14.38 ▲0.04 | 1.79 ▲0.08 | 44.41 ▲0.87 |
Dashboard /wp-admin | 2,227 ▲60 | 5.60 ▼0.01 | 83.06 ▼23.76 | 37.61 ▼0.71 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 2.03 ▲0.05 | 40.00 ▲2.44 | 34.94 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,814 ▲288 | 26.41 ▲2.79 | 619.48 ▲40.32 | 51.10 ▼0.48 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.17 ▼0.03 | 96.03 ▼3.15 | 42.60 ▲0.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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)
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
- 81× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/twentig/inc/patterns/text-image.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function twentig_register_block_pattern() in wp-content/plugins/twentig/inc/classic/patterns/list.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/twentig/inc/classic/theme-tools/404.php:46
- > PHP Warning
Use of undefined constant TWENTIG_PATH - assumed 'TWENTIG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/twentig/inc/dashboard/class-twentig-dashboard.php on line 41
- > PHP Fatal error
Uncaught Error: Call to undefined function twentig_register_block_pattern() in wp-content/plugins/twentig/inc/classic/patterns/events.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function twentig_register_block_pattern() in wp-content/plugins/twentig/inc/classic/patterns/numbers.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function twentig_register_block_pattern() in wp-content/plugins/twentig/inc/classic/patterns/single-page.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_support() in wp-content/plugins/twentig/inc/classic/patterns/contact.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/twentig/inc/custom-fonts.php:324
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twentig/inc/classic/twentytwentyone/plugins.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: twenty twenty four, gutenberg, google fonts, gutenberg blocks, templates
twentig/twentig.php Passed 13 tests
"Toolkit for Block Theme (Starter Templates, Gutenberg Blocks, Patterns, Google Fonts) – Twentig" version 1.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
88 characters long description:
With its powerful tools, Twentig makes it easy to create and customize your own website.
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 plugin24,648 lines of code in 191 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 3,057 | 2,709 | 21,099 |
XML | 2 | 321 | 571 | 1,636 |
JavaScript | 9 | 213 | 68 | 1,538 |
CSS | 68 | 48 | 0 | 367 |
SVG | 7 | 0 | 0 | 7 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 26.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 5.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 129 | |
▷ Static methods | 4 | 3.10% |
▷ Public methods | 118 | 91.47% |
▷ Protected methods | 8 | 6.20% |
▷ Private methods | 3 | 2.33% |
Functions | 254 | |
▷ Named functions | 234 | 92.13% |
▷ Anonymous functions | 20 | 7.87% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.07MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/font-presets.png | 67.31KB | 72.99KB | 0.00% |