84% announcement-notice

Code Review | Announcement Notice Builder for Elementor - Enhance Your Visitor Engagement

WordPress plugin Announcement Notice Builder for Elementor - Enhance Your Visitor Engagement scored84%from 54 tests.

About plugin

  • Plugin page: announcement-notice
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: May 5, 2023
  • Latest release: Aug 18, 2023
  • Number of updates: 11
  • Update frequency: every 9.6 days
  • Top authors: wpsharif (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /180 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.95 ▲2.94
Dashboard /wp-admin3.31 ▲0.0154.22 ▲4.98
Posts /wp-admin/edit.php3.37 ▲0.0149.51 ▲1.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.50 ▼20.16
Media Library /wp-admin/upload.php3.24 ▲0.0137.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.22 ▼1.374.49 ▲2.7444.30 ▲4.32
Dashboard /wp-admin2,214 ▲295.79 ▼0.1195.33 ▼0.9038.79 ▼3.97
Posts /wp-admin/edit.php2,099 ▲72.01 ▲0.0139.63 ▼2.5838.65 ▲3.01
Add New Post /wp-admin/post-new.php1,544 ▲1123.32 ▼0.13667.80 ▲55.7754.88 ▲8.41
Media Library /wp-admin/upload.php1,402 ▲204.24 ▲0.0397.05 ▲0.0640.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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.19
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.68
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
▷ Static methods28.70%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
▷ Named functions250.00%
▷ Anonymous functions250.00%
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/img/annoncement-notice-icon.png2.01KB1.60KB▼ 20.34%