10% eswp-popup-notifications

Code Review | ESWP Popup Notifications

WordPress plugin ESWP Popup Notifications scored10%from 54 tests.

About plugin

  • Plugin page: eswp-popup-notifi...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.7.1
  • WordPress version: 6.3.1
  • First release: May 4, 2021
  • Latest release: Jul 7, 2021
  • Number of updates: 5
  • Update frequency: every 12.8 days
  • Top authors: camilluskillus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /401 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/eswp-popup-notifications/eswp-popup-notifications.php+21
    copy(wp-content/languages/plugins/eswp-popup-notifications-pl_PL.mo): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.19MB] [CPU: ▼10.50ms] Passed 4 tests

A check of server-side resources used by ESWP Popup Notifications
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1425.47 ▼14.99
Dashboard /wp-admin3.52 ▲0.1849.49 ▼12.02
Posts /wp-admin/edit.php3.66 ▲0.3148.24 ▼2.93
Add New Post /wp-admin/post-new.php6.02 ▲0.1383.14 ▼12.05
Media Library /wp-admin/upload.php3.59 ▲0.3737.36 ▼1.12
ESWP Popup Notifications /wp-admin/options-general.php?page=eswp-popup-notifications-settings3.5134.55

Server storage [IO: ▲0.11MB] [DB: ▲0.05MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for ESWP Popup Notifications
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16413.42 ▼0.9811.70 ▲9.7759.48 ▲15.95
Dashboard /wp-admin2,204 ▲275.68 ▼0.00100.72 ▲1.0442.93 ▼1.26
Posts /wp-admin/edit.php2,109 ▲92.17 ▲0.2238.11 ▼1.6733.01 ▲1.54
Add New Post /wp-admin/post-new.php1,537 ▲223.17 ▲4.90606.94 ▼37.1385.17 ▼5.10
Media Library /wp-admin/upload.php1,403 ▲64.24 ▲0.0297.85 ▼32.2742.57 ▼9.44
ESWP Popup Notifications /wp-admin/options-general.php?page=eswp-popup-notifications-settings1,3292.0326.4734.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=eswp-popup-notifications-settings
    • > Notice in wp-content/plugins/eswp-popup-notifications/inc/eswp-popup-notifications-style.php+100
    Undefined index: popup_popup_text_align

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: notice, popup, simple, notification

eswp-popup-notifications/eswp-popup-notifications.php Passed 13 tests

"ESWP Popup Notifications" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
It is a very simple pupup notifications plugin to display notices to visitors.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,235 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP55021678
JavaScript4146396
PO File13958102
SVG10059

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin