Benchmarks
Plugin footprint 83% 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: ▲0.87MB] [CPU: ▲3.97ms] Passed 4 tests
Analyzing server-side resources used by Subscribe2 - Form, Email Subscribers & Newsletters
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.72 | 43.58 ▼1.47 |
Dashboard /wp-admin | 4.24 ▲0.93 | 54.56 ▲3.02 |
Posts /wp-admin/edit.php | 4.28 ▲0.92 | 57.42 ▲6.31 |
Add New Post /wp-admin/post-new.php | 6.83 ▲0.94 | 104.64 ▲11.59 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 42.60 ▲8.03 |
Send Email /wp-admin/admin.php?page=s2_posts | 4.11 | 43.42 |
Your Subscriptions /wp-admin/admin.php?page=s2 | 4.25 | 41.32 |
Subscribers /wp-admin/admin.php?page=s2_tools | 4.36 | 44.23 |
Settings /wp-admin/admin.php?page=s2_settings | 4.43 | 43.02 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 64 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_subscribe2 |
New WordPress options |
---|
subscribe2_options |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_s2_form_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Subscribe2 - Form, Email Subscribers & Newsletters
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲108 | 14.67 ▲0.33 | 1.65 ▼0.19 | 38.28 ▼5.85 |
Dashboard /wp-admin | 2,260 ▲83 | 5.55 ▼0.09 | 97.70 ▼1.64 | 84.77 ▲40.32 |
Posts /wp-admin/edit.php | 2,137 ▲40 | 1.96 ▲0.01 | 39.04 ▲0.91 | 34.78 ▼4.52 |
Add New Post /wp-admin/post-new.php | 6,392 ▲4,862 | 28.76 ▲5.76 | 881.16 ▲256.20 | 37.52 ▼23.53 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.13 ▼0.14 | 92.63 ▼3.65 | 73.56 ▲31.03 |
Send Email /wp-admin/admin.php?page=s2_posts | 981 | 2.14 | 25.85 | 35.81 |
Your Subscriptions /wp-admin/admin.php?page=s2 | 903 | 2.19 | 27.85 | 31.97 |
Subscribers /wp-admin/admin.php?page=s2_tools | 1,176 | 2.17 | 26.03 | 31.16 |
Settings /wp-admin/admin.php?page=s2_settings | 1,166 | 2.10 | 28.51 | 31.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_s2_form_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/subscribe2/classes/class-s2-list-table.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/subscribe2/classes/class-s2-form-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/subscribe2/gutenberg/gutenberg-translations.php:5
- > PHP Fatal error
Uncaught Error: Class 'S2_Core' not found in wp-content/plugins/subscribe2/classes/class-s2-admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/subscribe2/classes/class-s2-counter-widget.php:6
- > PHP Fatal error
require_once(): Failed opening required 'S2PATHtraits/ShortcodeTrait.php' (include_path='.:/usr/share/php') in wp-content/plugins/subscribe2/classes/class-s2-core.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/subscribe2/include/options.php:144
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/subscribe2/subscribe2.php:36
- > PHP Notice
Undefined index: wp_version in wp-content/plugins/subscribe2/subscribe2.php on line 34
- > PHP Warning
Use of undefined constant S2PATH - assumed 'S2PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/subscribe2/classes/class-s2-core.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in subscribe2/assets to your readme.txt
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
subscribe2/subscribe2.php Passed 13 tests
"Subscribe2 - Form, Email Subscribers & Newsletters" version 10.42's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
Notifies an email list when new entries are posted.
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
There were no executable files found in this plugin8,938 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 1,805 | 2,265 | 7,607 |
JavaScript | 24 | 63 | 63 | 1,033 |
Markdown | 1 | 70 | 0 | 196 |
CSS | 3 | 24 | 0 | 81 |
JSON | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 63.39 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 352.00 |
Average method complexity | 5.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 276 | |
▷ Static methods | 2 | 0.72% |
▷ Public methods | 226 | 81.88% |
▷ Protected methods | 6 | 2.17% |
▷ Private methods | 44 | 15.94% |
Functions | 9 | |
▷ Named functions | 2 | 22.22% |
▷ Anonymous functions | 7 | 77.78% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/email-edit.png | 0.74KB | 0.83KB | 0.00% |
include/s2-marker.png | 1.13KB | 0.83KB | ▼ 26.17% |
include/s2-button.png | 0.40KB | 0.32KB | ▼ 19.46% |