Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.07ms] Passed 4 tests
An overview of server-side resources used by Free MailClient FMC
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.50 ▼0.59 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.79 ▼4.99 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.15 ▼4.56 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 98.46 ▼10.15 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.72 ▲3.14 |
Mail /wp-admin/admin.php?page=mailbox | 3.25 | 36.24 |
Init /wp-admin/admin.php?page=mailinit | 3.24 | 34.22 |
Documentation /wp-admin/admin.php?page=maildoc | 3.24 | 31.33 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Free MailClient FMC
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲40 | 14.24 ▲0.23 | 1.91 ▼0.09 | 44.91 ▲4.46 |
Dashboard /wp-admin | 2,231 ▲57 | 5.56 ▲0.02 | 84.47 ▼11.02 | 38.23 ▼7.43 |
Posts /wp-admin/edit.php | 2,133 ▲30 | 2.03 ▲0.03 | 39.34 ▲1.07 | 35.01 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 18.10 ▼4.96 | 614.61 ▼62.00 | 64.88 ▲6.93 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.21 ▲0.02 | 99.53 ▼11.57 | 43.86 ▼1.47 |
Mail /wp-admin/admin.php?page=mailbox | 758 | 1.51 | 8.24 | 26.13 |
Init /wp-admin/admin.php?page=mailinit | 850 | 2.02 | 25.10 | 27.36 |
Documentation /wp-admin/admin.php?page=maildoc | 1,150 | 2.12 | 23.53 | 32.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant MAILCLIENT_PLUGIN_URL - assumed 'MAILCLIENT_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailclient/mailclient_doc.php on line 21
- > PHP Warning
include_once(MAILCLIENT_PLUGIN_DIR/include/control_mailclient.php): failed to open stream: No such file or directory in wp-content/plugins/mailclient/mailclient_init.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mailclient/mailclient_no_imap.php:4
- > PHP Warning
Use of undefined constant MAILCLIENT_PLUGIN_URL - assumed 'MAILCLIENT_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailclient/mailclient_doc.php on line 28
- > PHP Fatal error
Uncaught Error: Call to a member function get_username() on null in wp-content/plugins/mailclient/mailclient_delete.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mailclient/mailclient_doc.php:45
- > PHP Warning
Use of undefined constant MAILCLIENT_PLUGIN_URL - assumed 'MAILCLIENT_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailclient/mailclient_doc.php on line 31
- > PHP Warning
Use of undefined constant MAILCLIENT_PLUGIN_DIR - assumed 'MAILCLIENT_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailclient/mailclient_init.php on line 2
- > PHP Warning
include_once(): Failed opening 'MAILCLIENT_PLUGIN_DIR/include/control_mailclient.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mailclient/mailclient_init.php on line 2
- > PHP Notice
Undefined variable: mailControl in wp-content/plugins/mailclient/mailclient_delete.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== mailclient ===
)
mailclient/oMailClient.php 92% from 13 tests
"Free MailClient FMC" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("mailclient.php" instead of "oMailClient.php")
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
No dangerous file extensions were detected1,473 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 124 | 578 | 1,074 |
PO File | 3 | 261 | 498 | 219 |
CSS | 1 | 12 | 20 | 180 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 36.25 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 68.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 31.03% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.78MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/inbox.png | 27.74KB | 13.49KB | ▼ 51.37% |
css/e-mail.png | 79.63KB | 31.01KB | ▼ 61.06% |
images/Createmailclient_Demonstratie.png | 330.57KB | 129.63KB | ▼ 60.79% |
images/edit_25.png | 0.38KB | 0.25KB | ▼ 32.99% |
images/delete.png | 1.96KB | 1.68KB | ▼ 14.14% |