84% dl-browser-update

Code Review | DL Browser update

WordPress plugin DL Browser update scored 84% from 54 tests.

About plugin

  • Plugin page: dl-browser-update
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.6
  • WordPress version: 6.3.1
  • First release: Sep 27, 2016
  • Latest release: Sep 28, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: dyadyalesha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 756 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.01ms] Passed 4 tests

This is a short check of server-side resources used by DL Browser update
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.74 ▼11.18
Dashboard /wp-admin3.32 ▲0.0145.48 ▼2.64
Posts /wp-admin/edit.php3.37 ▲0.0146.72 ▼0.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.10 ▼1.95
Media Library /wp-admin/upload.php3.24 ▲0.0140.54 ▲7.71
Обновление браузеров /wp-admin/options-general.php?page=dl-browser-update/page-options.php3.2132.55

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for DL Browser update
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,965 ▲21913.54 ▼0.8313.56 ▲11.7045.04 ▼1.55
Dashboard /wp-admin2,213 ▲285.85 ▲0.92101.71 ▼28.6941.75 ▼6.87
Posts /wp-admin/edit.php2,093 ▲72.00 ▲0.0039.12 ▲0.3833.79 ▼1.30
Add New Post /wp-admin/post-new.php1,536 ▼023.15 ▲0.11671.65 ▲41.0250.81 ▼1.98
Media Library /wp-admin/upload.php1,389 ▲44.21 ▲0.00102.54 ▼0.4943.46 ▼1.54
Обновление браузеров /wp-admin/options-general.php?page=dl-browser-update/page-options.php8642.0722.8727.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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/dl-browser-update/page-options.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dl-browser-update/dl-browser-update.php:14

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Страница настроек), #2 (Демонстрация)
You can look at the official readme.txt

dl-browser-update/dl-browser-update.php 92% from 13 tests

This is the main PHP file of "DL Browser update" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 380 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin173 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23512173

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png131.56KB45.53KB▼ 65.40%
screenshot-2.png56.08KB18.13KB▼ 67.67%