Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.67MB] [CPU: ▼278.43ms] 75% from 4 tests
Analyzing server-side resources used by Send Emails without SMTP - Campation PostOffice
Please fix the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.67MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.18 ▲5.67 | 85.73 ▲34.44 |
Dashboard /wp-admin | 9.17 ▲5.76 | 66.44 ▲31.41 |
Posts /wp-admin/edit.php | 9.31 ▲5.67 | 69.42 ▲31.72 |
Add New Post /wp-admin/post-new.php | 12.56 ▲5.59 | 133.63 ▼1,199.39 |
Media Library /wp-admin/upload.php | 9.17 ▲5.87 | 52.50 ▲22.56 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 9.22 | 55.47 |
Server storage [IO: ▲12.02MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 600 new files
Database: 17 new tables, 59 new options
New tables |
---|
wp_cptn_po_dmarc_report |
wp_cptn_po_mailserver_mxdomain |
wp_cptn_po_queue |
wp_cptn_po_mailserver |
wp_cptn_po_plugin_mailcategory |
wp_cptn_po_option |
wp_cptn_po_sender_domain |
wp_cptn_po_sender_domain_mailserver |
wp_cptn_po_dmarc_record |
wp_cptn_po_dmarc_result |
... |
New WordPress options |
---|
cptn_po_opt_recipient_switch_nomx |
cptn_opt_automation_days |
cptn_po_opt_recipient_switch_malf |
cptn_po_scret_key |
fs_accounts |
cptn_po_opt_cockpit_switch_general |
cptn_po_opt_envelope_account_port |
cptn_po_opt_recipient_switch_ok |
cptn_po_opt_envelope_account_password |
cptn_opt_timezone_server |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Send Emails without SMTP - Campation PostOffice
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▼815 | 15.37 ▼0.28 | 2.19 ▼4.06 | 2.18 ▼0.06 |
Dashboard /wp-admin | 2,130 ▼731 | 5.88 ▼0.28 | 93.09 ▼41.37 | 213.86 ▲53.13 |
Posts /wp-admin/edit.php | 2,085 ▼603 | 2.90 ▼0.33 | 34.40 ▼28.25 | 180.26 ▲42.61 |
Add New Post /wp-admin/post-new.php | 1,701 ▲11 | 21.18 ▲0.70 | 412.61 ▼22.84 | 172.60 ▲9.78 |
Media Library /wp-admin/upload.php | 1,441 ▼254 | 5.49 ▲0.03 | 96.77 ▼44.50 | 255.53 ▲63.87 |
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius | 1,047 | 2.37 | 25.94 | 134.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/campation-postoffice/freemius/includes/class-freemius.php+8911
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_debug_mode
- fs_gdpr
- fs_active_plugins
- fs_accounts
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 114× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/campation-postoffice/includes/Net/DNS2/RR/EUI64.php:31
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/campation-postoffice/includes/Net/DNS2/RR/WKS.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/campation-postoffice/backend/assets/ajax/domains-ajax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/campation-postoffice/includes/cptn-po-wp-mail.php:7
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/campation-postoffice/includes/Net/DNS2/RR/NAPTR.php:40
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/campation-postoffice/includes/Net/DNS2/RR/LOC.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/campation-postoffice/cron/includes/cptn-po-cron-message-slave.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/campation-postoffice/backend/assets/ajax/recipients-ajax.php:2
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/campation-postoffice/includes/Net/DNS2/RR/SSHFP.php:33
- > PHP Fatal error
Uncaught Error: Class 'Net_DNS2_RR' not found in wp-content/plugins/campation-postoffice/includes/Net/DNS2/RR/L32.php:31
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
campation-postoffice/campation-postoffice.php Passed 13 tests
"Send Emails without SMTP - Campation PostOffice" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
The ALL-IN-ONE solution for high-end email - 10 x faster than SMTP!
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin103,869 lines of code in 490 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 264 | 12,216 | 26,930 | 55,028 |
JavaScript | 123 | 5,137 | 10,254 | 34,779 |
PO File | 3 | 3,005 | 3,267 | 6,146 |
CSS | 81 | 303 | 435 | 6,090 |
SVG | 4 | 6 | 3 | 865 |
LESS | 4 | 26 | 39 | 551 |
Sass | 2 | 27 | 2 | 134 |
JSON | 2 | 0 | 0 | 80 |
HTML | 1 | 5 | 7 | 70 |
YAML | 3 | 8 | 0 | 57 |
TypeScript | 1 | 20 | 73 | 25 |
Markdown | 1 | 8 | 0 | 22 |
XML | 1 | 0 | 0 | 22 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,029)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 40.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,029.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 129 | |
▷ Abstract classes | 3 | 2.33% |
▷ Concrete classes | 126 | 97.67% |
▷ Final classes | 0 | 0.00% |
Methods | 1,542 | |
▷ Static methods | 194 | 12.58% |
▷ Public methods | 936 | 60.70% |
▷ Protected methods | 250 | 16.21% |
▷ Private methods | 356 | 23.09% |
Functions | 288 | |
▷ Named functions | 283 | 98.26% |
▷ Anonymous functions | 5 | 1.74% |
Constants | 329 | |
▷ Global constants | 125 | 37.99% |
▷ Class constants | 204 | 62.01% |
▷ Public constants | 204 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
26 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
backend/vendor/datatables-1.11.3/media/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
backend/vendor/datatables-1.11.3/media/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
img/campation-postoffice-logo-opacity.png | 7.83KB | 8.25KB | 0.00% |
img/campation-postoffice-logo.png | 12.47KB | 13.19KB | 0.00% |