78% browser-update-notify

Code Review | Browser-Update-Notify

WordPress plugin Browser-Update-Notify scored 78% from 54 tests.

About plugin

  • Plugin page: browser-update-no...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.7.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2013
  • Latest release: Dec 1, 2013
  • Number of updates: 26
  • Update frequency: every 9.2 days
  • Top authors: thesturs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 2,639 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▲1.54ms] Passed 4 tests

An overview of server-side resources used by Browser-Update-Notify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.20 ▼2.00
Dashboard /wp-admin3.31 ▲0.0145.20 ▲2.57
Posts /wp-admin/edit.php3.36 ▲0.0046.94 ▲4.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.51 ▲6.05
Media Library /wp-admin/upload.php3.23 ▲0.0036.63 ▲1.28
Browser-Update-Notify /wp-admin/options-general.php?page=my-unique-identifier3.2528.23

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
bun_dbff
bun_dbie
theysaidso_admin_options
db_upgraded
widget_recent-comments
bun_dbs
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Browser-Update-Notify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.35 ▼1.317.85 ▲6.0642.87 ▼1.27
Dashboard /wp-admin2,213 ▲304.89 ▼0.09104.59 ▼6.3039.29 ▲0.14
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0340.35 ▲7.7034.72 ▲2.78
Add New Post /wp-admin/post-new.php1,523 ▲423.10 ▼0.17600.76 ▼64.1563.62 ▲9.46
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0292.53 ▼1.4142.25 ▲0.82
Browser-Update-Notify /wp-admin/options-general.php?page=my-unique-identifier8712.0226.8726.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • bun_dbs
    • can_compress_scripts
    • bun_dbff
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • bun_dbie

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=my-unique-identifier
    • > Notice in wp-content/plugins/browser-update-notify/bun_admin.php+2
    Undefined index: bun_hidden

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/browser-update-notify/bun_admin.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/browser-update-notify/Browser-Update-Notify.php:46
    • > PHP Notice
      Undefined index: bun_hidden in wp-content/plugins/browser-update-notify/bun_admin.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: update browser, html5, modernizer, browser, modern browser...

browser-update-notify/Browser-Update-Notify.php 92% from 13 tests

"Browser-Update-Notify" version 0.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("browser-update-notify.php" instead of "Browser-Update-Notify.php")

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
No dangerous file extensions were detected142 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23011142

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions4
▷ Named functions4100.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
No PNG files were detected