90% dadata-ru

Code Review | «Подсказки» от DaData.ru

WordPress plugin «Подсказки» от DaData.ru scored90%from 54 tests.

About plugin

  • Plugin page: dadata-ru
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 25, 2022
  • Latest release: Mar 30, 2023
  • Number of updates: 15
  • Update frequency: every 14.5 days
  • Top authors: shsham (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /1,694 total downloads


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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.47ms] Passed 4 tests

An overview of server-side resources used by «Подсказки» от DaData.ru
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0337.41 ▼6.06
Dashboard /wp-admin3.41 ▲0.0751.97 ▲0.40
Posts /wp-admin/edit.php3.53 ▲0.1350.90 ▲5.73
Add New Post /wp-admin/post-new.php6.01 ▲0.0896.21 ▼14.09
Media Library /wp-admin/upload.php3.34 ▲0.0736.34 ▼2.12

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for «Подсказки» от DaData.ru
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲11113.57 ▼0.7810.35 ▲8.5841.45 ▼4.63
Dashboard /wp-admin2,198 ▲215.52 ▼0.1186.52 ▼0.9439.24 ▲0.50
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0641.01 ▲5.9837.69 ▼2.23
Add New Post /wp-admin/post-new.php1,526 ▼022.96 ▼0.01655.14 ▼28.9953.97 ▲1.05
Media Library /wp-admin/upload.php1,403 ▲64.20 ▼0.0199.22 ▼2.8242.98 ▼2.70

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: dadata-ru, wpcf7, shdadata, dadataru, woocommerce...

dadata-ru/dadata-ru.php 92% from 13 tests

The main PHP file in "«Подсказки» от DaData.ru" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 215 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected440 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File1141455

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin