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
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.61ms] Passed 4 tests
Server-side resources used by Site Notify
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.00 | 25.20 ▼14.75 |
Dashboard /wp-admin | 3.38 ▲0.04 | 50.33 ▼6.70 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 51.51 ▼0.62 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.09 | 92.58 ▼4.73 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.11 ▼4.24 |
Site Notification /wp-admin/options-general.php?page=siteNotify | 3.43 | 30.40 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Site Notify: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲140 | 13.61 ▼0.74 | 5.75 ▲3.71 | 42.84 ▼3.53 |
Dashboard /wp-admin | 2,217 ▲26 | 4.84 ▼1.02 | 109.90 ▲6.71 | 43.68 ▼1.45 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.05 ▲0.00 | 41.31 ▼1.43 | 35.34 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 18.13 ▼5.12 | 594.59 ▼95.00 | 51.75 ▼4.68 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.24 ▲0.06 | 95.82 ▼12.84 | 40.23 ▼4.55 |
Site Notification /wp-admin/options-general.php?page=siteNotify | 1,898 | 1.72 | 27.82 | 75.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=siteNotify
- > Notice in wp-content/plugins/site-notify/functions/admin-ui.php+111
Undefined offset: 0
- > GET request to /wp-admin/options-general.php?page=siteNotify
- > Notice in wp-content/plugins/site-notify/functions/admin-ui.php+111
Trying to get property 'option_value' of non-object
- 46 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=siteNotify
- > Notice in wp-content/plugins/site-notify/functions/admin-ui.php+969
Trying to access array offset on value of type bool
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/site-notify/functions/admin-ui.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=siteNotify
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=siteNotify 354 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=siteNotify
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=siteNotify 620 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=siteNotify
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=siteNotify 812 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/options-general.php?page=siteNotify
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=siteNotify 948 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
site-notify/site-notify.php Passed 13 tests
This is the main PHP file of "Site Notify" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
Display custom notifications, announcements, and alerts on your website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,160 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 988 | 31 | 684 |
CSS | 3 | 49 | 44 | 378 |
JavaScript | 2 | 15 | 10 | 98 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
6 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/info_notify.png | 18.29KB | 7.30KB | ▼ 60.07% |
assets/images/warning_notify.png | 18.36KB | 7.41KB | ▼ 59.65% |
assets/images/success_notify.png | 18.19KB | 7.37KB | ▼ 59.49% |
assets/images/simple_notify.png | 17.83KB | 7.21KB | ▼ 59.54% |
assets/images/notify_banner.png | 25.84KB | 6.63KB | ▼ 74.36% |