84% restore-automatic-update

Code Review | Restore Automatic Update (ru_RU)

WordPress plugin Restore Automatic Update (ru_RU) scored84%from 54 tests.

About plugin

  • Plugin page: restore-automatic...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.0
  • WordPress version: 6.3.1
  • First release: Dec 1, 2010
  • Latest release: Sep 6, 2014
  • Number of updates: 44
  • Update frequency: every 34.0 days
  • Top authors: SergeyBiryukov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Restore Automatic Update (ru_RU)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.27 ▲3.62
Dashboard /wp-admin3.33 ▼0.0148.09 ▼10.60
Posts /wp-admin/edit.php3.38 ▲0.0248.03 ▼0.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.78 ▼5.72
Media Library /wp-admin/upload.php3.25 ▲0.0236.78 ▼0.87

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Restore Automatic Update (ru_RU)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.19 ▼1.182.02 ▲0.1641.80 ▲2.63
Dashboard /wp-admin2,221 ▲545.87 ▲0.29105.44 ▲1.1041.47 ▲5.88
Posts /wp-admin/edit.php2,103 ▲32.04 ▲0.0138.83 ▲2.5335.46 ▼2.01
Add New Post /wp-admin/post-new.php1,526 ▼517.74 ▼5.60618.53 ▼69.9854.05 ▼6.22
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0196.86 ▼11.9143.02 ▼5.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/restore-automatic-update/restore-automatic-update.php:14

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: ru_ru, translations, update, releases, l10n

restore-automatic-update/restore-automatic-update.php Passed 13 tests

The principal PHP file in "Restore Automatic Update (ru_RU)" v. 0.5 is loaded by WordPress automatically on each request
104 characters long description:
Allows you to update any outdated Russian WordPress package to the latest release from ru.wordpress.org.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1181162

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin