84% auto-block-recovery

Code Review | Auto Block Recovery

WordPress plugin Auto Block Recovery scored84%from 54 tests.

About plugin

  • Plugin page: auto-block-recovery
  • Plugin version: 0.1.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 10, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 6
  • Update frequency: every 71.2 days
  • Top authors: shimotomoki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,142 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Auto Block Recovery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.87 ▼2.05
Dashboard /wp-admin3.31 ▼0.0443.33 ▼18.28
Posts /wp-admin/edit.php3.37 ▲0.0042.64 ▼2.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.68 ▼3.44
Media Library /wp-admin/upload.php3.24 ▲0.0035.27 ▲1.81

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Auto Block Recovery: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.75 ▲0.341.67 ▼0.2744.81 ▼0.22
Dashboard /wp-admin2,195 ▲155.51 ▼0.0786.70 ▼8.8337.57 ▼4.31
Posts /wp-admin/edit.php2,100 ▼31.97 ▲0.0336.34 ▼3.6034.42 ▼0.64
Add New Post /wp-admin/post-new.php1,528 ▲223.84 ▲0.68654.10 ▲46.8048.29 ▼9.66
Media Library /wp-admin/upload.php1,400 ▼34.21 ▼0.0199.99 ▼3.7141.42 ▼2.29

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-block-recovery/auto-block-recovery.php:18

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

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: block, gutenberg

auto-block-recovery/auto-block-recovery.php Passed 13 tests

The principal PHP file in "Auto Block Recovery" v. 0.1.4 is loaded by WordPress automatically on each request
50 characters long description:
This plugin automatically attempts block recovery.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin16 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP211515
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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 functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin