Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.46ms] Passed 4 tests
Analyzing server-side resources used by Notification Bar Builder for Elementor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.25 ▼8.94 |
Dashboard /wp-admin | 3.34 ▼0.01 | 47.46 ▼11.58 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.37 ▼2.11 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.70 ▼3.19 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.14 ▲1.67 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Notification Bar Builder for Elementor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.48 ▲0.10 | 1.75 ▼0.07 | 41.21 ▼0.73 |
Dashboard /wp-admin | 2,221 ▲33 | 5.81 ▼0.02 | 101.67 ▼14.65 | 41.68 ▼3.79 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.01 ▲0.01 | 37.82 ▼0.40 | 37.64 ▲3.00 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 17.65 ▼5.54 | 642.35 ▼19.18 | 54.59 ▼4.10 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.20 ▼0.10 | 99.92 ▼1.32 | 44.32 ▲0.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notification-bar-builder-for-elementor/includes/document-controls.php:192
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notification-bar-builder-for-elementor/includes/custom-posts.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: announcement bar, notice, notification, elementor, bar
notification-bar-builder-for-elementor/plugin-main.php 85% from 13 tests
"Notification Bar Builder for Elementor" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("notification-bar-builder-for-elementor.php" instead of "plugin-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,079 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 163 | 77 | 949 |
CSS | 2 | 8 | 10 | 87 |
JavaScript | 2 | 8 | 5 | 43 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 18 | |
▷ Static methods | 2 | 11.11% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 3 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 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
There are no PNG files in this plugin