Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.60ms] Passed 4 tests
A check of server-side resources used by E-Newsletter Plugin für PROFFIX
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.04 ▼6.49 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.94 ▲0.41 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.69 ▼0.03 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 97.16 ▲0.46 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.56 ▼0.27 |
PROFFIX E-Newsletter /wp-admin/options-general.php?page=proffixnewsletter-admin | 3.26 | 33.28 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_widgetproffixnewsletter |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for E-Newsletter Plugin für PROFFIX
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲152 | 14.02 ▼0.37 | 4.90 ▲3.27 | 38.05 ▲1.20 |
Dashboard /wp-admin | 2,212 ▲23 | 5.79 ▲0.86 | 97.53 ▼23.69 | 39.86 ▼3.87 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.16 ▲0.14 | 39.54 ▲3.80 | 34.37 ▲3.13 |
Add New Post /wp-admin/post-new.php | 1,547 ▲27 | 18.18 ▼5.19 | 612.45 ▼73.89 | 63.37 ▼5.19 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.20 ▼0.02 | 96.88 ▲2.93 | 42.09 ▼1.45 |
PROFFIX E-Newsletter /wp-admin/options-general.php?page=proffixnewsletter-admin | 1,026 | 2.18 | 22.96 | 30.37 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_widgetproffixnewsletter
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: attr in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5
- > PHP Notice
Undefined variable: attr in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5
- > PHP Notice
Undefined variable: attr in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/e-newsletter-proffix/proffix-newsletter.php:175
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/e-newsletter-proffix/views/admin_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/e-newsletter-proffix/views/widget.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/e-newsletter-proffix/views/widget_settings.php:12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/e-newsletter-proffix/views/widget.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: proffix, e-newsletter, subscription, newsletter, widget...
e-newsletter-proffix/proffix-newsletter.php 77% from 13 tests
The main PHP file in "E-Newsletter Plugin für PROFFIX" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("e-newsletter-proffix.php" instead of "proffix-newsletter.php")
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 plugin494 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 106 | 33 | 414 |
JavaScript | 2 | 10 | 1 | 60 |
PO File | 1 | 0 | 0 | 17 |
CSS | 2 | 0 | 2 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 2 | 11.11% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
There are no PNG files in this plugin