Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▲2.51ms] Passed 4 tests
A check of server-side resources used by SpeakOut! Email Petitions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 38.80 ▼3.17 |
Dashboard /wp-admin | 3.72 ▲0.42 | 57.60 ▲6.53 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 54.89 ▲6.57 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.41 | 99.21 ▲0.85 |
Media Library /wp-admin/upload.php | 3.65 ▲0.41 | 39.61 ▲5.82 |
Settings /wp-admin/admin.php?page=dk_speakout_settings | 3.82 | 35.21 |
Signatures /wp-admin/admin.php?page=dk_speakout_signatures | 4.13 | 37.72 |
Edit petition /wp-admin/admin.php?page=dk_speakout_addnew_page | 4.02 | 38.69 |
Upgrade to Pro /wp-admin/admin.php?page=dk_speakout_upgrade | 3.62 | 31.59 |
Shortcodes /wp-admin/admin.php?page=dk_speakout_top | 4.00 | 38.00 |
Server storage [IO: ▲8.84MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 636 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_dk_speakout_signatures |
wp_dk_speakout_petitions |
New WordPress options |
---|
dk_speakout_license_key_verified |
dk_speakout_options |
widget_dk_speakout_petition_widget |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
dk_speakout_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SpeakOut! Email Petitions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲96 | 14.04 ▼0.30 | 2.16 ▲0.43 | 38.37 ▼5.87 |
Dashboard /wp-admin | 2,241 ▲61 | 5.59 ▼0.04 | 92.89 ▼7.39 | 39.68 ▼2.52 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.03 ▲0.08 | 40.17 ▼2.49 | 35.60 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,561 ▲26 | 23.15 ▼1.88 | 589.69 ▼17.40 | 50.57 ▼21.37 |
Media Library /wp-admin/upload.php | 1,443 ▲43 | 4.18 ▼0.00 | 93.77 ▼7.19 | 41.86 ▼7.56 |
Settings /wp-admin/admin.php?page=dk_speakout_settings | 2,200 | 2.11 | 44.66 | 47.87 |
Signatures /wp-admin/admin.php?page=dk_speakout_signatures | 1,062 | 2.06 | 27.62 | 31.08 |
Edit petition /wp-admin/admin.php?page=dk_speakout_addnew_page | 1,760 | 1.98 | 31.22 | 35.48 |
Upgrade to Pro /wp-admin/admin.php?page=dk_speakout_upgrade | 855 | 2.06 | 26.97 | 28.54 |
Shortcodes /wp-admin/admin.php?page=dk_speakout_top | 966 | 2.07 | 24.35 | 28.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=dk_speakout_settings
- > Notice in wp-content/plugins/speakout/includes/class.settings.php+119
Undefined index: g_recaptcha_secret_key
- > GET request to /wp-admin/admin.php?page=dk_speakout_settings
- > Notice in wp-content/plugins/speakout/includes/class.settings.php+121
Undefined index: hcaptcha_site_key
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
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/speakout/languages/index.php
- > /wp-content/plugins/speakout/includes/settings.view.php
- > /wp-content/plugins/speakout/includes/upgrade.view.php
- 63× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/speakout/speakout-email-petitions.php on line 34
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/speakout/includes/mailchimp/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/speakout/includes/mailchimp/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/speakout/includes/mailchimp/guzzlehttp/promises/src/RejectedPromise.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/speakout/includes/mailchimp/guzzlehttp/psr7/src/Request.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/speakout/includes/install.php:255
- > PHP Fatal error
Uncaught Error: Class 'MailchimpMarketing\\Configuration' not found in wp-content/plugins/speakout/includes/mailchimp/mailchimp/marketing/lib/ApiClient.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/speakout/includes/mailchimp/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/speakout/includes/petitions.view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/speakout/includes/ajax.php:6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Public-facing petition form), #2 (Form for creating and editing email petitions), #3 (Table view of existing petitions), #4 (Table view of collected signatures), #5 (Plugin settings screen), #6 (Sidebar widget), #7 (Pop-up Petition form (widget)), #8 (Email confirmation screen)
speakout/speakout-email-petitions.php 85% from 13 tests
The entry point to "SpeakOut! Email Petitions" version 4.3.3.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("speakout.php" instead of "speakout-email-petitions.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 345 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin113,233 lines of code in 523 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 181 | 9,884 | 10,152 | 52,469 |
PO File | 33 | 15,203 | 19,598 | 34,735 |
SVG | 262 | 4 | 2 | 17,556 |
Markdown | 18 | 1,267 | 0 | 3,962 |
JavaScript | 6 | 303 | 268 | 1,761 |
CSS | 5 | 48 | 94 | 1,529 |
JSON | 13 | 0 | 0 | 1,144 |
Bourne Shell | 1 | 13 | 8 | 31 |
XML | 1 | 1 | 0 | 20 |
YAML | 2 | 0 | 0 | 17 |
make | 1 | 4 | 0 | 9 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,909)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 112)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 64.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,909.00 |
Average method complexity | 6.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 112.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 117 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 117 | 100.00% |
▷ Final classes | 34 | 29.06% |
Methods | 1,759 | |
▷ Static methods | 166 | 9.44% |
▷ Public methods | 1,292 | 73.45% |
▷ Protected methods | 347 | 19.73% |
▷ Private methods | 120 | 6.82% |
Functions | 164 | |
▷ Named functions | 64 | 39.02% |
▷ Anonymous functions | 100 | 60.98% |
Constants | 64 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 64 | 100.00% |
▷ Public constants | 53 | 82.81% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
23 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bg-progressbar-back-admin.png | 0.09KB | 0.13KB | 0.00% |
images/lock.png | 0.40KB | 0.39KB | ▼ 2.66% |
images/icon-emailpetitions-32.png | 1.57KB | 0.88KB | ▼ 44.23% |
images/button-facebook.png | 2.11KB | 1.78KB | ▼ 15.38% |
images/bg-button-facebook.png | 0.89KB | 1.40KB | 0.00% |