84% russian-texts-proofreader-glvrd

Code Review | Russian texts proofreader Glvrd

WordPress plugin Russian texts proofreader Glvrd scored 84% from 54 tests.

About plugin

  • Plugin page: russian-texts-pro...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7
  • WordPress version: 6.3.1
  • First release: Aug 26, 2015
  • Latest release: Jul 23, 2017
  • Number of updates: 43
  • Update frequency: every 16.2 days
  • Top authors: lopinopulos (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active / 6,429 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Russian texts proofreader Glvrd
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.50 ▼2.61
Dashboard /wp-admin3.31 ▲0.0140.94 ▼7.14
Posts /wp-admin/edit.php3.36 ▲0.0146.09 ▼11.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.65 ▼9.87
Media Library /wp-admin/upload.php3.23 ▲0.0132.78 ▼4.50

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Russian texts proofreader Glvrd
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.58 ▼0.781.86 ▲0.1737.76 ▼2.79
Dashboard /wp-admin2,208 ▲205.80 ▲0.9397.36 ▼8.7538.14 ▼2.63
Posts /wp-admin/edit.php2,091 ▼12.04 ▲0.0437.65 ▼11.7634.22 ▼15.48
Add New Post /wp-admin/post-new.php6,498 ▲4,96320.31 ▼2.73893.64 ▲225.8552.74 ▲0.28
Media Library /wp-admin/upload.php1,390 ▲54.23 ▼0.0095.59 ▼16.2042.05 ▼3.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/russian-texts-proofreader-glvrd/glvrd.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: glavred, text, posts, proofread, russian...

russian-texts-proofreader-glvrd/glvrd.php 92% from 13 tests

"Russian texts proofreader Glvrd" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("russian-texts-proofreader-glvrd.php" instead of "glvrd.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin665 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript28629466
CSS1290122
PHP1183069
SVG1018

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.52MB with 0.32MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/glvrd-icon.png10.33KB4.02KB▼ 61.06%
screenshot-1.png517.17KB213.77KB▼ 58.67%
images/glvrd.png1.70KB0.58KB▼ 65.54%