Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.76ms] Passed 4 tests
Analyzing server-side resources used by Drip for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.05 ▼2.33 |
Dashboard /wp-admin | 3.35 ▲0.05 | 68.83 ▲22.06 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 46.99 ▼4.43 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 92.06 ▼2.30 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 34.06 ▲2.03 |
Drip /wp-admin/options-general.php?page=drip | 3.24 | 30.46 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
drip_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Drip for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.78 ▼0.61 | 4.65 ▲2.96 | 43.94 ▼4.09 |
Dashboard /wp-admin | 2,212 ▲24 | 4.80 ▼0.12 | 101.99 ▼16.87 | 38.83 ▼6.68 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.04 ▼0.06 | 34.36 ▼9.71 | 34.86 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,519 ▼17 | 17.63 ▼5.53 | 646.76 ▼22.46 | 54.99 ▼5.75 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.26 ▼0.04 | 99.34 ▼2.98 | 44.32 ▲2.19 |
Drip /wp-admin/options-general.php?page=drip | 828 | 2.19 | 25.38 | 36.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/email-marketing/views/tracking-code.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: account_id in wp-content/plugins/email-marketing/views/tracking-code.php on line 5
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/email-marketing/lib/constants.php on line 18
- > PHP Notice
Undefined variable: account_id in wp-content/plugins/email-marketing/views/tracking-code.php on line 10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/email-marketing/views/options.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/email-marketing/lib/constants.php:18
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/email-marketing/lib/constants.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/email-marketing/lib/constants.php:18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
5 plugin tags: email marketing, email newsletters, autoresponders, email campaign, marketing automation
email-marketing/drip.php 85% from 13 tests
This is the main PHP file of "Drip for WordPress" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("email-marketing.php" instead of "drip.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected302 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 48 | 176 | 168 |
CSS | 1 | 19 | 3 | 134 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 43.07KB | 12.65KB | ▼ 70.63% |
images/drip-icon-64.png | 2.21KB | 1.07KB | ▼ 51.52% |
screenshot-2.png | 112.42KB | 33.63KB | ▼ 70.08% |