10% recover-text-widgets

Code Review | Recover Text Widgets

WordPress plugin Recover Text Widgets scored10%from 54 tests.

About plugin

  • Plugin page: recover-text-widgets
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2015
  • Latest release: Mar 20, 2015
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: abhi1441 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,021 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.93MB] [CPU: ▼56.62ms] Passed 4 tests

A check of server-side resources used by Recover Text Widgets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.66 ▼41.92
Dashboard /wp-admin2.08 ▼1.2211.81 ▼42.93
Posts /wp-admin/edit.php2.08 ▼1.285.80 ▼46.72
Add New Post /wp-admin/post-new.php2.08 ▼3.816.98 ▼94.92
Media Library /wp-admin/upload.php2.08 ▼1.156.28 ▼32.09

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Recover Text Widgets: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.36 ▲0.011.84 ▼0.1245.63 ▲4.64
Dashboard /wp-admin2,209 ▲295.58 ▼0.06101.81 ▲9.2163.31 ▲21.48
Posts /wp-admin/edit.php2,114 ▲141.98 ▲0.0036.82 ▼1.7632.22 ▼6.18
Add New Post /wp-admin/post-new.php1,690 ▲15321.87 ▲3.56699.22 ▲60.7458.27 ▼15.31
Media Library /wp-admin/upload.php1,408 ▲84.10 ▼0.06119.55 ▲10.9948.70 ▲1.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require_once(./admin.php): failed to open stream: No such file or directory in wp-content/plugins/recover-text-widgets/pages/recover.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required './admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/recover-text-widgets/pages/recover.php on line 5

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)
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 75% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Click on recover not button to recover widgets.)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === recover-text-widgets === )
  • Donate link: Invalid URI found ("mailto:abhi.sogga144@gmail.com")
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can look at the official readme.txt

recover-text-widgets/setup.php 92% from 13 tests

The primary PHP file in "Recover Text Widgets" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("recover-text-widgets.php" instead of "setup.php")

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
No dangerous file extensions were detected142 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3205597
JavaScript15530
CSS14515

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity1.33
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods12100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png87.05KB39.34KB▼ 54.80%
images/royal-experts-18x20.png0.53KB0.80KB0.00%