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.81MB] [CPU: ▼333.41ms] Passed 4 tests
Server-side resources used by Advanced Blocks - WordPress Page Building Blocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.17 | 57.73 ▼5.91 |
Dashboard /wp-admin | 3.51 ▲0.11 | 65.44 ▲26.82 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 55.03 ▲16.34 |
Add New Post /wp-admin/post-new.php | 3.34 ▼3.63 | 29.92 ▼1,343.10 |
Media Library /wp-admin/upload.php | 5.52 ▲2.23 | 29.70 ▼0.97 |
advanced Blocks /wp-admin/admin.php?page=advanced-blocks-welcome | 5.52 | 26.50 |
advanced Blocks /wp-admin/options-general.php?page=advanced-blocks | 5.52 | 27.40 |
Server storage [IO: ▲6.05MB] [DB: ▲0.34MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 153 new files
Database: no new tables, 1 new option
New WordPress options |
---|
advanced-blocks-list |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Blocks - WordPress Page Building Blocks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲40 | 16.03 ▲0.39 | 7.57 ▲1.04 | 2.33 ▼0.30 |
Dashboard /wp-admin | 2,894 ▲36 | 6.12 ▼0.03 | 118.80 ▼33.53 | 165.32 ▼2.10 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.24 ▲0.00 | 82.36 ▲17.46 | 144.45 ▼77.26 |
Add New Post /wp-admin/post-new.php | 1,688 ▼22 | 21.89 ▲1.07 | 520.10 ▲68.67 | 182.89 ▼15.77 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.55 ▲0.00 | 158.73 ▲10.90 | 196.54 ▼42.62 |
advanced Blocks /wp-admin/admin.php?page=advanced-blocks-welcome | 1,001 | 2.39 | 55.15 | 146.02 |
advanced Blocks /wp-admin/options-general.php?page=advanced-blocks | 1,237 | 8.37 | 308.94 | 137.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.34MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- advanced-blocks-list
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/advanced-blocks/languages/js-strings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-blocks/settings/class-advanced-blocks-settings.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-blocks/settings/class-advanced-blocks-api.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2 in advanced-blocks/assets to your readme.txt
advanced-blocks/plugin.php 92% from 13 tests
The main PHP script in "Advanced Blocks - WordPress Page Building Blocks" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-blocks.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin34,479 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
YAML | 1 | 0 | 0 | 12,796 |
JavaScript | 89 | 1,509 | 2,354 | 9,170 |
CSS | 8 | 1,518 | 184 | 5,863 |
SVG | 3 | 0 | 0 | 3,927 |
Sass | 30 | 356 | 15 | 2,102 |
PHP | 6 | 228 | 299 | 621 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 13 | 68.42% |
▷ Anonymous functions | 6 | 31.58% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
settings/js/dashboard/stagblocks.png | 3.83KB | 4.10KB | 0.00% |
settings/js/dashboard/featured.png | 12.67KB | 13.51KB | 0.00% |