Benchmarks
Plugin footprint 83% 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.19MB] [CPU: ▼154.04ms] Passed 4 tests
This is a short check of server-side resources used by WP Newsletter Subscription
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 34.66 ▲16.09 |
Dashboard /wp-admin | 2.92 ▼0.14 | 24.76 ▼21.04 |
Posts /wp-admin/edit.php | 2.98 ▼0.13 | 29.72 ▼11.11 |
Add New Post /wp-admin/post-new.php | 4.99 ▼0.44 | 69.27 ▼583.12 |
Media Library /wp-admin/upload.php | 2.95 ▼0.05 | 29.55 ▼0.87 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_newsletter_subscription |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Newsletter Subscription
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,841 ▲245 | 16.23 ▲0.31 | 13.16 ▲3.40 | 48.11 ▲0.46 |
Dashboard /wp-admin | 2,979 ▲45 | 5.89 ▼0.01 | 127.97 ▼10.52 | 127.29 ▲14.95 |
Posts /wp-admin/edit.php | 2,758 ▲19 | 2.58 ▼0.11 | 60.00 ▼6.10 | 85.83 ▼4.39 |
Add New Post /wp-admin/post-new.php | 1,629 ▲131 | 21.56 ▲2.73 | 267.83 ▼98.87 | 104.14 ▲4.56 |
Media Library /wp-admin/upload.php | 1,769 ▼41 | 4.97 ▼0.04 | 121.61 ▼18.37 | 115.85 ▲3.87 |
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
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_newsletter_subscription
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-newsletter-subscription/admin/panels/form.php:8
- > PHP Fatal error
require_once(): Failed opening required 'wns_pathlib/mailchimp/MCAPI.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-newsletter-subscription/admin/panels/integration.php on line 2
- > PHP Warning
require_once(wns_pathlib/mailchimp/MCAPI.class.php): failed to open stream: No such file or directory in wp-content/plugins/wp-newsletter-subscription/admin/panels/integration.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-newsletter-subscription/templates/subscriptionform.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-newsletter-subscription/admin/panels/options.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-newsletter-subscription/admin/panels/design.php:2
- > PHP Warning
Use of undefined constant wns_path - assumed 'wns_path' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-newsletter-subscription/admin/panels/integration.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-newsletter-subscription/admin/panels/social.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function newsletter_subscription_get_option() in wp-content/plugins/wp-newsletter-subscription/functions/hook-actions.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-newsletter-subscription/admin/panels/subscribe.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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 your attention:
- Donate link: Invalid url: ""
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
wp-newsletter-subscription/index.php 92% from 13 tests
The main file in "WP Newsletter Subscription" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-newsletter-subscription.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,475 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 309 | 173 | 1,159 |
SVG | 1 | 0 | 0 | 229 |
JavaScript | 2 | 15 | 6 | 51 |
CSS | 2 | 21 | 5 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.57 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 90.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.43% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
formsetting.png | 45.70KB | 19.06KB | ▼ 58.29% |
setting.png | 26.87KB | 10.45KB | ▼ 61.11% |
fullwidget.png | 9.60KB | 3.99KB | ▼ 58.49% |
shortcode.png | 7.86KB | 3.72KB | ▼ 52.70% |
Widget.png | 6.75KB | 3.38KB | ▼ 49.96% |