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: ▼0.04MB] [CPU: ▼312.45ms] Passed 4 tests
A check of server-side resources used by Reusable Content & Text Blocks by Loomisoft
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.46 | 63.36 ▲13.56 |
Dashboard /wp-admin | 3.56 ▲0.14 | 34.13 ▲1.34 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 36.22 ▼2.91 |
Add New Post /wp-admin/post-new.php | 6.34 ▼0.63 | 83.35 ▼1,251.54 |
Media Library /wp-admin/upload.php | 3.62 ▲0.32 | 28.22 ▲3.33 |
Add New Content Block /wp-admin/post-new.php?post_type=lscontentblock | 3.83 | 50.78 |
All Content Blocks /wp-admin/edit.php?post_type=lscontentblock | 3.65 | 31.41 |
Usage & About /wp-admin/edit.php?post_type=lscontentblock&page=ls_cb_usage_about_page | 3.54 | 30.66 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 2 new options
New WordPress options |
---|
ls_cb_option |
widget_ls_content_block |
Browser metrics Passed 4 tests
An overview of browser requirements for Reusable Content & Text Blocks by Loomisoft
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,940 ▲186 | 16.18 ▲0.95 | 5.95 ▼0.76 | 2.18 ▼0.49 |
Dashboard /wp-admin | 3,065 ▲204 | 7.07 ▲0.91 | 120.06 ▼12.04 | 219.40 ▲53.93 |
Posts /wp-admin/edit.php | 2,862 ▲171 | 3.24 ▼0.00 | 70.62 ▲6.69 | 186.26 ▲38.80 |
Add New Post /wp-admin/post-new.php | 1,796 ▲136 | 16.50 ▲0.46 | 392.72 ▼17.83 | 163.11 ▲10.69 |
Media Library /wp-admin/upload.php | 1,867 ▲172 | 6.16 ▲0.66 | 125.44 ▼12.89 | 244.33 ▲60.52 |
Add New Content Block /wp-admin/post-new.php?post_type=lscontentblock | 3,270 | 10.04 | 204.33 | 282.38 |
All Content Blocks /wp-admin/edit.php?post_type=lscontentblock | 1,604 | 3.53 | 65.01 | 161.61 |
Usage & About /wp-admin/edit.php?post_type=lscontentblock&page=ls_cb_usage_about_page | 1,954 | 3.31 | 62.33 | 178.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 2 options
- widget_ls_content_block
- ls_cb_option
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lscontentblock&page=ls_cb_usage_about_page
- > User deprecated in wp-includes/functions.php+5691
contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/post-new.php?post_type=lscontentblock
- > Notice in wp-content/plugins/loomisoft-content-blocks/includes/ls_cb_main.php+481
Undefined offset: 16
- > GET request to /wp-admin/post-new.php?post_type=lscontentblock
- > Notice in wp-content/plugins/loomisoft-content-blocks/includes/ls_cb_main.php+481
Undefined offset: 17
- > GET request to /wp-admin/post-new.php?post_type=lscontentblock
- > Notice in wp-content/plugins/loomisoft-content-blocks/includes/ls_cb_main.php+481
Undefined offset: 18
- > GET request to /wp-admin/post-new.php?post_type=lscontentblock
- > Notice in wp-content/plugins/loomisoft-content-blocks/includes/ls_cb_main.php+481
Undefined offset: 19
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: There are too many tags (18 tag instead of maximum 10)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Reusable Content & Text Blocks by Loomisoft===
)
loomisoft-content-blocks/loomisoft-content-blocks.php 92% from 13 tests
The entry point to "Reusable Content & Text Blocks by Loomisoft" version 1.4.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 513 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,326 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 191 | 69 | 1,005 |
CSS | 1 | 38 | 4 | 220 |
JavaScript | 2 | 17 | 8 | 101 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 67.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 42 | |
▷ Static methods | 37 | 88.10% |
▷ Public methods | 42 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ls-wp-mce-icon.png | 20.80KB | 0.67KB | ▼ 96.78% |
images/ls-wp-menu-icon.png | 19.81KB | 0.46KB | ▼ 97.67% |
images/ls-wp-admin-branding.png | 65.37KB | 2.53KB | ▼ 96.13% |