83% wp-multisite-feed

Code Review | Inpsyde Multisite Feed

WordPress plugin Inpsyde Multisite Feed scored83%from 54 tests.

About plugin

  • Plugin page: wp-multisite-feed
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.0
  • WordPress version: 6.3.1
  • First release: Jul 13, 2012
  • Latest release: Aug 19, 2022
  • Number of updates: 44
  • Update frequency: every 83.9 days
  • Top authors: Bueltge (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /7,265 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼6.17ms] Passed 4 tests

A check of server-side resources used by Inpsyde Multisite Feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.59 ▼7.04
Dashboard /wp-admin3.50 ▲0.1944.63 ▼7.02
Posts /wp-admin/edit.php3.55 ▲0.1945.98 ▼2.27
Add New Post /wp-admin/post-new.php6.02 ▲0.1385.19 ▼8.33
Media Library /wp-admin/upload.php3.36 ▲0.1336.25 ▲4.44

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Inpsyde Multisite Feed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.79 ▲0.111.81 ▲0.0845.00 ▲3.17
Dashboard /wp-admin2,209 ▲185.85 ▼0.06106.10 ▼0.7041.16 ▼3.57
Posts /wp-admin/edit.php2,086 ▼02.02 ▼0.0239.47 ▲5.6635.58 ▲0.94
Add New Post /wp-admin/post-new.php1,514 ▼517.80 ▼5.28667.40 ▲16.9854.43 ▲1.83
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.02101.03 ▲0.8642.84 ▼1.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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 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
Please fix the following items
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\MultisiteFeed\\Renderer' not found in wp-content/plugins/wp-multisite-feed/inc/FeedRenderer.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\MultisiteFeed\\Cache\\Incrementor\\Incrementor' not found in wp-content/plugins/wp-multisite-feed/inc/Cache/Incrementor/SiteTransientIncrementor.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\MultisiteFeed\\Cache\\CacheHandler' not found in wp-content/plugins/wp-multisite-feed/inc/Cache/IncrementorBasedCacheGroup.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\MultisiteFeed\\Cache\\Incrementor\\Incrementor' not found in wp-content/plugins/wp-multisite-feed/inc/Cache/Incrementor/SiteOptionIncrementor.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Inpsyde\\MultisiteFeed\\add_action() in wp-content/plugins/wp-multisite-feed/inpsyde-multisite-feed.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\MultisiteFeed\\RequestValidator' not found in wp-content/plugins/wp-multisite-feed/inc/FeedRequestValidator.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Inpsyde\\MultisiteFeed\\Cache\\IncrementorBasedCacheGroup' not found in wp-content/plugins/wp-multisite-feed/inc/Cache/SiteTransientCache.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\MultisiteFeed\\FeedItemProvider' not found in wp-content/plugins/wp-multisite-feed/inc/NetworkFeedItemProvider.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Inpsyde\\MultisiteFeed\\PostFeedItem' not found in wp-content/plugins/wp-multisite-feed/inc/NetworkPostFeedItem.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Inpsyde\\MultisiteFeed\\DataStorage' not found in wp-content/plugins/wp-multisite-feed/inc/Settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Settings) image required
You can look at the official readme.txt

wp-multisite-feed/inpsyde-multisite-feed.php 85% from 13 tests

The principal PHP file in "Inpsyde Multisite Feed" v. 1.1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-multisite-feed.php" instead of "inpsyde-multisite-feed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,416 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
JSON1001,849
PHP334656221,524
Markdown113043

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.14
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces9
Traits0
Classes20
▷ Abstract classes15.00%
▷ Concrete classes1995.00%
▷ Final classes00.00%
Methods125
▷ Static methods75.60%
▷ Public methods11088.00%
▷ Protected methods86.40%
▷ Private methods75.60%
Functions17
▷ Named functions15.88%
▷ Anonymous functions1694.12%
Constants19
▷ Global constants00.00%
▷ Class constants19100.00%
▷ Public constants19100.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
There were not PNG files found in your plugin