Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼142.70ms] Passed 4 tests
Server-side resources used by WEN Post Expiry Notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 32.25 ▲12.16 |
Dashboard /wp-admin | 3.17 ▲0.11 | 47.38 ▲0.05 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 44.50 ▼2.56 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 92.44 ▼566.31 |
Media Library /wp-admin/upload.php | 3.11 ▲0.10 | 30.28 ▼1.97 |
WEN Post Expiry Notification /wp-admin/options-general.php?page=wpen | 3.12 | 31.64 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WEN Post Expiry Notification
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,726 ▲130 | 16.52 ▲0.81 | 13.09 ▲2.15 | 48.46 ▼0.64 |
Dashboard /wp-admin | 2,993 ▲63 | 6.14 ▼0.09 | 153.02 ▼27.79 | 107.65 ▼5.03 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.75 ▲0.04 | 73.02 ▲4.49 | 83.52 ▼3.81 |
Add New Post /wp-admin/post-new.php | 1,701 ▲18 | 18.80 ▲0.03 | 403.10 ▼17.01 | 108.28 ▲1.39 |
Media Library /wp-admin/upload.php | 1,833 ▲23 | 5.10 ▲0.08 | 158.64 ▲5.86 | 115.61 ▼5.05 |
WEN Post Expiry Notification /wp-admin/options-general.php?page=wpen | 1,755 | 6.94 | 154.17 | 128.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wen-post-expiry-notification/wen-post-expiry-notification.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wen-post-expiry-notification/inc/post-expiry-meta-boxes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wen-post-expiry-notification/inc/class-wen-post-expiry-notification.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wen-post-expiry-notification/inc/class-wpen-admin-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wen-post-expiry-notification/inc/template/post-expiry-email-template.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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: expiry notification, post expiry
wen-post-expiry-notification/wen-post-expiry-notification.php Passed 13 tests
The primary PHP file in "WEN Post Expiry Notification" version 1.1 is used by WordPress to initiate all plugin functionality
92 characters long description:
Set expiry date on posts and custom post types, and send email notification on their expiry.
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
There were no executable files found in this plugin1,740 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 41 | 49 | 1,235 |
PHP | 5 | 105 | 18 | 473 |
SVG | 1 | 0 | 1 | 24 |
JavaScript | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 5.87KB | 2.78KB | ▼ 52.67% |
assets/icon-128x128.png | 4.43KB | 3.06KB | ▼ 30.83% |