Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▲3.04ms] 75% from 4 tests
A check of server-side resources used by C9 Blocks
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 2,649.12ms on /wp-admin/themes.php?page=c9-blocks-getting-started)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 40.66 ▲1.43 |
Dashboard /wp-admin | 3.49 ▲0.19 | 48.53 ▲6.22 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 54.53 ▲4.62 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 88.39 ▼0.13 |
Media Library /wp-admin/upload.php | 3.42 ▲0.18 | 41.30 ▲6.71 |
C9 Blocks /wp-admin/themes.php?page=c9-blocks-getting-started | 4.06 | 2,649.12 |
Server storage [IO: ▲15.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 468 new files
Database: no new tables, 7 new options
New WordPress options |
---|
c9_orig_colors |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for C9 Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲161 | 14.12 ▼0.15 | 17.08 ▲15.50 | 43.49 ▼0.28 |
Dashboard /wp-admin | 2,203 ▲26 | 5.51 ▼0.13 | 85.54 ▼7.85 | 39.57 ▼2.18 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.94 ▼0.00 | 39.15 ▲4.16 | 34.60 ▼0.10 |
Add New Post /wp-admin/post-new.php | 7,041 ▲5,515 | 27.10 ▲3.85 | 1,072.88 ▲357.36 | 39.65 ▼20.20 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.23 ▲0.05 | 107.95 ▼9.61 | 44.88 ▼3.91 |
C9 Blocks /wp-admin/themes.php?page=c9-blocks-getting-started | 2,760 | 1.98 | 26.90 | 157.07 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- c9_orig_colors
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/c9-blocks/composer-setup.php
- > /wp-content/plugins/c9-blocks/tests/bootstrap.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c9-blocks/src/blocks/block-sharing/index.php:89
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c9-blocks/src/blocks/block-post-grid/index.php:585
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/c9-blocks/tests/test-class-check-dist-files-exist.php:11
- > PHP Notice
Undefined variable: argv in wp-content/plugins/c9-blocks/composer-setup.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/c9-blocks/tests/test-class-layout-endpoints.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c9-blocks/src/blocks/block-vertical-tabs/components/vertical-tab/index.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c9-blocks/src/blocks/block-horizontal-tabs/components/horizontal-tab/index.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: gutenberg blocks, editor, landing page, marketing, gutenberg...
c9-blocks/plugin.php 92% from 13 tests
The main PHP script in "C9 Blocks" version 1.7.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("c9-blocks.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin108,005 lines of code in 412 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 46,613 |
JavaScript | 227 | 3,760 | 2,079 | 28,395 |
SVG | 120 | 0 | 28 | 12,793 |
CSS | 7 | 2,862 | 137 | 8,563 |
Sass | 34 | 1,325 | 62 | 8,012 |
PHP | 11 | 397 | 751 | 2,642 |
PO File | 1 | 325 | 694 | 724 |
Bourne Shell | 3 | 23 | 11 | 128 |
YAML | 1 | 6 | 0 | 57 |
Markdown | 2 | 30 | 0 | 53 |
XML | 2 | 4 | 2 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 21.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 5.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 5 | 13.89% |
▷ Public methods | 16 | 44.44% |
▷ Protected methods | 20 | 55.56% |
▷ Private methods | 0 | 0.00% |
Functions | 58 | |
▷ Named functions | 52 | 89.66% |
▷ Anonymous functions | 6 | 10.34% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/pick-column-layout.png | 56.62KB | 15.57KB | ▼ 72.50% |
assets/c9-logo.png | 32.69KB | 16.14KB | ▼ 50.62% |
assets/device-previews.png | 92.31KB | 23.11KB | ▼ 74.96% |
assets/section-template-icons/1882E2F807C6F8D2.png | 28.09KB | 20.61KB | ▼ 26.62% |