89% wp-outdated-browser

Code Review | WP Outdated Browser

WordPress plugin WP Outdated Browser scored89%from 54 tests.

About plugin

  • Plugin page: wp-outdated-browser
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.3
  • WordPress version: 6.3.1
  • First release: Jun 29, 2014
  • Latest release: Aug 25, 2015
  • Number of updates: 26
  • Update frequency: every 16.2 days
  • Top authors: deblynprado (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /9,042 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.21ms] Passed 4 tests

A check of server-side resources used by WP Outdated Browser
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0422.77 ▼17.43
Dashboard /wp-admin3.35 ▲0.0544.61 ▼2.80
Posts /wp-admin/edit.php3.46 ▲0.1151.00 ▲1.68
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.85 ▼2.03
Media Library /wp-admin/upload.php3.27 ▲0.0434.99 ▲1.43

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

WP Outdated Browser: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲14613.51 ▼1.242.18 ▲0.6440.10 ▼8.61
Dashboard /wp-admin2,241 ▲565.13 ▼0.73110.79 ▲11.6043.76 ▼1.07
Posts /wp-admin/edit.php2,126 ▲372.32 ▲0.3341.78 ▲5.6235.22 ▲0.58
Add New Post /wp-admin/post-new.php1,557 ▲4323.48 ▲5.90600.47 ▼93.7032.77 ▼26.59
Media Library /wp-admin/upload.php1,426 ▲474.49 ▲0.2996.97 ▼4.6244.84 ▼2.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: css3, outdated, message outdated, html, browser...

wp-outdated-browser/outdated-browser.php 85% from 13 tests

The primary PHP file in "WP Outdated Browser" version 2.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-outdated-browser.php" instead of "outdated-browser.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin308 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PO File62842154
PHP12855135
JavaScript441717
CSS20142

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png47.61KB14.15KB▼ 70.28%