Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.21ms] Passed 4 tests
Analyzing server-side resources used by MailSign Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 48.47 ▲0.35 |
Dashboard /wp-admin | 3.36 ▲0.06 | 54.70 ▲2.81 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 51.52 ▼1.86 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.52 ▼22.12 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.24 ▲5.53 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for MailSign Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲188 | 14.52 ▲0.17 | 1.75 ▼0.17 | 43.50 ▼0.77 |
Dashboard /wp-admin | 2,355 ▲181 | 6.15 ▲0.50 | 105.77 ▲5.52 | 38.93 ▼2.84 |
Posts /wp-admin/edit.php | 2,280 ▲177 | 3.33 ▲1.31 | 49.43 ▲7.37 | 33.11 ▼4.66 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.57 ▲0.49 | 629.01 ▼21.19 | 36.86 ▼16.41 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.12 ▼0.06 | 80.46 ▼19.76 | 42.76 ▼2.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/mailsignmanager/MailSignManager-ShowSign.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailsignmanager/mailsignmanager.php:36
- > PHP Warning
Use of undefined constant MailSignManager_PLUGIN_DIR - assumed 'MailSignManager_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailsignmanager/MailSignManager-admin-panel.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mailsignmanager/MailSignManager-admin-panel.php:119
- > PHP Warning
Use of undefined constant MailSignManager_PLUGIN_DIR - assumed 'MailSignManager_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailsignmanager/MailSignManager-admin-panel.php on line 69
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailsignmanager/MailSignManager_Global.php:16
- > 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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: mail signature, mail
mailsignmanager/mailsignmanager.php Passed 13 tests
The main PHP script in "MailSign Manager" version 0.81 is automatically included on every request by WordPress
27 characters long description:
A manager of mail signature
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
Good job! No executable or dangerous file extensions detected415 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 132 | 195 | 276 |
JavaScript | 1 | 38 | 34 | 78 |
JSON | 2 | 0 | 0 | 53 |
CSS | 1 | 4 | 9 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/facebook.png | 0.64KB | 0.47KB | ▼ 26.22% |
img/linkedin.png | 0.62KB | 0.51KB | ▼ 16.51% |
img/delete.png | 2.62KB | 2.01KB | ▼ 23.39% |
img/wordpress.png | 0.96KB | 0.70KB | ▼ 26.69% |
img/googleplus.png | 0.87KB | 0.76KB | ▼ 11.74% |