10% soup-show-off-upcoming-posts

Code Review | SOUP - Show off Upcoming Posts

WordPress plugin SOUP - Show off Upcoming Posts scored10%from 54 tests.

About plugin

  • Plugin page: soup-show-off-upc...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2.3
  • WordPress version: 6.3.1
  • First release: May 28, 2011
  • Latest release: Oct 1, 2019
  • Number of updates: 143
  • Update frequency: every 21.4 days
  • Top authors: thewanderingbrit (94.41%)deployer (6.29%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /16,995 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/soup-show-off-upcoming-posts/includes/widget.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; SoupWidget has a deprecated constructor

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.11ms] Passed 4 tests

This is a short check of server-side resources used by SOUP - Show off Upcoming Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.26 ▲0.81
Dashboard /wp-admin3.32 ▲0.0149.56 ▲1.85
Posts /wp-admin/edit.php3.37 ▲0.0148.28 ▲2.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.22 ▼13.57
Media Library /wp-admin/upload.php3.24 ▲0.0135.18 ▲3.89

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_soupwidget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by SOUP - Show off Upcoming Posts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.17 ▼1.202.07 ▲0.5147.60 ▲5.78
Dashboard /wp-admin2,200 ▲95.81 ▲0.89100.26 ▼1.2438.41 ▼2.05
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0135.31 ▼5.2129.76 ▲0.38
Add New Post /wp-admin/post-new.php1,534 ▲623.23 ▼0.12659.83 ▲12.3368.26 ▲21.55
Media Library /wp-admin/upload.php1,382 ▼64.21 ▼0.0993.62 ▼6.8239.93 ▼3.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_soupwidget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/soup-show-off-upcoming-posts/soup-show-off-upcoming-posts-widget.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/soup-show-off-upcoming-posts/includes/widget.php:21

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (An example of the widget in use.), #2 (The widget control panel.)
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can look at the official readme.txt

soup-show-off-upcoming-posts/soup-show-off-upcoming-posts-widget.php 92% from 13 tests

"SOUP - Show off Upcoming Posts" version 2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("soup-show-off-upcoming-posts.php" instead of "soup-show-off-upcoming-posts-widget.php")

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 plugin140 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32896140

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png22.23KB6.60KB▼ 70.30%