10% related-post-widget-side

Code Review | Related Post widget side

WordPress plugin Related Post widget side scored 10% from 54 tests.

About plugin

  • Plugin page: related-post-widg...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jul 5, 2016
  • Latest release: Aug 9, 2016
  • Number of updates: 4
  • Update frequency: every 9.0 days
  • Top authors: vwediting (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,488 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/related-post-widget-side/related-post-widget-side.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; relatedpostsCPWidget has a deprecated constructor

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

Analyzing server-side resources used by Related Post widget side
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.43 ▼43.14
Dashboard /wp-admin2.08 ▼1.226.18 ▼41.12
Posts /wp-admin/edit.php2.08 ▼1.275.56 ▼43.97
Add New Post /wp-admin/post-new.php2.08 ▼3.805.17 ▼85.73
Media Library /wp-admin/upload.php2.08 ▼1.155.62 ▼29.02

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_relatedpostscpwidget
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Related Post widget side
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.201.86 ▼0.3546.91 ▲1.30
Dashboard /wp-admin2,209 ▲244.93 ▼0.92100.62 ▼2.5040.97 ▼2.86
Posts /wp-admin/edit.php2,092 ▼02.03 ▼0.0238.86 ▼0.0233.96 ▼2.24
Add New Post /wp-admin/post-new.php1,533 ▼923.44 ▲5.30629.09 ▲10.8951.01 ▼2.02
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.0795.99 ▼3.1041.50 ▼0.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/related-post-widget-side/related-post-widget-side.php+15
    Methods with the same name as their class will not be constructors in a future version of PHP; relatedpostsCPWidget has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_relatedpostscpwidget
    • db_upgraded

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

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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/related-post-widget-side/related-post-widget-side.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === related-post-widget-side === )
  • Screenshots: Screenshot #1 (Screenshots) image not found
You can take inspiration from this readme.txt

related-post-widget-side/related-post-widget-side.php Passed 13 tests

The main PHP file in "Related Post widget side" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
Show Random related posts in sidebar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin54 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP123954

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin