Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼287.30ms] Passed 4 tests
Server-side resources used by WP Post Email Notification
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.11 | 50.67 ▼2.31 |
Dashboard /wp-admin | 3.51 ▲0.11 | 34.57 ▲1.03 |
Posts /wp-admin/edit.php | 3.80 ▲0.16 | 42.88 ▲4.04 |
Add New Post /wp-admin/post-new.php | 7.05 ▲0.08 | 95.31 ▼1,142.91 |
Media Library /wp-admin/upload.php | 3.46 ▲0.16 | 25.31 ▼5.01 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 285 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_wppen_jobs |
wp_wppen_subscribers |
New WordPress options |
---|
widget_subscriptionwidget |
wppen_numberOfEmailsSendPerRequest |
wppen_jobBatchTimeWait |
wppen_emailSubject |
wppen_jobInitialTimeWait |
wppen_emailBody |
Browser metrics Passed 4 tests
A check of browser resources used by WP Post Email Notification
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,832 ▲88 | 16.49 ▲0.52 | 11.01 ▲3.00 | 2.64 ▲0.39 |
Dashboard /wp-admin | 2,912 ▲58 | 6.14 ▼0.14 | 115.19 ▼12.29 | 154.27 ▼1.81 |
Posts /wp-admin/edit.php | 2,711 ▲20 | 3.23 ▼0.01 | 62.82 ▼0.63 | 136.68 ▼6.73 |
Add New Post /wp-admin/post-new.php | 1,674 ▼33 | 16.01 ▼2.19 | 402.48 ▼0.99 | 150.41 ▼5.86 |
Media Library /wp-admin/upload.php | 1,718 ▲17 | 5.48 ▼0.05 | 137.52 ▼0.30 | 182.64 ▼5.01 |
Uninstaller [IO: ▲1.11MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the followingThis plugin does not fully uninstall, leaving 2 tables in the database This plugin does not fully uninstall, leaving 2 options in the database
- Uninstall procedure had uncaught errors
- > Error in wp-content/plugins/wp-post-email-notification/src/Model/JobModel.php+23
Uncaught ArgumentCountError: Too few arguments to function Nstaeger\WpPostEmailNotification\Model\JobModel::__construct(), 1 passed in wp-content/plugins/wp-post-email-notification/uninstall.php on line 24 and exactly 2 expected in wp-content/plugins/wp-post-email-notification/src/Model/JobModel.php:23
Stack trace:
#0 wp-content/plugins/wp-post-email-notification/uninstall.php(24): Nstaeger\WpPostEmailNotification\Model\JobModel->__construct()
#1 wp-admin/includes/plugin.php(1239): include_once('/var/www/wordpr...')
#2 wp-admin/includes/plugin.php(956): uninstall_plugin() - Uninstaller has failed for this plugin, leaving 285 files (1.11MB) in the plugin directory
- (new file) config.php
- (new file) src/Controller/AdminPageController.php
- (new file) js/bundle/admin-options.js
- (new file) js/bundle/frontend-widget.js
- (new file) src/Controller/AdminJobController.php
- (new file) package-lock.json
- (new file) src/Controller/AdminSubscriberController.php
- (new file) src/Controller/FrontendSubscriberController.php
- (new file) src/Controller/AdminOptionController.php
- (new file) README.txt
- ...
- wp_wppen_jobs
- wp_wppen_subscribers
- recovery_mode_email_last_sent
- widget_subscriptionwidget
Smoke tests 50% 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)
Good news, no errors were detected
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
Please take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-post-email-notification/views/admin/options.php
- > /wp-content/plugins/wp-post-email-notification/views/widget/widget.php
- > /wp-content/plugins/wp-post-email-notification/wp-post-email-notification.php
- 99× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface' not found in wp-content/plugins/wp-post-email-notification/vendor/symfony/http-foundation/Session/SessionBagProxy.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface' not found in wp-content/plugins/wp-post-email-notification/vendor/symfony/http-foundation/Session/Storage/MetadataBag.php:23
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Response' not found in wp-content/plugins/wp-post-email-notification/vendor/symfony/http-foundation/RedirectResponse.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Templating\\Loader\\Loader' not found in wp-content/plugins/wp-post-email-notification/vendor/symfony/templating/Loader/FilesystemLoader.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Nstaeger\\CmsPluginFramework\\Broker\\EventBroker' not found in wp-content/plugins/wp-post-email-notification/vendor/nstaeger/cms-plugin-framework/src/Broker/Wordpress/WordpressEventBroker.php:9
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Response' not found in wp-content/plugins/wp-post-email-notification/vendor/nstaeger/cms-plugin-framework/src/Http/ViewResponse.php:8
- > PHP Fatal error
Uncaught Error: Class 'Nstaeger\\CmsPluginFramework\\Controller' not found in wp-content/plugins/wp-post-email-notification/src/Controller/AdminJobController.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-post-email-notification/config.php:6
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\AbstractSessionHandler' not found in wp-content/plugins/wp-post-email-notification/vendor/symfony/http-foundation/Session/Storage/Handler/MongoDbSessionHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Session\\Storage\ativeSessionStorage' not found in wp-content/plugins/wp-post-email-notification/vendor/symfony/http-foundation/Session/Storage/PhpBridgeSessionStorage.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: subscriber, newsletter, post, widget, new...
wp-post-email-notification/wp-post-email-notification.php Passed 13 tests
The main PHP script in "WP Post Email Notification" version 1.1.1 is automatically included on every request by WordPress
68 characters long description:
Send email notifications to subscribers when a new post is published
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
Good job! No executable or dangerous file extensions detected19,201 lines of code in 276 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 252 | 3,304 | 10,565 | 14,328 |
JSON | 10 | 0 | 0 | 4,563 |
Markdown | 7 | 47 | 0 | 207 |
XML | 4 | 6 | 0 | 90 |
JavaScript | 2 | 0 | 8 | 10 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 226.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 64 | |
Interfaces | 97 | |
Traits | 0 | |
Classes | 131 | |
▷ Abstract classes | 5 | 3.82% |
▷ Concrete classes | 126 | 96.18% |
▷ Final classes | 3 | 2.38% |
Methods | 1,404 | |
▷ Static methods | 110 | 7.83% |
▷ Public methods | 1,268 | 90.31% |
▷ Protected methods | 80 | 5.70% |
▷ Private methods | 56 | 3.99% |
Functions | 88 | |
▷ Named functions | 54 | 61.36% |
▷ Anonymous functions | 34 | 38.64% |
Constants | 135 | |
▷ Global constants | 8 | 5.93% |
▷ Class constants | 127 | 94.07% |
▷ Public constants | 127 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin