Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.95ms] Passed 4 tests
Server-side resources used by Content Blocks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.34 ▼1.00 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.89 ▼11.34 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.53 ▼2.98 |
Add New Post /wp-admin/post-new.php | 7.00 ▲1.11 | 87.91 ▼2.63 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.78 ▼2.86 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Content Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲227 | 19.18 ▲4.83 | 151.06 ▲149.27 | 38.13 ▼5.02 |
Dashboard /wp-admin | 2,195 ▲18 | 5.51 ▼0.11 | 79.64 ▼9.23 | 40.71 ▲2.91 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.07 | 36.26 ▲2.21 | 33.83 ▼0.91 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,666 | 26.89 ▲8.43 | 886.37 ▲269.94 | 33.72 ▼36.80 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.24 ▲0.02 | 98.37 ▼1.73 | 40.92 ▼3.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 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)
Good news, no errors were detected
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 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: blocks, gutenberg
contentblocks/contentblocks.php Passed 13 tests
The main file in "Content Blocks" v. 0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
40 characters long description:
Beautiful blocks for your WordPress site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin10,467 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 9,167 |
JavaScript | 9 | 365 | 278 | 1,098 |
PHP | 1 | 31 | 42 | 78 |
SVG | 1 | 0 | 1 | 76 |
Sass | 2 | 5 | 0 | 26 |
CSS | 2 | 2 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin