Benchmarks
Plugin footprint 82% 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 gracefully, with no errors
Server metrics [RAM: ▲0.74MB] [CPU: ▲839.01ms] 50% from 4 tests
An overview of server-side resources used by Mailto Templates
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 1,121.64ms on /wp-admin/admin.php?page=dyn-mailto-documentation)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 839.01ms on /wp-admin/admin.php?page=dyn-mailto-documentation)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.73 | 976.04 ▲954.40 |
Dashboard /wp-admin | 3.85 ▲0.79 | 1,060.10 ▲1,022.90 |
Posts /wp-admin/edit.php | 3.90 ▲0.79 | 1,062.83 ▲1,032.84 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.71 | 1,059.32 ▲400.81 |
Media Library /wp-admin/upload.php | 3.73 ▲0.73 | 999.85 ▲977.94 |
Documentation /wp-admin/admin.php?page=dyn-mailto-documentation | 3.70 | 1,121.64 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 513 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Mailto Templates
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.56 ▼0.07 | 5.47 ▲0.46 | 74.68 ▼1.36 |
Dashboard /wp-admin | 2,930 ▲34 | 6.12 ▼0.02 | 113.28 ▼19.03 | 169.00 ▼6.15 |
Posts /wp-admin/edit.php | 2,743 ▲3 | 3.23 ▲0.01 | 62.24 ▼3.45 | 134.91 ▼6.10 |
Add New Post /wp-admin/post-new.php | 3,800 ▲59 | 17.97 ▼0.51 | 446.67 ▲5.19 | 156.26 ▼10.35 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.47 ▼0.07 | 141.49 ▼0.64 | 169.85 ▼15.29 |
Documentation /wp-admin/admin.php?page=dyn-mailto-documentation | 1,250 | 2.37 | 53.86 | 115.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 224× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/dynamic-mailto/vendor/twig/twig/src/Extension/OptimizerExtension.php:16
- > PHP Fatal error
Uncaught Error: Class 'Http\\Discovery\\ClassDiscovery' not found in wp-content/plugins/dynamic-mailto/vendor/php-http/discovery/src/StreamFactoryDiscovery.php:15
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/dynamic-mailto/vendor/twig/twig/src/Node/Expression/Test/NullTest.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Authentication' not found in wp-content/plugins/dynamic-mailto/vendor/php-http/message/src/Authentication/Chain.php:13
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/dynamic-mailto/vendor/twig/twig/src/TokenParser/ImportTokenParser.php:24
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\OptionsResolver\\Exception\\InvalidArgumentException' not found in wp-content/plugins/dynamic-mailto/vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/dynamic-mailto/vendor/twig/twig/src/Profiler/Node/LeaveProfileNode.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/dynamic-mailto/vendor/twig/twig/src/Node/SetNode.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Twig\odeVisitor\odeVisitorInterface' not found in wp-content/plugins/dynamic-mailto/vendor/twig/twig/src/NodeVisitor/AbstractNodeVisitor.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\TestExpression' not found in wp-content/plugins/dynamic-mailto/vendor/twig/twig/src/Node/Expression/Test/DivisiblebyTest.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=dyn-mailto-documentation
- > Network (severe)
wp-content/plugins/dyn-mailto/css/docs.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: template, email, link, dynamic, contact...
dynamic-mailto/dyn-mailto.php 92% from 13 tests
The main file in "Mailto Templates" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("dynamic-mailto.php" instead of "dyn-mailto.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin24,997 lines of code in 487 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 330 | 4,021 | 8,733 | 18,985 |
reStructuredText | 112 | 2,376 | 2,303 | 2,872 |
JSON | 5 | 0 | 0 | 1,563 |
Markdown | 28 | 783 | 0 | 1,176 |
JavaScript | 3 | 36 | 51 | 191 |
HTML | 3 | 15 | 0 | 86 |
YAML | 3 | 7 | 4 | 48 |
Bourne Shell | 1 | 6 | 1 | 43 |
CSS | 2 | 4 | 0 | 33 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 6.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 54 | |
Interfaces | 46 | |
Traits | 5 | |
Classes | 260 | |
▷ Abstract classes | 13 | 5.00% |
▷ Concrete classes | 247 | 95.00% |
▷ Final classes | 103 | 41.70% |
Methods | 1,306 | |
▷ Static methods | 114 | 8.73% |
▷ Public methods | 1,135 | 86.91% |
▷ Protected methods | 72 | 5.51% |
▷ Private methods | 99 | 7.58% |
Functions | 149 | |
▷ Named functions | 116 | 77.85% |
▷ Anonymous functions | 33 | 22.15% |
Constants | 69 | |
▷ Global constants | 8 | 11.59% |
▷ Class constants | 61 | 88.41% |
▷ Public constants | 61 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin