10% advanced-css3-related-posts-widget

Code Review | Related Posts Widget with Thumbnails

WordPress plugin Related Posts Widget with Thumbnails scored 10% from 54 tests.

About plugin

  • Plugin page: advanced-css3-rel...
  • Plugin version: 1.0.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3.1
  • WordPress version: 5.9.2
  • First release: Feb 21, 2014
  • Latest release: Oct 18, 2015
  • Number of updates: 15
  • Update frequency: every 40.3 days
  • Top authors: wp-buy (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active / 16,354 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
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/advanced-css3-related-posts-widget/related.php+439
    Function create_function() is deprecated

Server metrics [RAM: ▼2.53MB] [CPU: ▼341.82ms] Passed 4 tests

An overview of server-side resources used by Related Posts Widget with Thumbnails
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.684.51 ▼46.57
Dashboard /wp-admin1.86 ▼1.554.22 ▼29.48
Posts /wp-admin/edit.php1.86 ▼1.784.14 ▼34.38
Add New Post /wp-admin/post-new.php1.86 ▼5.114.72 ▼1,256.83
Media Library /wp-admin/upload.php1.86 ▼1.444.02 ▼28.56
Related Posts widget /wp-admin/options-general.php?page=RelatedPostswidgetoptions1.864.26

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 1 new option
New WordPress options
widget_relatedpostswidget

Browser metrics Passed 4 tests

A check of browser resources used by Related Posts Widget with Thumbnails
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,808 ▲5416.01 ▲0.036.71 ▲0.933.13 ▼0.03
Dashboard /wp-admin2,905 ▲476.02 ▼0.23115.40 ▼17.05157.18 ▼4.84
Posts /wp-admin/edit.php2,704 ▲103.25 ▲0.0162.93 ▼0.82137.21 ▼2.66
Add New Post /wp-admin/post-new.php1,668 ▼9216.98 ▼0.29401.55 ▼49.06149.41 ▼10.18
Media Library /wp-admin/upload.php1,711 ▲135.53 ▼0.00147.68 ▼2.52186.79 ▼5.22
Related Posts widget /wp-admin/options-general.php?page=RelatedPostswidgetoptions1,7862.4355.93124.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/advanced-css3-related-posts-widget/related.php+439
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_relatedpostswidget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=RelatedPostswidgetoptions
    • > Deprecated in wp-content/plugins/advanced-css3-related-posts-widget/related.php+439
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=RelatedPostswidgetoptions
    • > Notice in wp-content/plugins/advanced-css3-related-posts-widget/admin-core.php+410
    Undefined index: rpw_Style

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
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/advanced-css3-related-posts-widget/the_globals.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/advanced-css3-related-posts-widget/the_globals.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/advanced-css3-related-posts-widget/the_globals.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/advanced-css3-related-posts-widget/the_globals.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/advanced-css3-related-posts-widget/the_globals.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (How to install the plugin2. activating the plugin3. Final result (related posts in action))
You can take inspiration from this readme.txt

advanced-css3-related-posts-widget/related.php 85% from 13 tests

Analyzing the main PHP file in "Related Posts Widget with Thumbnails" version 1.0.0.4
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 289 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-css3-related-posts-widget.php" instead of "related.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,291 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5620761,105
JavaScript12624130
CSS2161550
INI1006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.37MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/css3-widethumbs.png1.15KB0.70KB▼ 39.42%
images/rpw-css3-promo.png91.49KB33.83KB▼ 63.02%
images/thumbwithdesc.png0.84KB0.55KB▼ 35.30%
images/css3-bigthumbs.png1.33KB0.82KB▼ 38.69%
images/thmbsright.png1.57KB1.03KB▼ 34.23%