84% include-mastodon-feed

Code Review | Include Mastodon Feed

WordPress plugin Include Mastodon Feed scored84%from 54 tests.

About plugin

  • Plugin page: include-mastodon-...
  • Plugin version: 1.9.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 2, 2022
  • Latest release: Oct 13, 2023
  • Number of updates: 28
  • Update frequency: every 11.2 days
  • Top authors: wolfgang101 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

600+ active /4,590 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.20ms] Passed 4 tests

This is a short check of server-side resources used by Include Mastodon Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.41 ▼10.99
Dashboard /wp-admin3.40 ▲0.0949.07 ▲0.94
Posts /wp-admin/edit.php3.45 ▲0.0946.69 ▼5.84
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.45 ▼8.79
Media Library /wp-admin/upload.php3.32 ▲0.0935.08 ▲0.82

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Include Mastodon Feed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.54 ▲0.171.77 ▲0.0142.62 ▼2.14
Dashboard /wp-admin2,195 ▲155.65 ▲0.0682.33 ▼7.9535.35 ▼8.12
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0236.20 ▼3.2733.97 ▼5.09
Add New Post /wp-admin/post-new.php1,527 ▲123.12 ▲0.13606.57 ▼6.7945.35 ▼18.79
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.05101.93 ▲0.7647.19 ▲3.52

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function IncludeMastodonFeedPlugin\\add_action() in wp-content/plugins/include-mastodon-feed/plugin.php:294

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: status, mastodon, feed

include-mastodon-feed/plugin.php 92% from 13 tests

"Include Mastodon Feed" version 1.9.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("include-mastodon-feed.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin666 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28186666

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants27
▷ Global constants27100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin