Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.32ms] Passed 4 tests
A check of server-side resources used by MailMojo Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 35.05 ▼4.93 |
Dashboard /wp-admin | 3.43 ▲0.09 | 47.35 ▼12.30 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 53.51 ▲3.33 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 92.86 ▼11.36 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.44 ▲3.70 |
MailMojo /wp-admin/options-general.php?page=mailmojo-widget | 3.32 | 29.80 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 224 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_mailmojo |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for MailMojo Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.18 ▼1.20 | 1.70 ▼0.21 | 44.69 ▲1.82 |
Dashboard /wp-admin | 2,222 ▲40 | 5.87 ▲1.01 | 110.54 ▲0.63 | 41.38 ▲0.82 |
Posts /wp-admin/edit.php | 2,101 ▲15 | 1.98 ▼0.03 | 42.20 ▲2.20 | 35.30 ▼4.79 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 18.08 ▲0.49 | 616.04 ▲16.88 | 50.48 ▼4.67 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.18 ▼0.02 | 103.10 ▼9.54 | 45.40 ▲1.55 |
MailMojo /wp-admin/options-general.php?page=mailmojo-widget | 805 | 2.07 | 25.75 | 36.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method MailMojoSettings::removeSettings() should not be called statically
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_mailmojo
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 116× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/mailmojo-widget/trunk/vendor/composer/installers/src/Composer/Installers/Installer.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mailmojo-widget/trunk/vendor/eliksir/mailmojo-php-sdk/test/Model/ContactsTest.php:55
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailmojo-widget/trunk/mailmojo-widget.php:19
- > PHP Notice
Undefined variable: instance in wp-content/plugins/mailmojo-widget/templates/widget-page.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/mailmojo-widget/trunk/vendor/composer/installers/tests/Composer/Installers/Test/CakePHPInstallerTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mailmojo-widget/vendor/eliksir/mailmojo-php-sdk/test/Model/SubscriberTest.php:55
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mailmojo-widget/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mailmojo-widget/trunk/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mailmojo-widget/trunk/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/mailmojo-widget/trunk/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php:4
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: mailmojo, email, mailing list, email marketing, subscribe...
mailmojo-widget/mailmojo.php 92% from 13 tests
The main file in "MailMojo Widget" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mailmojo-widget.php" instead of "mailmojo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin6,447 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 78 | 1,401 | 4,748 | 5,280 |
Markdown | 16 | 320 | 0 | 766 |
JSON | 3 | 0 | 0 | 209 |
PO File | 1 | 37 | 38 | 117 |
Bourne Shell | 1 | 13 | 8 | 31 |
XML | 1 | 2 | 0 | 23 |
YAML | 2 | 3 | 0 | 18 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 134 | |
▷ Abstract classes | 4 | 2.99% |
▷ Concrete classes | 130 | 97.01% |
▷ Final classes | 0 | 0.00% |
Methods | 1,126 | |
▷ Static methods | 160 | 14.21% |
▷ Public methods | 1,100 | 97.69% |
▷ Protected methods | 20 | 1.78% |
▷ Private methods | 6 | 0.53% |
Functions | 20 | |
▷ Named functions | 8 | 40.00% |
▷ Anonymous functions | 12 | 60.00% |
Constants | 26 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 26 | 100.00% |
▷ Public constants | 26 | 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
No PNG images were found in this plugin