Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▼3.22ms] Passed 4 tests
Analyzing server-side resources used by Rock Convert
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 45.34 ▲5.77 |
Dashboard /wp-admin | 3.57 ▲0.22 | 50.13 ▼7.99 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 50.41 ▲2.98 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 90.71 ▼10.15 |
Media Library /wp-admin/upload.php | 3.46 ▲0.24 | 35.14 ▲2.28 |
Adbar /wp-admin/edit.php?post_type=cta&page=rock-convert-announcements | 3.52 | 37.67 |
Settings /wp-admin/edit.php?post_type=cta&page=rock-convert-settings | 3.46 | 39.63 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=cta | 3.49 | 38.33 |
All banners /wp-admin/edit.php?post_type=cta | 3.55 | 39.77 |
New banner /wp-admin/post-new.php?post_type=cta | 3.57 | 50.92 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=cta | 3.48 | 50.36 |
Server storage [IO: ▲19.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 379 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_rconvert-subscriptions |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_rock_cta_widget |
category_children |
db_upgraded |
widget_theysaidso_widget |
rock_convert_db_version |
theysaidso_admin_options |
widget_recent-comments |
widget_rock_convert_subscribe_widget |
Browser metrics Passed 4 tests
Rock Convert: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,088 ▲317 | 15.51 ▲0.91 | 5.40 ▲3.23 | 38.53 ▼5.29 |
Dashboard /wp-admin | 2,393 ▲201 | 6.79 ▲1.88 | 138.90 ▲31.36 | 73.76 ▲32.92 |
Posts /wp-admin/edit.php | 2,314 ▲225 | 3.75 ▲1.74 | 49.96 ▲10.10 | 67.49 ▲31.14 |
Add New Post /wp-admin/post-new.php | 6,276 ▲4,743 | 25.97 ▲3.02 | 895.86 ▲326.14 | 131.52 ▲83.50 |
Media Library /wp-admin/upload.php | 1,450 ▲59 | 4.50 ▲0.31 | 82.20 ▼12.74 | 86.18 ▲41.91 |
Adbar /wp-admin/edit.php?post_type=cta&page=rock-convert-announcements | 1,744 | 4.19 | 73.70 | 71.40 |
Settings /wp-admin/edit.php?post_type=cta&page=rock-convert-settings | 1,254 | 5.66 | 99.60 | 61.93 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=cta | 1,532 | 3.59 | 46.16 | 46.69 |
All banners /wp-admin/edit.php?post_type=cta | 1,397 | 3.24 | 52.81 | 62.63 |
New banner /wp-admin/post-new.php?post_type=cta | 2,130 | 4.58 | 80.21 | 104.48 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=cta | 1,668 | 3.59 | 46.86 | 62.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_rconvert-subscriptions
- This plugin did not uninstall successfully, leaving 10 options in the database
- category_children
- widget_rock_cta_widget
- widget_recent-posts
- db_upgraded
- rock_convert_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_rock_convert_subscribe_widget
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=cta&page=rock-convert-announcements
- > Notice in wp-content/plugins/rock-convert/inc/admin/announcements/views/announcements-settings-page.php+33
Undefined index: urls
- > GET request to /wp-admin/edit.php?post_type=cta&page=rock-convert-announcements
- > Warning in wp-content/plugins/rock-convert/inc/admin/class-utils.php+213
Invalid argument supplied for foreach()
SRP 0% 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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/rock-convert/vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php
- 80× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tests\\AbstractTest' not found in wp-content/plugins/rock-convert/vendor/spipu/html2pdf/src/Tests/Tag/Svg/PolygonErrorTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tag\\Html\\I' not found in wp-content/plugins/rock-convert/vendor/spipu/html2pdf/src/Tag/Html/Samp.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rock-convert/inc/frontend/widget/class-subscribe.php:19
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tag\\AbstractHtmlTag' not found in wp-content/plugins/rock-convert/vendor/spipu/html2pdf/src/Tag/Html/Small.php:19
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tag\\AbstractSvgTag' not found in wp-content/plugins/rock-convert/vendor/spipu/html2pdf/src/Tag/Svg/Path.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Spipu\\Html2Pdf\\Extension\\ExtensionInterface' not found in wp-content/plugins/rock-convert/vendor/spipu/html2pdf/src/Extension/AbstractExtension.php:19
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Exception\\Html2PdfException' not found in wp-content/plugins/rock-convert/vendor/spipu/html2pdf/src/Exception/ImageException.php:18
- > PHP Fatal error
Uncaught Error: Class 'Spipu\\Html2Pdf\\Tag\\AbstractSvgTag' not found in wp-content/plugins/rock-convert/vendor/spipu/html2pdf/src/Tag/Svg/G.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rock-convert/vendor/spipu/html2pdf/src/Tests/Parsing/HtmlTest.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rock-convert/vendor/spipu/html2pdf/src/Tests/Exception/ExceptionFormatterTest.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/edit.php?post_type=cta&page=rock-convert-settings
- > Console-api (warning) in unknown
http://js.hsforms.net/forms/v2.js 0:84620 "[]" "Unsupported context key: groupErrors"
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: statistics, ads, contact, form, marketing
rock-convert/rock-convert.php 92% from 13 tests
The primary PHP file in "Rock Convert" version 3.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin69,391 lines of code in 283 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 230 | 4,620 | 19,801 | 62,650 |
PO File | 8 | 1,354 | 2,735 | 3,387 |
Markdown | 18 | 500 | 0 | 1,358 |
CSS | 4 | 181 | 14 | 1,188 |
JavaScript | 10 | 65 | 55 | 539 |
JSON | 3 | 0 | 0 | 226 |
XML | 1 | 0 | 4 | 22 |
YAML | 1 | 2 | 0 | 13 |
SVG | 6 | 0 | 0 | 6 |
Sass | 2 | 0 | 0 | 2 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 4,420)
- Method cyclomatic complexity should be reduced to less than 100 (currently 503)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 62.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,420.00 |
Average method complexity | 6.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 503.00 |
Code structure | ||
---|---|---|
Namespaces | 34 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 133 | |
▷ Abstract classes | 5 | 3.76% |
▷ Concrete classes | 128 | 96.24% |
▷ Final classes | 0 | 0.00% |
Methods | 1,492 | |
▷ Static methods | 153 | 10.25% |
▷ Public methods | 990 | 66.35% |
▷ Protected methods | 459 | 30.76% |
▷ Private methods | 43 | 2.88% |
Functions | 11 | |
▷ Named functions | 3 | 27.27% |
▷ Anonymous functions | 8 | 72.73% |
Constants | 166 | |
▷ Global constants | 156 | 93.98% |
▷ Class constants | 10 | 6.02% |
▷ Public constants | 10 | 100.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
15 PNG files occupy 0.47MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/banner-top.png | 1.13KB | 0.26KB | ▼ 76.66% |
vendor/spipu/html2pdf/src/Tests/Image/res/logo.png | 20.53KB | 7.63KB | ▼ 62.85% |
assets/wp-page/screenshot-2.png | 53.72KB | 16.53KB | ▼ 69.23% |
assets/admin/img/banner-middle.png | 1.14KB | 0.24KB | ▼ 79.13% |
assets/wp-page/banner-772x250.png | 9.35KB | 4.14KB | ▼ 55.73% |