Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼266.39ms] Passed 4 tests
This is a short check of server-side resources used by Gutenberg Blocks Collection - qodeblock
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.15 ▲0.43 | 31.84 ▲13.63 |
Dashboard /wp-admin | 3.44 ▲0.38 | 47.53 ▲5.91 |
Posts /wp-admin/edit.php | 3.48 ▲0.38 | 38.83 ▼2.63 |
Add New Post /wp-admin/post-new.php | 4.97 ▼0.46 | 63.81 ▼1,059.45 |
Media Library /wp-admin/upload.php | 3.31 ▲0.31 | 33.01 ▼9.37 |
Settings /wp-admin/admin.php?page=qodeblock-plugin-settings | 3.28 | 29.11 |
Getting Started /wp-admin/admin.php?page=qodeblock | 3.29 | 30.39 |
Server storage [IO: ▲6.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 212 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Gutenberg Blocks Collection - qodeblock
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,884 ▲302 | 16.22 ▲0.78 | 11.38 ▲3.86 | 46.63 ▼3.05 |
Dashboard /wp-admin | 3,014 ▲164 | 5.96 ▲0.09 | 131.17 ▼14.62 | 118.46 ▲13.90 |
Posts /wp-admin/edit.php | 2,786 ▲83 | 2.71 ▲0.01 | 65.55 ▲0.86 | 86.41 ▼5.99 |
Add New Post /wp-admin/post-new.php | 2,303 ▲650 | 26.41 ▲7.60 | 406.93 ▲48.18 | 125.07 ▲14.47 |
Media Library /wp-admin/upload.php | 1,778 ▲3 | 4.96 ▼0.05 | 129.76 ▼21.20 | 137.25 ▲24.82 |
Settings /wp-admin/admin.php?page=qodeblock-plugin-settings | 1,095 | 2.06 | 50.46 | 70.46 |
Getting Started /wp-admin/admin.php?page=qodeblock | 1,535 | 2.34 | 68.18 | 107.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Qodeblock\ewsletter\\add_action() in wp-content/plugins/qodeblock/includes/newsletter/newsletter-functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qodeblock/dist/getting-started/getting-started.php:40
- > PHP Fatal error
Uncaught Error: Class 'Qodeblock\\Exception\\API_Error_Exception' not found in wp-content/plugins/qodeblock/includes/exceptions/class-mailchimp-api-error-exception.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/qodeblock/dist/getting-started/pages/settings-general.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qodeblock/src/qodeblocks/qodeblock-newsletter/index.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qodeblock/src/qodeblocks/qodeblock-post-grid/index.php:410
- > PHP Fatal error
Uncaught Error: Interface 'Qodeblock\ewsletter\\Provider_Interface' not found in wp-content/plugins/qodeblock/includes/classes/class-mailchimp.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/qodeblock/dist/getting-started/pages/settings-main.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/qodeblock/src/qodeblocks/qodeblock-sharing/index.php:75
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% 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: Screenshot #7 (Insert Google API key) image required
qodeblock/qodeblock.php Passed 13 tests
"Gutenberg Blocks Collection - qodeblock" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
A beautiful collection of handy Gutenberg blocks to help you get started with the new WordPress editor.
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
Good job! No executable or dangerous file extensions detected23,747 lines of code in 167 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 95 | 1,180 | 1,065 | 9,612 |
CSS | 22 | 2,049 | 91 | 5,941 |
SVG | 4 | 0 | 1 | 3,941 |
Sass | 29 | 545 | 0 | 2,508 |
PHP | 15 | 351 | 620 | 1,675 |
XML | 2 | 14 | 6 | 70 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 64.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 35.71% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 2.28MB with 1.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/getting-started/geo.png | 619.70KB | 72.38KB | ▼ 88.32% |
dist/getting-started/images/reminder_note_1-4.png | 66.99KB | 18.59KB | ▼ 72.24% |
dist/getting-started/images/image_post.png | 59.58KB | 15.06KB | ▼ 74.73% |
dist/getting-started/images/content_digital.png | 69.28KB | 19.10KB | ▼ 72.43% |
dist/getting-started/images/social_media_2-1.png | 48.48KB | 14.73KB | ▼ 69.61% |