Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/easy-block-selector/easy-block-selector-button.php+24
Methods with the same name as their class will not be constructors in a future version of PHP; EasyBlockSelector has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.14ms] Passed 4 tests
This is a short check of server-side resources used by Easy Block Selector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.18 ▲3.67 | 647,498.71 ▲647,455.01 |
Dashboard /wp-admin | 2.08 ▼1.27 | 7.01 ▼48.89 |
Posts /wp-admin/edit.php | 2.08 ▼1.32 | 4.85 ▼47.69 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.85 | 5.66 ▼87.25 |
Media Library /wp-admin/upload.php | 2.08 ▼1.19 | 5.91 ▼32.71 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Block Selector
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.36 ▼0.02 | 1.77 ▼0.08 | 44.29 ▼3.79 |
Dashboard /wp-admin | 2,198 ▲21 | 5.66 ▲0.05 | 86.65 ▼5.25 | 39.05 ▼3.84 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.98 ▲0.02 | 36.41 ▼2.27 | 38.00 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.04 ▼0.05 | 686.21 ▲53.76 | 55.28 ▼0.14 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.20 ▼0.00 | 108.59 ▲4.64 | 50.63 ▲7.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/easy-block-selector/easy-block-selector-button.php+24
Methods with the same name as their class will not be constructors in a future version of PHP; EasyBlockSelector has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-block-selector/easy-block-selector-button.php:67
- > 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 96% from 29 tests
readme.txt Passed 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
7 plugin tags: tinymce, short code, select, editor, shortcodes...
easy-block-selector/easy-block-selector-button.php 92% from 13 tests
The entry point to "Easy Block Selector" version 0.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-block-selector.php" instead of "easy-block-selector-button.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin277 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 11 | 33 | 237 |
PHP | 1 | 22 | 14 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tinymce3/ebs_mce_icon.png | 2.86KB | 0.13KB | ▼ 95.29% |