Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.32MB] [CPU: ▼19.52ms] Passed 4 tests
Analyzing server-side resources used by Mingrana WP to Blockchain
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.01 | 37.58 ▼3.43 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.02 ▼4.36 |
Posts /wp-admin/edit.php | 3.31 ▼0.05 | 42.64 ▼7.84 |
Add New Post /wp-admin/post-new.php | 4.63 ▼1.26 | 45.01 ▼62.46 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.33 ▲3.02 |
Mingrana WP /wp-admin/options-general.php?page=mingrana-wp | 3.30 | 34.68 |
Server storage [IO: ▲10.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 345 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mingrana |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Mingrana WP to Blockchain
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.47 ▼0.88 | 8.71 ▲7.20 | 42.84 ▼3.41 |
Dashboard /wp-admin | 2,197 ▲17 | 5.56 ▼0.10 | 90.36 ▲4.13 | 40.68 ▼3.74 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.98 ▼0.01 | 37.09 ▲0.42 | 35.32 ▼2.59 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,708 | 26.01 ▲2.80 | 948.89 ▲273.12 | 66.60 ▲14.14 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.12 ▼0.10 | 112.93 ▲5.86 | 48.45 ▲3.13 |
Mingrana WP /wp-admin/options-general.php?page=mingrana-wp | 951 | 2.05 | 24.36 | 31.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_mingrana
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mingrana-wp
- > Notice in wp-content/plugins/mingrana-wp-to-blockchain/admin/partials/mingrana-wp-admin-display.php+66
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mingrana-wp-to-blockchain/public/partials/mingrana-wp-public-display.php
- > /wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/lib/php-css-parser/tests/quickdump.php
- > /wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/test.php
- 139× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/Rule/Rule.php:14
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\Value' not found in wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/Value/PrimitiveValue.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/Property/Import.php:10
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/src/FrameReflower/TableRow.php:20
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/src/Renderer.php:25
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Header' not found in wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/lib/php-font-lib/src/FontLib/TrueType/Header.php:16
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\Block' not found in wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/src/Renderer/TableCell.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/src/FrameDecorator/ListBulletImage.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/Property/Charset.php:12
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/mingrana-wp-to-blockchain/admin/lib/dompdf/lib/php-font-lib/src/FontLib/Table/DirectoryEntry.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== mingrana-wp-to-blockchain ===
)
mingrana-wp-to-blockchain/mingrana-wp.php 85% from 13 tests
The entry point to "Mingrana WP to Blockchain" version 1.0.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mingrana-wp-to-blockchain.php" instead of "mingrana-wp.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin41,446 lines of code in 266 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 208 | 8,946 | 16,065 | 39,338 |
Markdown | 6 | 255 | 0 | 909 |
CSS | 33 | 134 | 68 | 650 |
XML | 6 | 3 | 2 | 202 |
JSON | 5 | 0 | 0 | 135 |
PO File | 1 | 25 | 26 | 71 |
YAML | 4 | 16 | 3 | 63 |
JavaScript | 2 | 22 | 54 | 61 |
HTML | 1 | 0 | 0 | 17 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 35.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 765.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 187 | |
▷ Abstract classes | 12 | 6.42% |
▷ Concrete classes | 175 | 93.58% |
▷ Final classes | 0 | 0.00% |
Methods | 2,088 | |
▷ Static methods | 84 | 4.02% |
▷ Public methods | 1,784 | 85.44% |
▷ Protected methods | 204 | 9.77% |
▷ Private methods | 100 | 4.79% |
Functions | 21 | |
▷ Named functions | 6 | 28.57% |
▷ Anonymous functions | 15 | 71.43% |
Constants | 179 | |
▷ Global constants | 24 | 13.41% |
▷ Class constants | 155 | 86.59% |
▷ Public constants | 155 | 100.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 |
admin/lib/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |