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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼2.84MB] [CPU: ▼797,436.37ms] Passed 4 tests
An overview of server-side resources used by Gutenberg Blocks for AMP with Design Library
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.96 ▼14.61 | 51.48 ▼3,189,723.20 |
Dashboard /wp-admin | 4.98 ▲1.63 | 58.30 ▲2.87 |
Posts /wp-admin/edit.php | 4.98 ▲1.57 | 63.26 ▲10.62 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.05 | 66.60 ▼35.77 |
Media Library /wp-admin/upload.php | 4.98 ▲1.70 | 50.59 ▲13.11 |
Server storage [IO: ▲2.96MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Gutenberg Blocks for AMP with Design Library
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.11 | 1.50 ▼0.57 | 43.52 ▼3.04 |
Dashboard /wp-admin | 2,200 ▲20 | 5.62 ▲0.00 | 93.32 ▲3.56 | 43.57 ▲1.22 |
Posts /wp-admin/edit.php | 2,153 ▲50 | 1.98 ▲0.03 | 39.18 ▲0.27 | 36.39 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,677 ▲151 | 26.09 ▲2.47 | 722.75 ▲46.91 | 40.51 ▼21.56 |
Media Library /wp-admin/upload.php | 1,405 ▲2 | 4.25 ▲0.07 | 107.24 ▲8.62 | 44.44 ▼1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/amp-blocks/dist/template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #3, #4, #5, #6, #7, #8, #9 in amp-blocks/assets to your readme.txt
amp-blocks/amp-blocks.php 85% from 13 tests
"Gutenberg Blocks for AMP with Design Library" version 1.6.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
Code Analysis 95% from 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 plugin10,756 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 279 | 491 | 4,802 |
CSS | 23 | 192 | 90 | 3,038 |
JavaScript | 10 | 367 | 174 | 2,534 |
Sass | 1 | 56 | 0 | 382 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,980)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 735)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.49 |
Average class complexity | 771.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,980.00 |
Average method complexity | 55.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 735.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 3 | 5.26% |
▷ Public methods | 54 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.26% |
Functions | 17 | |
▷ Named functions | 14 | 82.35% |
▷ Anonymous functions | 3 | 17.65% |
Constants | 8 | |
▷ Global constants | 8 | 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
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 |
modules/gutenberg/assets/images/user-df-img.png | 3.57KB | 1.88KB | ▼ 47.43% |