Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.76ms] Passed 4 tests
Analyzing server-side resources used by Dev Content Blocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 37.36 ▼13.79 |
Dashboard /wp-admin | 3.42 ▲0.11 | 49.76 ▼6.96 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.07 ▼0.50 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 96.71 ▼5.79 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 39.22 ▲1.42 |
All Content Blocks /wp-admin/edit.php?post_type=dev_content_block | 3.38 | 36.58 |
Add New Content Block /wp-admin/post-new.php?post_type=dev_content_block | 3.47 | 50.49 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Dev Content Blocks: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.72 ▲0.31 | 1.67 ▼0.47 | 37.23 ▼2.57 |
Dashboard /wp-admin | 2,219 ▲42 | 5.57 ▲0.04 | 91.85 ▼4.09 | 43.54 ▼2.14 |
Posts /wp-admin/edit.php | 2,127 ▲30 | 2.00 ▲0.01 | 38.97 ▲3.25 | 38.57 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.07 ▼0.23 | 633.36 ▼37.08 | 53.58 ▲0.60 |
Media Library /wp-admin/upload.php | 1,421 ▲27 | 4.22 ▲0.02 | 104.83 ▲0.41 | 42.55 ▼0.68 |
All Content Blocks /wp-admin/edit.php?post_type=dev_content_block | 1,091 | 1.97 | 30.45 | 31.48 |
Add New Content Block /wp-admin/post-new.php?post_type=dev_content_block | 2,716 | 10.09 | 237.07 | 70.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/dev-content-blocks/metabox-info.php
- > /wp-content/plugins/dev-content-blocks/revisions.php
- > /wp-content/plugins/dev-content-blocks/shortcode.php
- > /wp-content/plugins/dev-content-blocks/post-type.php
- > /wp-content/plugins/dev-content-blocks/dev-content-blocks.php
- > /wp-content/plugins/dev-content-blocks/metabox-options.php
- > /wp-content/plugins/dev-content-blocks/metabox-blocks.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/dev-content-blocks/single.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: content blocks, reusable content, html, code, modular...
dev-content-blocks/dev-content-blocks.php Passed 13 tests
Analyzing the main PHP file in "Dev Content Blocks" version 1.4.1
96 characters long description:
This plugin adds content blocks with HTML, JS, and CSS blocks to be called by using a shortcode.
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
Good job! No executable or dangerous file extensions detected2,055 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 44 | 48 | 1,350 |
PHP | 9 | 104 | 163 | 534 |
JavaScript | 35 | 28 | 2 | 171 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |