10% realsatisfied-widget

Code Review | RealSatisfied Widget

WordPress plugin RealSatisfied Widget scored10%from 54 tests.

About plugin

  • Plugin page: realsatisfied-widget
  • Plugin version: 1.9.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Aug 29, 2012
  • Latest release: Mar 16, 2020
  • Number of updates: 72
  • Update frequency: every 38.3 days
  • Top authors: RealSatisfied (91.67%)hardlyneutral (5.56%)Zengy (4.17%)Otto42 (2.78%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /6,287 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
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/realsatisfied-widget/realsatisfied.php+466
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.58ms] Passed 4 tests

This is a short check of server-side resources used by RealSatisfied Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.36 ▼35.50
Dashboard /wp-admin2.05 ▼1.266.62 ▼46.33
Posts /wp-admin/edit.php2.05 ▼1.316.04 ▼46.88
Add New Post /wp-admin/post-new.php2.05 ▼3.846.10 ▼85.59
Media Library /wp-admin/upload.php2.05 ▼1.184.66 ▼35.02

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_real_satisfied_testimonials_widget
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for RealSatisfied Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲18113.64 ▼0.527.05 ▲5.2943.24 ▲0.14
Dashboard /wp-admin2,210 ▲284.86 ▼1.1398.85 ▼5.4743.42 ▼2.38
Posts /wp-admin/edit.php2,101 ▲152.05 ▲0.0543.78 ▲4.9636.19 ▼4.19
Add New Post /wp-admin/post-new.php1,531 ▼1323.19 ▲5.11632.47 ▼4.7245.93 ▼16.23
Media Library /wp-admin/upload.php1,400 ▲124.28 ▲0.06101.07 ▼3.3343.52 ▼1.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/realsatisfied-widget/realsatisfied.php+466
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_real_satisfied_testimonials_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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 no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/realsatisfied-widget/realsatisfied.php:34

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings within the widget), #2 (Example of display on a WordPress Site)
The official readme.txt might help

realsatisfied-widget/realsatisfied.php 92% from 13 tests

The primary PHP file in "RealSatisfied Widget" version 1.9.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("realsatisfied-widget.php" instead of "realsatisfied.php")

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
No dangerous file extensions were detected1,276 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript294116737
PHP19066377
CSS23623162

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity14.50
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
flexslider/images/bg_direction_nav.png1.82KB0.79KB▼ 56.38%
images/RealSatisfied-Trust-Seal-80pix.png12.78KB4.78KB▼ 62.63%