Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.23ms] Passed 4 tests
Analyzing server-side resources used by ActiveCampaign Postmark for Wordpress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 38.38 ▲1.86 |
Dashboard /wp-admin | 3.39 ▲0.04 | 46.52 ▼19.46 |
Posts /wp-admin/edit.php | 3.51 ▲0.14 | 49.26 ▲2.70 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.24 ▼20.56 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.35 ▲1.26 |
ActiveCampaign Postmark /wp-admin/options-general.php?page=ac_pm_admin | 3.31 | 343.86 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_postmark_log |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
postmark_settings |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ActiveCampaign Postmark for Wordpress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.16 ▼0.60 | 1.58 ▼0.20 | 38.79 ▼4.53 |
Dashboard /wp-admin | 2,196 ▲19 | 5.65 ▼0.02 | 82.80 ▼2.21 | 41.07 ▲2.63 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▼0.03 | 39.40 ▲0.83 | 36.31 ▲0.28 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.34 ▲0.21 | 658.78 ▼5.24 | 65.92 ▲6.31 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▲0.02 | 92.51 ▼22.32 | 39.82 ▼7.19 |
ActiveCampaign Postmark /wp-admin/options-general.php?page=ac_pm_admin | 1,136 | 2.27 | 27.79 | 27.20 |
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 were found after uninstall: 7 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- postmark_settings
- widget_recent-posts
Smoke tests 75% 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)
Good news, no errors were detected
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_json_encode() in wp-content/plugins/postmark-approved-wordpress-plugin/page-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postmark-approved-wordpress-plugin/postmark.php:412
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postmark-approved-wordpress-plugin/postmark.php:412
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/postmark-approved-wordpress-plugin/postmark-settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/postmark-approved-wordpress-plugin/includes/class-postmark-debug.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
6 plugin tags: email, smtp, wildbit, notifications, wp_mail...
postmark-approved-wordpress-plugin/postmark.php 92% from 13 tests
The principal PHP file in "ActiveCampaign Postmark for Wordpress" v. 1.20.0 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 ("postmark-approved-wordpress-plugin.php" instead of "postmark.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,019 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 210 | 221 | 878 |
JavaScript | 1 | 16 | 13 | 87 |
CSS | 1 | 12 | 0 | 54 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 6.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 9 | |
▷ Named functions | 9 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 7.79KB | 4.54KB | ▼ 41.76% |
assets/images/logo.png | 7.79KB | 4.54KB | ▼ 41.76% |