Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.07ms] Passed 4 tests
Analyzing server-side resources used by Mailify
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.31 ▲4.69 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.88 ▼3.39 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.24 ▲0.12 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.47 ▼0.06 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.02 ▲3.04 |
Mailify /wp-admin/admin.php?page=sarbacane | 3.27 | 31.66 |
Connection /wp-admin/admin.php?page=wp_interconnection | 3.27 | 31.35 |
Configuration /wp-admin/admin.php?page=wp_lists_sync | 3.27 | 33.15 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 84 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_sd_updates |
wp_sd_subscribers |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
sarbacane_news_registration_button |
Browser metrics Passed 4 tests
Mailify: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 13.67 ▼0.72 | 1.91 ▲0.18 | 41.95 ▼4.65 |
Dashboard /wp-admin | 2,236 ▲45 | 4.93 ▼0.93 | 105.99 ▼2.02 | 77.66 ▲32.14 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.00 ▼0.00 | 37.84 ▲0.75 | 36.41 ▲3.63 |
Add New Post /wp-admin/post-new.php | 1,551 ▲27 | 23.05 ▼0.06 | 759.01 ▲114.54 | 62.64 ▲5.36 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.19 ▲0.00 | 93.92 ▼6.85 | 64.01 ▲21.77 |
Mailify /wp-admin/admin.php?page=sarbacane | 956 | 2.14 | 22.68 | 36.08 |
Connection /wp-admin/admin.php?page=wp_interconnection | 892 | 2.02 | 27.14 | 32.79 |
Configuration /wp-admin/admin.php?page=wp_lists_sync | 947 | 2.15 | 24.55 | 35.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_sd_subscribers
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailify/trunk/class.sarbacane-newsletterwidget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mailify/class.sarbacane-newsletterwidget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #2 in mailify/assets to your readme.txt
mailify/sarbacane.php 92% from 13 tests
The principal PHP file in "Mailify" v. 1.4.15 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mailify.php" instead of "sarbacane.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,249 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 103 | 32 | 1,927 |
CSS | 6 | 92 | 3 | 546 |
PO File | 2 | 188 | 234 | 528 |
JavaScript | 3 | 37 | 8 | 248 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 4 | 4.26% |
▷ Public methods | 56 | 59.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 38 | 40.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.29MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/images/cross.png | 1.02KB | 0.64KB | ▼ 37.27% |
trunk/images/bin.png | 1.60KB | 0.45KB | ▼ 72.16% |
images/arrow-down.png | 1.07KB | 0.25KB | ▼ 76.23% |
trunk/images/sd.png | 50.48KB | 11.58KB | ▼ 77.07% |
trunk/images/arrow-down.png | 1.07KB | 0.25KB | ▼ 76.23% |