Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.22ms] Passed 4 tests
This is a short check of server-side resources used by WP Post Email Notification
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 27.78 ▼14.13 |
Dashboard /wp-admin | 3.47 ▲0.13 | 52.25 ▼16.30 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.29 ▲2.06 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 106.59 ▲7.78 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.24 ▲3.51 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 285 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_wppen_jobs |
wp_wppen_subscribers |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
wppen_emailSubject |
wppen_numberOfEmailsSendPerRequest |
widget_subscriptionwidget |
wppen_jobBatchTimeWait |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
wppen_jobInitialTimeWait |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Post Email Notification
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.38 ▼0.19 | 7.10 ▲5.55 | 44.01 ▼4.18 |
Dashboard /wp-admin | 2,214 ▲37 | 5.55 ▲0.02 | 97.29 ▼2.30 | 43.62 ▼0.59 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.98 ▲0.01 | 36.12 ▼2.36 | 32.28 ▼3.91 |
Add New Post /wp-admin/post-new.php | 1,417 ▼118 | 17.87 ▼0.56 | 624.99 ▼61.04 | 51.85 ▼21.46 |
Media Library /wp-admin/upload.php | 1,416 ▲22 | 4.31 ▲0.06 | 107.81 ▲8.89 | 47.37 ▼0.22 |
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 followingThe uninstall procedure failed, leaving 2 tables in the database The uninstall procedure has failed, leaving 8 options in the database
- This plugin did not uninstall without warnings or 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(1245): include_once('/var/www/wordpr...')
#2 wp-admin/includes/plugin.php(960): uninstall_plugin() - Uninstaller has failed for this plugin, leaving 285 files (1.11MB) in the plugin directory
- (new file) src/Controller/AdminOptionController.php
- (new file) src/Controller/AdminJobController.php
- (new file) README.txt
- (new file) js/bundle/frontend-widget.js
- (new file) package-lock.json
- (new file) js/bundle/admin-options.js
- (new file) src/Controller/AdminPageController.php
- (new file) src/Controller/FrontendSubscriberController.php
- (new file) src/Controller/AdminSubscriberController.php
- (new file) config.php
- ...
- wp_wppen_jobs
- wp_wppen_subscribers
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_subscriptionwidget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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 | 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
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-post-email-notification/wp-post-email-notification.php
- > /wp-content/plugins/wp-post-email-notification/views/admin/options.php
- > /wp-content/plugins/wp-post-email-notification/views/widget/widget.php
- 99× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\ParameterBag' not found in wp-content/plugins/wp-post-email-notification/vendor/symfony/http-foundation/ServerBag.php:21
- > 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/StrictSessionHandler.php:19
- > 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/NullSessionHandler.php:19
- > PHP Fatal error
Cannot declare interface SessionUpdateTimestampHandlerInterface, because the name is already in use in wp-content/plugins/wp-post-email-notification/vendor/symfony/polyfill-php70/Resources/stubs/SessionUpdateTimestampHandlerInterface.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\HeaderBag' not found in wp-content/plugins/wp-post-email-notification/vendor/symfony/http-foundation/ResponseHeaderBag.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: 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/PdoSessionHandler.php:41
- > 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/MemcachedSessionHandler.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Bus\\Dispatcher' not found in wp-content/plugins/wp-post-email-notification/vendor/illuminate/contracts/Bus/QueueingDispatcher.php:5
- > 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
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: notification, widget, post, subscriber, email...
wp-post-email-notification/wp-post-email-notification.php Passed 13 tests
The main PHP file in "WP Post Email Notification" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
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
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected