94% turgenev

Code Review | Turgenev

WordPress plugin Turgenev scored 94% from 53 tests.

About plugin

  • Plugin page: turgenev
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 5.8.1
  • First release: Jul 20, 2020
  • Latest release: Aug 13, 2020
  • Number of updates: 14
  • Update frequency: every 1.7 days
  • Top authors: al5dy (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 302 total downloads

Benchmarks

Plugin footprint Passed 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.03MB] [CPU: ▼269.20ms] Passed 4 tests

Server-side resources used by Turgenev
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1533.25 ▲8.59
Dashboard /wp-admin3.13 ▲0.0841.30 ▼0.51
Posts /wp-admin/edit.php3.24 ▲0.1440.05 ▼1.63
Add New Post /wp-admin/post-new.php5.04 ▼0.3971.58 ▼1,065.62
Media Library /wp-admin/upload.php3.07 ▲0.0730.57 ▼9.03
"Turgenev" /wp-admin/options-general.php?page=turgenev-settings2.9724.83

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Turgenev: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,654 ▲4815.93 ▲0.049.67 ▼1.3547.65 ▼1.84
Dashboard /wp-admin2,932 ▲796.09 ▲0.27139.49 ▼1.10105.43 ▼1.26
Posts /wp-admin/edit.php2,708 ▲22.70 ▲0.0265.48 ▲0.7688.30 ▼7.84
Add New Post /wp-admin/post-new.php1,674 ▲2317.25 ▼0.17349.50 ▼16.33124.30 ▲7.76
Media Library /wp-admin/upload.php1,780 ▲85.01 ▲0.03147.96 ▼5.76110.64 ▲0.14
"Turgenev" /wp-admin/options-general.php?page=turgenev-settings1,0974.94106.6886.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=turgenev-settings
    • > Notice in wp-content/plugins/turgenev/includes/class-turgenev.php+176
    Trying to access array offset on value of type bool

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 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
5 plugin tags: gutenberg, content analysis, gutenberg editor, seo, readability

turgenev/turgenev.php Passed 13 tests

This is the main PHP file of "Turgenev" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
Assesses the risk of falling under the "Baden-Baden" and shows what needs to be fixed

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
Everything looks great! No dangerous files found in this plugin410 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6103220326
PO File13315880
JavaScript2002
CSS1101
JSON1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.00
▷ Minimum class complexity11.00
▷ Maximum class complexity19.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods27
▷ Static methods13.70%
▷ Public methods2385.19%
▷ Protected methods00.00%
▷ Private methods414.81%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected