10% latest-posts-multisite-widget

Code Review | Latest Posts MultiSite Widget

WordPress plugin Latest Posts MultiSite Widget scored10%from 54 tests.

About plugin

  • Plugin page: latest-posts-mult...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2013
  • Latest release: Apr 10, 2013
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: wp4u.net (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,324 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/latest-posts-multisite-widget/latest_posts_multisite.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; WP4U_LatestPostsWidget has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼59.05ms] Passed 4 tests

An overview of server-side resources used by Latest Posts MultiSite Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.334.79 ▼39.15
Dashboard /wp-admin2.15 ▼1.155.65 ▼44.07
Posts /wp-admin/edit.php2.15 ▼1.215.50 ▼48.20
Add New Post /wp-admin/post-new.php2.15 ▼3.746.07 ▼104.77
Media Library /wp-admin/upload.php2.15 ▼1.085.53 ▼33.48

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_wp4u_latestpostswidget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Latest Posts MultiSite Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.41 ▼0.181.74 ▼0.0943.36 ▼0.78
Dashboard /wp-admin2,195 ▲185.55 ▼0.0688.21 ▲0.4340.12 ▼0.33
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0534.18 ▼4.9135.42 ▼0.84
Add New Post /wp-admin/post-new.php1,532 ▲16623.05 ▲6.32604.88 ▲82.7964.73 ▲17.45
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.0197.17 ▼6.2643.23 ▼4.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/latest-posts-multisite-widget/latest_posts_multisite.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; WP4U_LatestPostsWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_wp4u_latestpostswidget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/latest-posts-multisite-widget/latest_posts_multisite.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (Wordpress Admin Setting) image not found
Please take inspiration from this readme.txt

latest-posts-multisite-widget/latest_posts_multisite.php 85% from 13 tests

Analyzing the main PHP file in "Latest Posts MultiSite Widget" version 1.0
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("latest-posts-multisite-widget.php" instead of "latest_posts_multisite.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 313 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,187 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21281381,187

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity111.00
▷ Minimum class complexity16.00
▷ Maximum class complexity206.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods40
▷ Static methods37.50%
▷ Public methods922.50%
▷ Protected methods3075.00%
▷ Private methods12.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants46
▷ Global constants46100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png12.72KB8.25KB▼ 35.15%