Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▲0.03ms] Passed 4 tests
An overview of server-side resources used by Integration for Mailjet
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 46.43 ▲3.80 |
Dashboard /wp-admin | 3.62 ▲0.32 | 52.17 ▲2.86 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 54.09 ▲0.14 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 91.48 ▼4.35 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 41.59 ▲1.48 |
Server storage [IO: ▲6.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 1,817 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_gjmji_consent |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Integration for Mailjet
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 14.00 ▼0.61 | 5.79 ▲3.96 | 43.37 ▲0.84 |
Dashboard /wp-admin | 2,234 ▲34 | 5.80 ▼0.06 | 100.05 ▼5.32 | 39.82 ▼3.47 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.04 ▼0.01 | 39.06 ▲0.78 | 36.51 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,553 ▲22 | 23.33 ▲0.05 | 641.51 ▲10.85 | 64.25 ▲11.99 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.23 ▼0.21 | 95.03 ▼7.72 | 44.46 ▼0.60 |
Uninstaller [IO: ▲6.24MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the followingThe plugin did not uninstall successfully, leaving 1 table in the database The uninstall procedure has failed, leaving 6 options in the database
- Incomplete uninstall procedure, leaving 1,817 files (6.24MB) in the plugin directory
- (new file) LICENSE
- (new file) composer.json
- (new file) composer.lock
- (new file) inc/assets/css/admin.css
- (new file) README.md
- (new file) inc/assets/css/default.css
- (new file) README.txt
- (new file) inc/assets/js/ajax.js
- (new file) inc/ajax/subscribe.php
- (new file) grandeljay-mailjet-integration.php
- ...
- wp_gjmji_consent
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 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 50% 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
The following issues need your attention
- 714× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Core\\AbstractMethodUnitTest' not found in wp-content/plugins/grandeljay-mailjet-integration/vendor/squizlabs/php_codesniffer/tests/Core/File/GetMemberPropertiesTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractClassRestrictionsSniff' not found in wp-content/plugins/grandeljay-mailjet-integration/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedClassesSniff.php:33
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Tests\\Standards\\AbstractSniffUnitTest' not found in wp-content/plugins/grandeljay-mailjet-integration/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractFunctionRestrictionsSniff' not found in wp-content/plugins/grandeljay-mailjet-integration/vendor/wp-coding-standards/wpcs/WordPress/AbstractClassRestrictionsSniff.php:21
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Sniffs\\AbstractVariableSniff' not found in wp-content/plugins/grandeljay-mailjet-integration/vendor/squizlabs/php_codesniffer/src/Standards/Zend/Sniffs/NamingConventions/ValidVariableNameSniff.php:17
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractFunctionRestrictionsSniff' not found in wp-content/plugins/grandeljay-mailjet-integration/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/RestrictedPHPFunctionsSniff.php:21
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractFunctionParameterSniff' not found in wp-content/plugins/grandeljay-mailjet-integration/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedParameterValuesSniff.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHP_CodeSniffer\\Sniffs\\AbstractVariableSniff' not found in wp-content/plugins/grandeljay-mailjet-integration/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/VariableCommentSniff.php:16
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/grandeljay-mailjet-integration/vendor/squizlabs/php_codesniffer/src/Standards/MySource/Sniffs/PHP/AjaxNullComparisonSniff.php:18
- > PHP Fatal error
Uncaught Error: Interface 'PHP_CodeSniffer\\Sniffs\\Sniff' not found in wp-content/plugins/grandeljay-mailjet-integration/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Strings/UnnecessaryStringConcatSniff.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: mailjet, api
grandeljay-mailjet-integration/grandeljay-mailjet-integration.php 92% from 13 tests
The entry point to "Integration for Mailjet" version 0.4.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.8.2" instead of "5.8")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/grandeljay-mailjet-integration/vendor/squizlabs/php_codesniffer/bin/phpcbf.bat
- ☣ wp-content/plugins/grandeljay-mailjet-integration/vendor/bin/phpcbf.bat
- ☣ wp-content/plugins/grandeljay-mailjet-integration/vendor/squizlabs/php_codesniffer/bin/phpcs.bat
- ☣ wp-content/plugins/grandeljay-mailjet-integration/vendor/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 961 | 22,395 | 41,301 | 91,123 |
Pascal | 130 | 3,231 | 7,118 | 6,576 |
Markdown | 24 | 1,803 | 0 | 5,747 |
XML | 169 | 389 | 717 | 5,638 |
JavaScript | 57 | 765 | 862 | 2,130 |
JSON | 14 | 0 | 0 | 1,494 |
CSS | 35 | 189 | 92 | 675 |
PO File | 5 | 134 | 153 | 366 |
XSD | 1 | 6 | 0 | 130 |
Bourne Shell | 1 | 8 | 0 | 41 |
YAML | 2 | 0 | 0 | 22 |
DOS Batch | 4 | 4 | 10 | 20 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 478)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 16.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 724.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 478.00 |
Code structure | ||
---|---|---|
Namespaces | 176 | |
Interfaces | 28 | |
Traits | 3 | |
Classes | 757 | |
▷ Abstract classes | 15 | 1.98% |
▷ Concrete classes | 742 | 98.02% |
▷ Final classes | 41 | 5.53% |
Methods | 2,861 | |
▷ Static methods | 211 | 7.38% |
▷ Public methods | 2,416 | 84.45% |
▷ Protected methods | 252 | 8.81% |
▷ Private methods | 193 | 6.75% |
Functions | 170 | |
▷ Named functions | 67 | 39.41% |
▷ Anonymous functions | 103 | 60.59% |
Constants | 231 | |
▷ Global constants | 130 | 56.28% |
▷ Class constants | 101 | 43.72% |
▷ Public constants | 90 | 89.11% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin