84% restore-admin-menu

Code Review | Restore Admin Menu (ru_RU)

WordPress plugin Restore Admin Menu (ru_RU) scored84%from 54 tests.

About plugin

  • Plugin page: restore-admin-menu
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: Sep 1, 2013
  • Latest release: May 5, 2015
  • Number of updates: 15
  • Update frequency: every 46.1 days
  • Top authors: SergeyBiryukov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,912 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 gracefully, with no errors

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

An overview of server-side resources used by Restore Admin Menu (ru_RU)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.06 ▲4.64
Dashboard /wp-admin3.31 ▲0.0147.61 ▼2.05
Posts /wp-admin/edit.php3.36 ▲0.0147.48 ▼1.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.90 ▼3.90
Media Library /wp-admin/upload.php3.23 ▲0.0036.68 ▼2.41

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Restore Admin Menu (ru_RU)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2813.92 ▼0.371.55 ▼0.0136.46 ▼6.46
Dashboard /wp-admin2,195 ▲155.56 ▼0.1097.76 ▼1.2339.27 ▲0.90
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0134.65 ▼4.0636.72 ▲2.49
Add New Post /wp-admin/post-new.php1,526 ▼223.49 ▲0.41610.05 ▼23.0658.00 ▲3.03
Media Library /wp-admin/upload.php1,394 ▼34.19 ▲0.0295.17 ▼7.1041.58 ▼1.52

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restore-admin-menu/restore-admin-menu.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: releases, l10n, update, ru_ru, admin

restore-admin-menu/restore-admin-menu.php Passed 13 tests

"Restore Admin Menu (ru_RU)" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
113 characters long description:
Restores the admin menu when updating from 3.1.x or an older install 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 plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13820

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin