Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.99MB] [CPU: ▲1.69ms] Passed 4 tests
An overview of server-side resources used by Marketing automation, Email and SMS for Woocommerce and Wordpress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.49 ▲0.99 | 51.58 ▲7.43 |
Dashboard /wp-admin | 4.33 ▲0.98 | 55.46 ▲4.45 |
Posts /wp-admin/edit.php | 4.44 ▲1.04 | 58.20 ▲0.80 |
Add New Post /wp-admin/post-new.php | 6.93 ▲1.00 | 92.49 ▼5.91 |
Media Library /wp-admin/upload.php | 4.25 ▲0.98 | 52.17 ▲14.73 |
Message Business /wp-admin/plugins.php?page=messagebusiness | 4.37 | 40.49 |
Server storage [IO: ▲13.25MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2,860 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_message_business_newsletter_widget |
widget_recent-posts |
widget_recent-comments |
MESSAGE_BUSINESS_WIDGETFORMHTML |
MESSAGE_BUSINESS_INPUTSUBMITBUTTONTEXT |
can_compress_scripts |
theysaidso_admin_options |
MESSAGE_BUSINESS_FORMBUILDEROPTIONS |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Marketing automation, Email and SMS for Woocommerce and Wordpress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲151 | 13.60 ▼1.02 | 8.35 ▲6.40 | 48.11 ▲4.23 |
Dashboard /wp-admin | 2,210 ▲30 | 5.79 ▲0.17 | 90.82 ▼0.66 | 38.68 ▼2.16 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.31 ▲0.32 | 51.25 ▲9.07 | 39.34 ▲2.23 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.25 ▲0.12 | 676.89 ▼11.29 | 36.53 ▼11.45 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.27 ▲0.15 | 104.85 ▼10.54 | 44.12 ▼3.43 |
Message Business /wp-admin/plugins.php?page=messagebusiness | 975 | 1.93 | 33.50 | 31.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_message_business_newsletter_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/message-business/vendor/automattic/woocommerce/tests/bootstrap.php
- > /wp-content/plugins/message-business/vendor/squizlabs/php_codesniffer/scripts/build-phar.php
- 1460× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_MockObject_Matcher_InvokedRecorder' not found in wp-content/plugins/message-business/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtMostCount.php:17
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer_Sniff' not found in wp-content/plugins/message-business/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Files/LineLengthSniff.php:32
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_Constraint' not found in wp-content/plugins/message-business/vendor/phpunit/phpunit/src/Framework/Constraint/IsJson.php:16
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Plugin\\Backoff\\AbstractErrorCodeBackoffStrategy' not found in wp-content/plugins/message-business/vendor/guzzle/guzzle/src/Guzzle/Plugin/Backoff/ReasonPhraseBackoffStrategy.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/message-business/vendor/phpunit/phpunit/tests/_files/CoverageNoneTest.php:2
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer_Sniff' not found in wp-content/plugins/message-business/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Formatting/NoSpaceAfterCastSniff.php:30
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer_Exception' not found in wp-content/plugins/message-business/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/WhiteSpace/ScopeIndentSniff.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Common\\ToArrayInterface' not found in wp-content/plugins/message-business/vendor/guzzle/guzzle/src/Guzzle/Service/Description/OperationInterface.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/message-business/vendor/symfony/config/Tests/Loader/LoaderTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/message-business/vendor/guzzle/guzzle/tests/Guzzle/Tests/Service/Builder/ServiceBuilderTest.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
message-business/message-business.php 85% from 13 tests
The principal PHP file in "Marketing automation, Email and SMS for Woocommerce and Wordpress" v. 1.1.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 202 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.6.0")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Please make sure to remedy the following
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/message-business/vendor/bin/coveralls.bat
- ☣ wp-content/plugins/message-business/vendor/bin/phpcbf.bat
- ☣ wp-content/plugins/message-business/vendor/squizlabs/php_codesniffer/scripts/phpcbf.bat
- ☣ wp-content/plugins/message-business/vendor/bin/phpcs.bat
- ☣ wp-content/plugins/message-business/vendor/squizlabs/php_codesniffer/scripts/phpcs.bat
- ☣ wp-content/plugins/message-business/vendor/bin/phpunit.bat
- .exe - Executable in Windows
- ☣ wp-content/plugins/message-business/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,093 | 37,357 | 80,429 | 166,240 |
XML | 198 | 270 | 148 | 5,613 |
JSON | 96 | 26 | 0 | 5,439 |
Markdown | 89 | 1,955 | 0 | 4,856 |
YAML | 61 | 218 | 89 | 3,647 |
reStructuredText | 30 | 1,236 | 1,794 | 1,824 |
JavaScript | 17 | 120 | 470 | 1,726 |
CSS | 12 | 129 | 60 | 1,677 |
Ant | 12 | 128 | 3 | 786 |
PO File | 2 | 175 | 179 | 481 |
SVG | 1 | 0 | 0 | 288 |
XSD | 2 | 2 | 0 | 271 |
C | 1 | 52 | 8 | 223 |
make | 1 | 24 | 5 | 124 |
HTML | 2 | 16 | 0 | 95 |
Python | 1 | 22 | 23 | 49 |
m4 | 1 | 11 | 11 | 41 |
C/C++ Header | 1 | 12 | 8 | 40 |
Bourne Shell | 5 | 12 | 4 | 38 |
DOS Batch | 6 | 2 | 22 | 32 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 270)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 542.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 270.00 |
Code structure | ||
---|---|---|
Namespaces | 245 | |
Interfaces | 162 | |
Traits | 8 | |
Classes | 1,996 | |
▷ Abstract classes | 73 | 3.66% |
▷ Concrete classes | 1,923 | 96.34% |
▷ Final classes | 61 | 3.17% |
Methods | 11,812 | |
▷ Static methods | 876 | 7.42% |
▷ Public methods | 10,298 | 87.18% |
▷ Protected methods | 1,029 | 8.71% |
▷ Private methods | 485 | 4.11% |
Functions | 598 | |
▷ Named functions | 227 | 37.96% |
▷ Anonymous functions | 371 | 62.04% |
Constants | 340 | |
▷ Global constants | 115 | 33.82% |
▷ Class constants | 225 | 66.18% |
▷ Public constants | 225 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.49MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
widget/img/flags.png | 64.41KB | 23.38KB | ▼ 63.70% |
vendor/guzzle/guzzle/docs/_static/guzzle-icon.png | 0.78KB | 0.94KB | 0.00% |
(invalid) admin/images/icon.png | 14.73KB | 0.00KB | ▼ 100.00% |
vendor/guzzle/guzzle/docs/_static/logo.png | 241.87KB | 69.68KB | ▼ 71.19% |
admin/images/logo.png | 11.81KB | 6.53KB | ▼ 44.66% |