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
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.63ms] Passed 4 tests
Server-side resources used by Testimonial Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 46.61 ▲2.92 |
Dashboard /wp-admin | 3.45 ▲0.15 | 49.38 ▼5.67 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.44 ▲0.91 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 87.42 ▼13.61 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.70 ▼0.15 |
Server storage [IO: ▲2.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Testimonial Block: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.60 ▼0.98 | 5.26 ▲3.42 | 42.74 ▲4.48 |
Dashboard /wp-admin | 2,206 ▲15 | 5.79 ▲0.78 | 96.36 ▼7.73 | 35.58 ▼8.55 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▼0.03 | 35.86 ▼1.55 | 33.12 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,648 ▲106 | 24.46 ▲6.22 | 656.98 ▲42.43 | 52.33 ▼4.03 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.17 ▼0.06 | 96.74 ▲0.13 | 41.46 ▲0.13 |
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: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: blocks, gutenberg blocks, testimony, testimonial, gutenberg...
testimonial-wp-block/testimonial-wp-block.php Passed 13 tests
This is the main PHP file of "Testimonial Block" version 1.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Display testimonials & gain instant credibility
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 plugin792 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 103 | 164 | 682 |
JavaScript | 5 | 14 | 7 | 95 |
JSON | 2 | 0 | 0 | 12 |
CSS | 3 | 1 | 6 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 32.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 33 | |
▷ Static methods | 12 | 36.36% |
▷ Public methods | 29 | 87.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.12% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
No PNG images were found in this plugin