Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.44ms] Passed 4 tests
This is a short check of server-side resources used by MailPlatform
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.89 ▼2.28 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.66 ▼5.27 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.91 ▲1.57 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.90 ▼7.69 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.47 ▲1.49 |
List Overview /wp-admin/admin.php?page=mailplatform-list-options | 3.40 | 42.68 |
API Settings /wp-admin/admin.php?page=mailplatform&type=settings | 3.40 | 34.97 |
XML Feed Settings /wp-admin/admin.php?page=mailplatform&type=feeds | 3.43 | 34.14 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 56 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_mailplatform |
New WordPress options |
---|
widget_recent-comments |
jal_db_version |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_mailplatform_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for MailPlatform
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲63 | 14.26 ▼0.13 | 1.71 ▼0.16 | 36.53 ▼7.40 |
Dashboard /wp-admin | 2,230 ▲53 | 5.62 ▼0.03 | 94.60 ▲4.54 | 40.69 ▼3.12 |
Posts /wp-admin/edit.php | 2,139 ▲42 | 2.20 ▲0.22 | 39.58 ▼0.01 | 35.10 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,564 ▲28 | 25.10 ▲1.91 | 619.81 ▼17.66 | 60.43 ▲8.62 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.17 ▲0.06 | 98.51 ▲2.04 | 40.69 ▼1.55 |
List Overview /wp-admin/admin.php?page=mailplatform-list-options | 937 | 1.92 | 30.16 | 62.58 |
API Settings /wp-admin/admin.php?page=mailplatform&type=settings | 943 | 1.77 | 28.28 | 33.63 |
XML Feed Settings /wp-admin/admin.php?page=mailplatform&type=feeds | 978 | 1.89 | 27.57 | 36.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- jal_db_version
- can_compress_scripts
- widget_mailplatform_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=mailplatform-list-options
- > Notice in wp-content/plugins/mailplatform/mailplatform.views.php+9
Undefined index: type
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailplatform&type=settings
- > Notice in wp-content/plugins/mailplatform/mailplatform.views.php+52
Undefined variable: success_text
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailplatform&type=settings
- > Notice in wp-content/plugins/mailplatform/mailplatform.views.php+54
Undefined variable: _SESSION
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailplatform&type=feeds
- > Notice in wp-content/plugins/mailplatform/mailplatform.views.php+143
Undefined variable: sidebarBox
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailplatform&type=feeds
- > Notice in wp-content/plugins/mailplatform/wraps/feed-settings.php+110
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mailplatform&type=feeds
- > Notice in wp-content/plugins/mailplatform/wraps/feed-settings.php+110
Trying to get property 'name' of non-object
SRP 0% 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
- 17× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/mailplatform/__MACOSX/._mailplatform.widget.php
- > /wp-content/plugins/mailplatform/__MACOSX/._mailplatform.php
- > /wp-content/plugins/mailplatform/__MACOSX/feeds/._woocommerce-feed.php
- > /wp-content/plugins/mailplatform/__MACOSX/_inc/._feed-functions.php
- > /wp-content/plugins/mailplatform/__MACOSX/wraps/._list.php
- > /wp-content/plugins/mailplatform/__MACOSX/._class.list-table.php
- > /wp-content/plugins/mailplatform/__MACOSX/feeds/._feed-header.php
- > /wp-content/plugins/mailplatform/__MACOSX/._mailplatform.views.php
- > /wp-content/plugins/mailplatform/__MACOSX/wraps/._delete.php
- > /wp-content/plugins/mailplatform/__MACOSX/wraps/._edit.php
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(mailplatform__PLUGIN_DIR_inc/feed-functions.php): failed to open stream: No such file or directory in wp-content/plugins/mailplatform/feeds/feed-header.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mailplatform/feeds/pages-feed.php:7
- > PHP Warning
Use of undefined constant mailplatform__PLUGIN_DIR - assumed 'mailplatform__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailplatform/feeds/feed-header.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/mailplatform/mailplatform.php:14
- > PHP Fatal error
require_once(): Failed opening required 'mailplatform__PLUGIN_DIR_inc/feed-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/mailplatform/wraps/feed-settings.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/mailplatform/wraps/edit.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mailplatform/feeds/woocommerce-feed.php:7
- > PHP Warning
Use of undefined constant mailplatform__PLUGIN_DIR - assumed 'mailplatform__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailplatform/wraps/feed-settings.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function redirect() in wp-content/plugins/mailplatform/wraps/delete.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function mailplatform_xmlrequest() in wp-content/plugins/mailplatform/wraps/list.php:5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Requires at least: Invalid plugin version format
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== mailplatform ===
) - Tested up to: Invalid plugin version format
mailplatform/mailplatform.php 85% from 13 tests
The primary PHP file in "MailPlatform" version 1.4.8-1... is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.4.8-1...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,371 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 276 | 114 | 1,260 |
CSS | 1 | 0 | 0 | 510 |
LESS | 1 | 85 | 0 | 465 |
JavaScript | 1 | 32 | 0 | 110 |
Markdown | 1 | 11 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) __MACOSX/content/._arrow.png | 0.22KB | 0.00KB | ▼ 100.00% |
(invalid) __MACOSX/content/._unchecked_checkbox.png | 0.22KB | 0.00KB | ▼ 100.00% |
content/mailplatform-logo.png | 16.87KB | 6.18KB | ▼ 63.34% |
content/arrow.png | 0.82KB | 0.91KB | 0.00% |
content/checked_checkbox.png | 12.97KB | 7.30KB | ▼ 43.67% |