10% dm-comments-number-ru

Code Review | dm_comments_number_ru

WordPress plugin dm_comments_number_ru scored10%from 54 tests.

About plugin

  • Plugin page: dm-comments-numbe...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.8
  • WordPress version: 6.3.1
  • First release: Jun 25, 2017
  • Latest release: Jun 25, 2017
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: dmpink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /659 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/dm-comments-number-ru/comments_ru.php+17
    Array and string offset access syntax with curly braces is deprecated

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

An overview of server-side resources used by dm_comments_number_ru
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.37 ▼2.49
Dashboard /wp-admin3.31 ▼0.0454.88 ▼12.24
Posts /wp-admin/edit.php3.36 ▲0.0050.36 ▼1.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.64 ▼15.77
Media Library /wp-admin/upload.php3.23 ▲0.0038.72 ▲3.95

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

dm_comments_number_ru: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.19 ▼0.361.87 ▲0.1543.44 ▲0.45
Dashboard /wp-admin2,189 ▲125.52 ▼0.3685.79 ▼12.6936.29 ▼5.90
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0340.90 ▲6.6334.32 ▼2.42
Add New Post /wp-admin/post-new.php1,526 ▼323.73 ▲0.53678.32 ▲50.6754.28 ▲4.90
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.0895.04 ▼13.8243.58 ▼2.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dm-comments-number-ru/comments_ru.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
3 plugin tags: russian, comments, fix

dm-comments-number-ru/comments_ru.php 85% from 13 tests

The entry point to "dm_comments_number_ru" version 0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dm-comments-number-ru.php" instead of "comments_ru.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 178 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
Success! There were no dangerous files found in this plugin43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10843

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin