89% superb-recent-posts-with-thumbnail-images

Code Review | Superb Recent Posts With Thumbnail Images

WordPress plugin Superb Recent Posts With Thumbnail Images scored89%from 54 tests.

About plugin

  • Plugin page: superb-recent-pos...
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2021
  • Latest release: Jan 2, 2023
  • Number of updates: 10
  • Update frequency: every 67.7 days
  • Top authors: suplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /53,314 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.62ms] Passed 4 tests

A check of server-side resources used by Superb Recent Posts With Thumbnail Images
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.54 ▲2.68
Dashboard /wp-admin3.38 ▲0.0847.53 ▼1.59
Posts /wp-admin/edit.php3.50 ▲0.1445.57 ▼5.20
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.67 ▼18.57
Media Library /wp-admin/upload.php3.31 ▲0.0733.99 ▼5.12

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_spbrposts_widget

Browser metrics Passed 4 tests

Checking browser requirements for Superb Recent Posts With Thumbnail Images
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.071.86 ▲0.2943.56 ▲4.54
Dashboard /wp-admin2,206 ▲184.88 ▼1.01111.61 ▼5.0441.92 ▼3.77
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0239.13 ▼4.2035.15 ▼1.82
Add New Post /wp-admin/post-new.php1,542 ▼018.37 ▼0.02608.03 ▼56.0263.10 ▲12.93
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0694.27 ▼14.5540.38 ▼8.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_spbrposts_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
4 plugin tags: with, recent, images, posts

superb-recent-posts-with-thumbnail-images/superb-recent-posts-with-images.php 85% from 13 tests

"Superb Recent Posts With Thumbnail Images" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("superb-recent-posts-with-thumbnail-images.php" instead of "superb-recent-posts-with-images.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected961 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP16162264806
CSS2220148
JSON1007

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity9.62
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods51
▷ Static methods713.73%
▷ Public methods4384.31%
▷ Protected methods00.00%
▷ Private methods815.69%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants17
▷ Global constants529.41%
▷ Class constants1270.59%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/45x45_placeholder.png2.21KB0.51KB▼ 76.93%