Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼302.00ms] Passed 4 tests
Server-side resources used by Testimonial Gutenberg Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.16 | 58.48 ▲7.39 |
Dashboard /wp-admin | 3.51 ▲0.10 | 41.75 ▲8.89 |
Posts /wp-admin/edit.php | 3.74 ▲0.09 | 40.77 ▼2.11 |
Add New Post /wp-admin/post-new.php | 6.05 ▼0.92 | 60.61 ▼1,214.47 |
Media Library /wp-admin/upload.php | 3.39 ▲0.09 | 26.11 ▲1.21 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Testimonial Gutenberg Block
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲27 | 15.91 ▲0.30 | 6.09 ▲0.11 | 2.60 ▲0.15 |
Dashboard /wp-admin | 2,881 ▲20 | 6.12 ▼0.14 | 120.17 ▼14.53 | 159.77 ▼1.14 |
Posts /wp-admin/edit.php | 2,694 ▲10 | 3.24 ▲0.00 | 62.06 ▼0.94 | 134.73 ▼10.22 |
Add New Post /wp-admin/post-new.php | 1,701 ▼18 | 21.93 ▼0.17 | 461.00 ▲45.53 | 154.06 ▼6.87 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.48 ▼0.07 | 144.59 ▼2.34 | 189.43 ▲0.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in testimonial-block/assets to your readme.txt
testimonial-block/jms-testimonialblock.php 85% from 13 tests
The main PHP file in "Testimonial Gutenberg Block" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("testimonial-block.php" instead of "jms-testimonialblock.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,630 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 247 | 46 | 1,144 |
PHP | 12 | 107 | 193 | 468 |
JSON | 4 | 0 | 0 | 10 |
JavaScript | 3 | 6 | 26 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 9.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 5 | 15.15% |
▷ Public methods | 30 | 90.91% |
▷ Protected methods | 2 | 6.06% |
▷ Private methods | 1 | 3.03% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 7 | |
▷ Global constants | 7 | 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 |
assets/img/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |