83% restore-classic-widgets

Code Review | WP Restore and Enable Classic Widgets Plugin No Expiration

WordPress plugin WP Restore and Enable Classic Widgets Plugin No Expiration scored83%from 54 tests.

About plugin

  • Plugin page: restore-classic-w...
  • Plugin version: 3.5
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Jul 16, 2021
  • Latest release: Oct 17, 2023
  • Number of updates: 147
  • Update frequency: every 5.6 days
  • Top authors: sminozzi (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

10,000+ active /147,024 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.97ms] Passed 4 tests

A check of server-side resources used by WP Restore and Enable Classic Widgets Plugin No Expiration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.58 ▼0.77
Dashboard /wp-admin3.45 ▲0.1546.33 ▼2.36
Posts /wp-admin/edit.php3.57 ▲0.2149.43 ▲2.59
Add New Post /wp-admin/post-new.php6.05 ▲0.1694.34 ▼0.06
Media Library /wp-admin/upload.php3.38 ▲0.1439.77 ▼0.68
More Useful Tools /wp-admin/tools.php?page=restorecw_new_more_plugins3.3633.00

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
bill_show_warnings
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Restore and Enable Classic Widgets Plugin No Expiration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3213.59 ▼0.771.71 ▼0.3039.71 ▼5.23
Dashboard /wp-admin2,219 ▲455.36 ▼0.3187.79 ▼9.4039.53 ▼5.22
Posts /wp-admin/edit.php2,130 ▲332.39 ▲0.4543.82 ▲7.8935.32 ▲1.92
Add New Post /wp-admin/post-new.php1,548 ▲1723.46 ▲0.28666.09 ▲14.9162.92 ▲2.81
Media Library /wp-admin/upload.php1,430 ▲304.59 ▲0.2098.16 ▼19.6144.45 ▼3.29
More Useful Tools /wp-admin/tools.php?page=restorecw_new_more_plugins9472.0329.9427.49

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • bill_show_warnings
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/restore-classic-widgets/restore_classic_widgets.php
    • > /wp-content/plugins/restore-classic-widgets/includes/checkup/bill_class_diagnose.php
    • > /wp-content/plugins/restore-classic-widgets/includes/checkup/class_bill_catch_errors.php

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 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Classic Widgets Screen) image missing
The official readme.txt might help

restore-classic-widgets/restore_classic_widgets.php 77% from 13 tests

Analyzing the main PHP file in "WP Restore and Enable Classic Widgets Plugin No Expiration" version 3.5
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("restore-classic-widgets.php" instead of "restore_classic_widgets.php")
  • Description: The description should be shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,421 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP31431291,194
CSS16095
JavaScript111392
PO File1101040

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity16.33
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/checkup/bell.png1.07KB0.27KB▼ 74.45%