Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/sc-popup-subscriber-form/sc-popup-subscriber-form.php+18
Use of undefined constant SCPopupSubscriber - assumed 'SCPopupSubscriber' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼58.82ms] Passed 4 tests
Server-side resources used by SC Popup Subscriber Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.66 ▼47.71 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.90 ▼42.71 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.98 ▼42.78 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.78 ▼102.07 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.69 ▼29.14 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
sc_popup_subscriber_form_options |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for SC Popup Subscriber Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲255 | 13.89 ▼0.50 | 10.66 ▲8.76 | 51.05 ▲10.18 |
Dashboard /wp-admin | 2,213 ▲25 | 4.88 ▼0.03 | 100.79 ▼4.79 | 45.82 ▲1.66 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▼0.00 | 36.97 ▼5.26 | 33.59 ▼3.00 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.61 ▼0.01 | 707.38 ▲58.00 | 57.15 ▲0.38 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.27 ▲0.05 | 97.87 ▼0.32 | 43.07 ▲1.07 |
SC Popup Subscriber /wp-admin/sc-popup-subscriber-form.php | 26 | 0.44 | 0.06 | 14.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/sc-popup-subscriber-form/sc-popup-subscriber-form.php+18
Use of undefined constant SCPopupSubscriber - assumed 'SCPopupSubscriber' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- sc_popup_subscriber_form_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sc-popup-subscriber-form/sc-popup-subscriber-form.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/sc-popup-subscriber-form/sc-popup-subscriber-options.php:86
- > PHP Notice
Undefined variable: action_url in wp-content/plugins/sc-popup-subscriber-form/sc-popup-subscriber-options.php on line 84
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/sc-popup-subscriber-form.php
- > Network (severe)
wp-admin/sc-popup-subscriber-form.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin Panel Setting), #2 (SC Popup Subscriber Form)
sc-popup-subscriber-form/sc-popup-subscriber-form.php Passed 13 tests
The entry point to "SC Popup Subscriber Form" version 1.2 is a PHP file that has certain tags in its header comment area
35 characters long description:
Popup Subscriber form of Feedburner
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
Everything looks great! No dangerous files found in this plugin389 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 20 | 13 | 333 |
CSS | 1 | 5 | 3 | 56 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 100.82KB | 32.86KB | ▼ 67.40% |
images/envelope.png | 18.64KB | 9.28KB | ▼ 50.24% |
screenshot-1.png | 40.68KB | 14.36KB | ▼ 64.71% |
images/close-buttons-sprite.png | 7.98KB | 4.05KB | ▼ 49.22% |
images/input-bg.png | 1.43KB | 0.41KB | ▼ 71.40% |