Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.00ms] Passed 4 tests
Analyzing server-side resources used by Announcement Notice Builder for Elementor - Enhance Your Visitor Engagement
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.95 ▲2.94 |
Dashboard /wp-admin | 3.31 ▲0.01 | 54.22 ▲4.98 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.51 ▲1.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.50 ▼20.16 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.90 ▲4.19 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
wacm_install_data |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Announcement Notice Builder for Elementor - Enhance Your Visitor Engagement
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.22 ▼1.37 | 4.49 ▲2.74 | 44.30 ▲4.32 |
Dashboard /wp-admin | 2,214 ▲29 | 5.79 ▼0.11 | 95.33 ▼0.90 | 38.79 ▼3.97 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 2.01 ▲0.01 | 39.63 ▼2.58 | 38.65 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.32 ▼0.13 | 667.80 ▲55.77 | 54.88 ▲8.41 |
Media Library /wp-admin/upload.php | 1,402 ▲20 | 4.24 ▲0.03 | 97.05 ▲0.06 | 40.47 ▼3.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- wacm_install_data
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/announcement-notice/template-parts/cpt-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: announcement, elementor, notice, header, bar
announcement-notice/announcemnt.php 85% from 13 tests
"Announcement Notice Builder for Elementor - Enhance Your Visitor Engagement" version 1.2.1'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:
- Main file name: Name the main plugin file the same as the plugin slug ("announcement-notice.php" instead of "announcemnt.php")
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 75 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,183 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 59 | 3 | 411 |
PHP | 8 | 111 | 44 | 292 |
JavaScript | 3 | 45 | 5 | 222 |
SVG | 5 | 0 | 5 | 213 |
Markdown | 1 | 33 | 0 | 45 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 21 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.70% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/annoncement-notice-icon.png | 2.01KB | 1.60KB | ▼ 20.34% |