79% auto-dashboard-language

Code Review | Auto Dashboard Language

WordPress plugin Auto Dashboard Language scored79%from 54 tests.

About plugin

  • Plugin page: auto-dashboard-la...
  • Plugin version: 180201...
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 14, 2018
  • Latest release: Feb 14, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: wizardsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /640 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.83MB] [CPU: ▼47.87ms] Passed 4 tests

An overview of server-side resources used by Auto Dashboard Language
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.306.49 ▼33.00
Dashboard /wp-admin2.18 ▼1.137.99 ▼40.86
Posts /wp-admin/edit.php2.18 ▼1.179.12 ▼35.20
Add New Post /wp-admin/post-new.php2.18 ▼3.716.78 ▼82.42
Media Library /wp-admin/upload.php2.18 ▼1.057.74 ▼25.85

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Auto Dashboard Language
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.20 ▼1.182.08 ▼0.1642.91 ▼3.98
Dashboard /wp-admin2,209 ▲244.79 ▼1.1096.99 ▼8.5138.98 ▼0.61
Posts /wp-admin/edit.php2,086 ▼61.98 ▼0.0140.42 ▲5.0134.54 ▲4.49
Add New Post /wp-admin/post-new.php1,542 ▼018.46 ▲0.36600.83 ▼17.2157.99 ▼0.69
Media Library /wp-admin/upload.php1,382 ▼04.33 ▲0.0596.09 ▼7.6441.17 ▼1.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/auto-dashboard-language/auto-dashboard-language.php+35
    Undefined index: HTTP_ACCEPT_LANGUAGE
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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
Attributes that need to be fixed:
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

auto-dashboard-language/auto-dashboard-language.php 92% from 13 tests

This is the main PHP file of "Auto Dashboard Language" version 180201..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "180201...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131440

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin