Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.25MB] [CPU: ▼11.62ms] Passed 4 tests
Server-side resources used by MustenBerg - Affiliate Product Review Gutenberg Blocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.11 ▼5.92 |
Dashboard /wp-admin | 3.33 ▲0.03 | 42.55 ▼3.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.99 ▼1.25 |
Add New Post /wp-admin/post-new.php | 4.82 ▼1.06 | 53.96 ▼34.62 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.57 ▼2.82 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for MustenBerg - Affiliate Product Review Gutenberg Blocks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.71 ▼0.93 | 7.34 ▲5.39 | 38.33 ▼9.40 |
Dashboard /wp-admin | 2,206 ▲21 | 4.86 ▼0.95 | 107.25 ▲2.10 | 40.77 ▼0.46 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.01 | 38.90 ▲2.55 | 33.61 ▲0.13 |
Add New Post /wp-admin/post-new.php | 6,197 ▲4,664 | 22.27 ▼0.88 | 855.05 ▲187.11 | 75.83 ▲24.52 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.05 | 99.91 ▼6.24 | 42.64 ▼0.33 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: product block, gutenberg block, custom block
affiliate-product-review-blocks/plugin.php 85% from 13 tests
The main PHP file in "MustenBerg - Affiliate Product Review Gutenberg Blocks" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("affiliate-product-review-blocks.php" instead of "plugin.php")
- Description: The description should be shorter than 140 characters (currently 194 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,988 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 45 | 169 | 171 | 3,974 |
Sass | 13 | 65 | 38 | 616 |
CSS | 4 | 44 | 5 | 286 |
PHP | 3 | 20 | 46 | 99 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 5 | 71.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 28.57% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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