Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.17ms] Passed 4 tests
Analyzing server-side resources used by MailArchiver
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.14 ▼0.86 |
Dashboard /wp-admin | 3.49 ▲0.15 | 48.37 ▼8.91 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 52.06 ▲9.86 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 94.62 ▲0.39 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.25 ▲4.69 |
MailArchiver /wp-admin/admin.php?page=mailarchiver-settings | 4.74 | 52.97 |
Server storage [IO: ▲2.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 938 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
MailArchiver: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲47 | 14.36 ▼0.30 | 1.76 ▼0.19 | 37.04 ▼4.37 |
Dashboard /wp-admin | 2,228 ▲54 | 5.57 ▼0.10 | 89.60 ▲4.12 | 39.82 ▲0.74 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.00 ▲0.03 | 42.22 ▲6.73 | 34.06 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.76 ▲0.50 | 654.31 ▼8.16 | 55.77 ▲6.33 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.28 ▲0.12 | 94.39 ▼3.99 | 43.02 ▼2.66 |
MailArchiver /wp-admin/admin.php?page=mailarchiver-settings | 1,580 | 1.72 | 26.28 | 34.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mailarchiver/public/partials/mailarchiver-public-display.php
- 413× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Elasticsearch\\ConnectionPool\\Selectors\\SelectorInterface' not found in wp-content/plugins/mailarchiver/includes/libraries/elasticsearch/ConnectionPool/Selectors/StickyRoundRobinSelector.php:18
- > PHP Fatal error
Uncaught Error: Class 'MAMonolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/mailarchiver/includes/libraries/monolog/Handler/SqsHandler.php:23
- > PHP Fatal error
Uncaught Error: Class 'Elasticsearch\\Endpoints\\AbstractEndpoint' not found in wp-content/plugins/mailarchiver/includes/libraries/elasticsearch/Endpoints/Cat/Master.php:19
- > PHP Fatal error
Uncaught Error: Class 'Elasticsearch\\Endpoints\\AbstractEndpoint' not found in wp-content/plugins/mailarchiver/includes/libraries/elasticsearch/Endpoints/Indices/Stats.php:19
- > PHP Fatal error
Uncaught Error: Interface 'MAMonolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/mailarchiver/includes/formatters/class-fluentformatter.php:26
- > PHP Fatal error
Uncaught Error: Interface 'MAMonolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/mailarchiver/includes/libraries/monolog/Processor/HostnameProcessor.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/mailarchiver/includes/libraries/guzzlehttp/Psr7/FnStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'Elasticsearch\\Endpoints\\AbstractEndpoint' not found in wp-content/plugins/mailarchiver/includes/libraries/elasticsearch/Endpoints/Indices/GetMapping.php:19
- > PHP Fatal error
Uncaught Error: Interface 'MAGuzzleHttp\\Stream\\StreamInterface' not found in wp-content/plugins/mailarchiver/includes/libraries/guzzlehttp/Stream/CachingStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/mailarchiver/includes/libraries/guzzlehttp/Psr7/Response.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: email log, email, log, archive, mail
mailarchiver/mailarchiver.php Passed 13 tests
The principal PHP file in "MailArchiver" v. 2.12.0 is loaded by WordPress automatically on each request
63 characters long description:
Automatically archive and store all emails sent from your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin45,940 lines of code in 900 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 599 | 8,146 | 25,911 | 41,068 |
SVG | 283 | 0 | 0 | 4,167 |
Markdown | 7 | 210 | 0 | 553 |
CSS | 5 | 14 | 1 | 83 |
JSON | 2 | 0 | 0 | 53 |
JavaScript | 4 | 0 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 58 | |
Interfaces | 42 | |
Traits | 25 | |
Classes | 504 | |
▷ Abstract classes | 15 | 2.98% |
▷ Concrete classes | 489 | 97.02% |
▷ Final classes | 23 | 4.70% |
Methods | 3,237 | |
▷ Static methods | 434 | 13.41% |
▷ Public methods | 2,525 | 78.00% |
▷ Protected methods | 328 | 10.13% |
▷ Private methods | 384 | 11.86% |
Functions | 215 | |
▷ Named functions | 64 | 29.77% |
▷ Anonymous functions | 151 | 70.23% |
Constants | 183 | |
▷ Global constants | 51 | 27.87% |
▷ Class constants | 132 | 72.13% |
▷ Public constants | 97 | 73.48% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin