Benchmarks
Plugin footprint 48% 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: ▲4.62MB] [CPU: ▲15.39ms] Passed 4 tests
Server-side resources used by Easy Newsletter Signups
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.50 ▲5.04 | 62.00 ▲22.36 |
Dashboard /wp-admin | 8.52 ▲5.17 | 68.92 ▲1.94 |
Posts /wp-admin/edit.php | 8.52 ▲5.16 | 68.88 ▲16.12 |
Add New Post /wp-admin/post-new.php | 9.00 ▲3.12 | 116.22 ▲21.12 |
Media Library /wp-admin/upload.php | 8.52 ▲5.29 | 65.87 ▲28.49 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.52 | 57.54 |
Server storage [IO: ▲3.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 214 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_ens_subscribers |
New WordPress options |
---|
theysaidso_admin_options |
fs_gdpr |
can_compress_scripts |
widget_theysaidso_widget |
fs_debug_mode |
widget_recent-posts |
fs_active_plugins |
fs_accounts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Easy Newsletter Signups: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.56 ▼0.79 | 9.14 ▲7.34 | 29.12 ▼11.08 |
Dashboard /wp-admin | 2,233 ▲45 | 5.87 ▲0.99 | 99.53 ▼7.45 | 72.44 ▲20.37 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 1.97 ▼0.07 | 37.62 ▼2.97 | 33.14 ▼7.00 |
Add New Post /wp-admin/post-new.php | 1,682 ▲163 | 22.11 ▼1.09 | 750.74 ▲76.92 | 52.54 ▼0.50 |
Media Library /wp-admin/upload.php | 1,412 ▲21 | 4.22 ▲0.08 | 104.08 ▼19.18 | 73.52 ▲23.24 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,065 | 1.73 | 24.92 | 27.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/easy-newsletter-signups/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- The uninstall procedure failed, leaving 1 table in the database
- wp_ens_subscribers
- This plugin does not fully uninstall, leaving 10 options in the database
- theysaidso_admin_options
- widget_recent-posts
- fs_gdpr
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- fs_active_plugins
- fs_debug_mode
- fs_accounts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: email capture, email subscribe, subscription, newsletter widget, email newsletter widget...
easy-newsletter-signups/easy-newsletter-signup.php 62% from 13 tests
This is the main PHP file of "Easy Newsletter Signups" version 1.0.4, 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:
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-newsletter-signups.php" instead of "easy-newsletter-signup.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected45,409 lines of code in 167 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 7,330 | 16,376 | 30,366 |
PO File | 10 | 5,550 | 6,667 | 12,010 |
Sass | 29 | 399 | 77 | 2,523 |
JavaScript | 4 | 54 | 65 | 247 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
CSS | 11 | 0 | 0 | 22 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 82.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,153 | |
▷ Static methods | 173 | 15.00% |
▷ Public methods | 813 | 70.51% |
▷ Protected methods | 15 | 1.30% |
▷ Private methods | 325 | 28.19% |
Functions | 99 | |
▷ Named functions | 99 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 127 | |
▷ Global constants | 102 | 80.31% |
▷ Class constants | 25 | 19.69% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
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 |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |