Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.97MB] [CPU: ▼277.71ms] Passed 4 tests
Server-side resources used by Advanced Notifications
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.37 ▲0.82 | 61.48 ▲15.07 |
Dashboard /wp-admin | 4.45 ▲1.01 | 51.20 ▲17.58 |
Posts /wp-admin/edit.php | 4.73 ▲1.06 | 54.84 ▲16.56 |
Add New Post /wp-admin/post-new.php | 7.99 ▲0.99 | 114.76 ▼1,153.58 |
Media Library /wp-admin/upload.php | 4.40 ▲1.07 | 40.36 ▲11.12 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 135 new files
Database: no new tables, 2 new options
New WordPress options |
---|
eis_version |
eis_register_interfaces |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Notifications
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,855 ▲101 | 16.03 ▲0.43 | 6.94 ▲0.71 | 2.52 ▼0.31 |
Dashboard /wp-admin | 2,972 ▲114 | 6.18 ▼0.01 | 118.15 ▼13.79 | 158.83 ▼3.86 |
Posts /wp-admin/edit.php | 2,773 ▲116 | 3.25 ▲0.02 | 62.92 ▼7.84 | 142.58 ▼0.51 |
Add New Post /wp-admin/post-new.php | 1,780 ▲119 | 21.65 ▲5.12 | 428.05 ▲15.77 | 175.79 ▲16.50 |
Media Library /wp-admin/upload.php | 1,772 ▲74 | 5.53 ▲0.00 | 155.38 ▲13.37 | 198.78 ▲5.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 2 options in the database
- eis_register_interfaces
- eis_version
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-notifications/plugins/easy-interface-settings/includes/eis-functions.php:221
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-notifications/includes/an-locations.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function eis_interfaces() in wp-content/plugins/advanced-notifications/plugins/easy-interface-settings/includes/eis-page.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-notifications/plugins/easy-interface-settings/interfaces/page-test.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-notifications/includes/an-designs.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function eis_interfaces() in wp-content/plugins/advanced-notifications/plugins/easy-interface-settings/includes/eis-meta-box.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advanced-notifications/plugins/easy-interface-settings/includes/eis-update.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-notifications/includes/an-functions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advanced-notifications/plugins/easy-interface-settings/easy-interface-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-notifications/plugins/easy-interface-settings/includes/eis-admin-functions.php:80
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Display notifications on the site), #2 (The list of alerts), #3 (Edit the contents of an alert), #4 (Alert Notice settings, will soon be more options), #5 (Options for displaying alerts on a specific page)
advanced-notifications/advanced-notifications.php Passed 13 tests
Analyzing the main PHP file in "Advanced Notifications" version 1.0.9
74 characters long description:
Advanced Notifications allows you to create beautiful custom notifications
Code Analysis 97% from 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 plugin8,499 lines of code in 124 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 123 | 60 | 3,042 |
PHP | 20 | 132 | 1,617 | 3,016 |
JavaScript | 90 | 261 | 145 | 2,441 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 124)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 64.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 204.00 |
Average method complexity | 7.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 124.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 52 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 98 | |
▷ Named functions | 95 | 96.94% |
▷ Anonymous functions | 3 | 3.06% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/top-left.png | 0.71KB | 0.37KB | ▼ 48.43% |
assets/images/top-right.png | 0.70KB | 0.36KB | ▼ 48.19% |
assets/images/bottom-left.png | 0.61KB | 0.28KB | ▼ 53.44% |
assets/images/bottom-right.png | 0.61KB | 0.28KB | ▼ 53.99% |