Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.34MB] [CPU: ▼164.74ms] Passed 4 tests
An overview of server-side resources used by Adwised Web Push Notification
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.10 ▲0.38 | 34.91 ▲12.71 |
Dashboard /wp-admin | 3.34 ▲0.27 | 35.59 ▼8.51 |
Posts /wp-admin/edit.php | 3.45 ▲0.34 | 37.25 ▼0.81 |
Add New Post /wp-admin/post-new.php | 3.19 ▼2.26 | 20.43 ▼649.42 |
Media Library /wp-admin/upload.php | 3.28 ▲0.28 | 26.69 ▼0.20 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Adwised Web Push Notification
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲108 | 15.73 ▲0.11 | 7.52 ▲2.40 | 75.28 ▼0.43 |
Dashboard /wp-admin | 2,968 ▲69 | 6.09 ▼0.08 | 113.43 ▼19.41 | 195.83 ▲21.19 |
Posts /wp-admin/edit.php | 2,781 ▲41 | 3.15 ▼0.07 | 67.29 ▲2.97 | 145.33 ▲3.33 |
Add New Post /wp-admin/post-new.php | 2,130 ▼1,677 | 20.84 ▲0.29 | 411.82 ▼29.86 | 159.87 ▼6.72 |
Media Library /wp-admin/upload.php | 1,785 ▲33 | 5.59 ▲0.06 | 125.02 ▼13.81 | 219.45 ▲35.08 |
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 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/adwised/views/sidebar.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/adwised/adwised.php:32
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/adwised/views/dashboard-notices.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/adwised/views/settings.php:78
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: notification, push, engagement, push notifications, web push...
adwised/adwised.php 85% from 13 tests
Analyzing the main PHP file in "Adwised Web Push Notification" version 2.4.8
Please make the necessary changes and fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,336 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 111 | 105 | 2,201 |
JavaScript | 3 | 15 | 9 | 135 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.PNG | 52.34KB | 22.00KB | ▼ 57.97% |
assets/icon.png | 41.56KB | 17.19KB | ▼ 58.65% |
assets/adwisedicon.png | 1.15KB | 0.95KB | ▼ 17.42% |
adwisedicon.png | 1.15KB | 0.95KB | ▼ 17.42% |
assets/screenshot-1.PNG | 23.66KB | 9.68KB | ▼ 59.10% |