Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼9.76ms] Passed 4 tests
This is a short check of server-side resources used by Newsletter Subscription Form - User Subscriptions Form, Capture Email
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 36.79 ▲0.77 |
Dashboard /wp-admin | 3.43 ▲0.08 | 44.12 ▼13.98 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 45.53 ▲0.37 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 79.36 ▼26.18 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.42 ▲2.69 |
Server storage [IO: ▲4.79MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 73 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_nls_subscribers |
New WordPress options |
---|
weblizar_nls_madmimi_list |
widget_theysaidso_widget |
weblizar_nls_mailchimp_key |
theysaidso_admin_options |
db_upgraded |
weblizar_nls_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_nls_form_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Newsletter Subscription Form - User Subscriptions Form, Capture Email
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲34 | 14.11 ▼0.24 | 1.59 ▼0.11 | 38.75 ▼0.77 |
Dashboard /wp-admin | 2,210 ▲33 | 5.63 ▼0.21 | 84.67 ▼2.99 | 38.37 ▼3.94 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.96 ▼0.06 | 33.81 ▼1.41 | 35.57 ▲3.64 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.15 ▼0.09 | 654.65 ▼20.73 | 56.07 ▼1.98 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.18 ▼0.09 | 93.84 ▼8.47 | 43.82 ▼0.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_nls_subscribers
- Zombie WordPress options detected upon uninstall: 10 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- weblizar_nls_madmimi_list
- weblizar_nls_mailchimp_key
- weblizar_nls_options
- widget_recent-comments
- can_compress_scripts
- widget_nls_form_widget
- widget_recent-posts
Smoke tests 75% from 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 50% 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
Please fix the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/newsletter-subscription-form/options/themes/form-include/confirmation-mail-from.php on line 3
- > PHP Notice
Undefined variable: wl_nls_options in wp-content/plugins/newsletter-subscription-form/options/themes/css/custom-css-2.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/newsletter-subscription-form/options/themes/css/custom-css-2.php:34
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/newsletter-subscription-form/options/themes/form-include/confirmation-mail-from.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/newsletter-subscription-form/options/themes/css/custom-css-2.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/newsletter-subscription-form/options/themes/css/custom-css-1.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/newsletter-subscription-form/newsletter-subscription-form.php:21
- > PHP Notice
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 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #10 (Subscriber General Settings), #11 (Newsletter Subscription Form two with color scheme)
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
newsletter-subscription-form/newsletter-subscription-form.php 85% from 13 tests
"Newsletter Subscription Form - User Subscriptions Form, Capture Email" version 1.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)
- Domain Path: The domain path folder does not exist ("/options/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin42,369 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 1,610 | 60 | 15,890 |
JavaScript | 13 | 2,928 | 7,424 | 11,334 |
SVG | 3 | 0 | 12 | 8,777 |
PHP | 17 | 546 | 2,553 | 5,135 |
PO File | 2 | 1,383 | 2,538 | 1,233 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 60.20 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 215.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 210 | |
▷ Static methods | 10 | 4.76% |
▷ Public methods | 161 | 76.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 49 | 23.33% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.28MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
options/images/logo.png | 47.73KB | 14.85KB | ▼ 68.88% |
(invalid) options/images/screen-shot3.png | 60.46KB | 0.00KB | ▼ 100.00% |
options/images/screen-shot1.png | 42.08KB | 14.23KB | ▼ 66.18% |
(invalid) options/images/screen-shot4.png | 42.10KB | 0.00KB | ▼ 100.00% |
(invalid) options/images/screen-shot5.png | 33.93KB | 0.00KB | ▼ 100.00% |