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
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼289.72ms] Passed 4 tests
Analyzing server-side resources used by DW Notifications
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.26 | 59.67 ▼3.40 |
Dashboard /wp-admin | 3.62 ▲0.21 | 41.89 ▲1.67 |
Posts /wp-admin/edit.php | 3.84 ▲0.20 | 45.73 ▲2.74 |
Add New Post /wp-admin/post-new.php | 7.17 ▲0.18 | 110.10 ▼1,159.88 |
Media Library /wp-admin/upload.php | 3.56 ▲0.27 | 34.31 ▲7.10 |
All Notifications /wp-admin/edit.php?post_type=dw-notification | 3.61 | 29.87 |
Add New /wp-admin/post-new.php?post_type=dw-notification | 3.84 | 47.91 |
Settings /wp-admin/edit.php?post_type=dw-notification&page=dw-notification-settings | 3.47 | 25.69 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for DW Notifications
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,969 ▲225 | 16.62 ▲1.06 | 9.64 ▲2.84 | 2.62 ▲0.09 |
Dashboard /wp-admin | 2,938 ▲83 | 6.16 ▼0.03 | 120.09 ▼20.70 | 155.33 ▼7.44 |
Posts /wp-admin/edit.php | 2,734 ▲43 | 3.25 ▲0.01 | 63.53 ▼0.88 | 138.47 ▼3.76 |
Add New Post /wp-admin/post-new.php | 1,700 ▲39 | 18.12 ▲1.25 | 398.35 ▼17.43 | 149.11 ▼4.38 |
Media Library /wp-admin/upload.php | 1,745 ▲50 | 5.55 ▲0.03 | 146.03 ▲2.94 | 184.67 ▼1.61 |
All Notifications /wp-admin/edit.php?post_type=dw-notification | 1,434 | 3.18 | 58.30 | 112.24 |
Add New /wp-admin/post-new.php?post_type=dw-notification | 3,130 | 10.07 | 195.15 | 226.88 |
Settings /wp-admin/edit.php?post_type=dw-notification&page=dw-notification-settings | 1,018 | 2.47 | 53.96 | 130.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dw-notifications/templates/default/notification-popup.php
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dw-notifications/templates/default/notification-alert.php:10
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/dw-notifications/templates/default/notification-item.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/dw-notifications/templates/default/notification-item.php:4
- > PHP Notice
Undefined variable: notification in wp-content/plugins/dw-notifications/templates/default/notification-popup-item.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dw-notifications/libs/custom-list-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/dw-notifications/libs/custom-list-table.php on line 4
- > PHP Notice
Undefined variable: notification in wp-content/plugins/dw-notifications/templates/default/notification-item.php on line 2
- > PHP Notice
Trying to get property 'post_date' of non-object in wp-content/plugins/dw-notifications/templates/default/notification-item.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dw-notifications/templates/default/notification-list.php:8
- > PHP Notice
Undefined variable: id in wp-content/plugins/dw-notifications/templates/default/notification-alert.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add a description for screenshot #1 in dw-notifications/assets to your readme.txt
dw-notifications/dw-notifications.php Passed 13 tests
"DW Notifications" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
A WordPress plugin developed by DesignWall.com to nofity.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,724 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 328 | 99 | 1,377 |
JavaScript | 3 | 137 | 36 | 745 |
CSS | 2 | 14 | 9 | 436 |
PO File | 2 | 63 | 67 | 166 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.64 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 1 | 1.16% |
▷ Public methods | 86 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/switch.png | 0.53KB | 0.64KB | 0.00% |
(invalid) assets/images/image_default.png | 1.49KB | 0.00KB | ▼ 100.00% |