89% advanced-css3-related-posts-widget

Code Review | Related Posts Widget with Thumbnails

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

About plugin

  • Plugin page: advanced-css3-rel...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2014
  • Latest release: Oct 3, 2023
  • Number of updates: 16
  • Update frequency: every 219.5 days
  • Top authors: wp-buy (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /16,802 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.79ms] Passed 4 tests

An overview of server-side resources used by Related Posts Widget with Thumbnails
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.65 ▲0.48
Dashboard /wp-admin3.32 ▼0.0345.77 ▼12.34
Posts /wp-admin/edit.php3.37 ▲0.0143.52 ▼7.09
Add New Post /wp-admin/post-new.php5.91 ▲0.0377.81 ▼24.20
Media Library /wp-admin/upload.php3.24 ▲0.0136.44 ▲0.91
Related Posts widget /wp-admin/options-general.php?page=RelatedPostswidgetoptions3.3330.01

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_related-posts-widget

Browser metrics Passed 4 tests

An overview of browser requirements for Related Posts Widget with Thumbnails
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.34 ▲0.071.82 ▲0.2648.30 ▲6.91
Dashboard /wp-admin2,203 ▲265.65 ▲0.0393.63 ▲4.9741.59 ▼0.92
Posts /wp-admin/edit.php2,108 ▲51.99 ▲0.0333.41 ▼9.1433.99 ▼4.16
Add New Post /wp-admin/post-new.php1,533 ▲722.90 ▼0.10660.27 ▼9.7260.98 ▲8.70
Media Library /wp-admin/upload.php1,408 ▲54.24 ▲0.0798.42 ▼6.9744.18 ▼4.59
Related Posts widget /wp-admin/options-general.php?page=RelatedPostswidgetoptions1,5311.8126.4833.29

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_related-posts-widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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

readme.txt 94% 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 need to be fixed:
  • Screenshots: These screenshots require images: #1 (How to install the plugin), #2 (activating the plugin), #3 (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

The principal PHP file in "Related Posts Widget with Thumbnails" v. 1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,371 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5602791,185
JavaScript12624130
CSS2161550
INI1006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.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%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants0
▷ Global constants00.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
18 PNG files occupy 0.34MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/css3-thumblist.png0.72KB0.42KB▼ 41.06%
images/css3-justdetails.png0.87KB0.59KB▼ 31.57%
images/bigthumbs.png1.33KB0.89KB▼ 33.21%
images/css3-widethumbs.png1.15KB0.70KB▼ 39.42%
images/rpw-css3-promo.png91.49KB33.83KB▼ 63.02%