78% russian-number-comments

Code Review | Russian Number Comments

WordPress plugin Russian Number Comments scored78%from 54 tests.

About plugin

  • Plugin page: russian-number-co...
  • Plugin version: 2.00
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-6.1
  • WordPress version: 6.3.1
  • First release: Jul 17, 2014
  • Latest release: Oct 30, 2022
  • Number of updates: 39
  • Update frequency: every 77.6 days
  • Top authors: Flector (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /3,713 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.82ms] Passed 4 tests

This is a short check of server-side resources used by Russian Number Comments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.66 ▼0.12
Dashboard /wp-admin3.36 ▲0.0152.12 ▼14.15
Posts /wp-admin/edit.php3.41 ▲0.0550.89 ▼9.27
Add New Post /wp-admin/post-new.php5.94 ▲0.0598.43 ▼7.72
Media Library /wp-admin/upload.php3.28 ▲0.0544.09 ▲6.04

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Russian Number Comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲5814.22 ▼0.161.92 ▼0.1143.97 ▲2.25
Dashboard /wp-admin2,225 ▲194.82 ▼0.27106.78 ▲0.0340.14 ▲2.04
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0136.01 ▼5.7330.13 ▼7.21
Add New Post /wp-admin/post-new.php1,557 ▲2318.48 ▼4.65640.54 ▲10.7093.51 ▲17.91
Media Library /wp-admin/upload.php1,404 ▲74.17 ▼0.09115.51 ▼5.0448.67 ▼0.22
Russian Number Comments /wp-admin/russian-number-comments.php260.440.0815.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/russian-number-comments/russian-number-comments.php:34

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/russian-number-comments.php
    • > Network (severe)
    wp-admin/russian-number-comments.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: comments_number, comments_popup_link, comments

russian-number-comments/russian-number-comments.php 92% from 13 tests

The main PHP file in "Russian Number Comments" ver. 2.00 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: Please keep the plugin description shorter than 140 characters (currently 223 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin564 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36827296
PHP15851233
CSS22735

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions13
▷ Named functions13100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icon_coffee.png5.14KB5.32KB0.00%