84% dl-yandex-webmaster

Code Review | DL Yandex Webmaster

WordPress plugin DL Yandex Webmaster scored84%from 54 tests.

About plugin

  • Plugin page: dl-yandex-webmaster
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.8
  • WordPress version: 6.3.1
  • First release: Aug 1, 2017
  • Latest release: Aug 8, 2017
  • Number of updates: 7
  • Update frequency: every 2.6 days
  • Top authors: dyadyalesha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /3,757 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by DL Yandex Webmaster
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.83 ▼11.84
Dashboard /wp-admin3.32 ▲0.0146.98 ▼5.73
Posts /wp-admin/edit.php3.37 ▲0.0154.91 ▲1.07
Add New Post /wp-admin/post-new.php5.90 ▲0.01101.50 ▼7.84
Media Library /wp-admin/upload.php3.24 ▲0.0140.40 ▼3.53

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by DL Yandex Webmaster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9513.25 ▼0.951.84 ▲0.1939.47 ▼7.04
Dashboard /wp-admin2,222 ▲374.84 ▼1.06113.88 ▲3.9143.07 ▼4.94
Posts /wp-admin/edit.php2,108 ▲192.01 ▼0.0038.53 ▲0.3235.16 ▼2.45
Add New Post /wp-admin/post-new.php1,560 ▲2822.95 ▼0.14649.78 ▼40.3179.98 ▲21.88
Media Library /wp-admin/upload.php1,407 ▲224.27 ▲0.01110.65 ▼8.2348.14 ▼1.07

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dl-yandex-webmaster/dl-yandex-webmaster.php:13
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/dl-yandex-webmaster/page-dashboard.php on line 51
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/dl-yandex-webmaster/page-install.php on line 82

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: dl, yandex, seo, yandex webmaster, webmaster

dl-yandex-webmaster/dl-yandex-webmaster.php 92% from 13 tests

The principal PHP file in "DL Yandex Webmaster" v. 0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 193 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
Good job! No executable or dangerous file extensions detected124 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3519124

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin