84% shortcode-mastodon-feeds

Code Review | Shortcode Mastodon Feeds

WordPress plugin Shortcode Mastodon Feeds scored84%from 54 tests.

About plugin

  • Plugin page: shortcode-mastodo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2023
  • Latest release: Jan 7, 2023
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: aleahey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,526 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.32ms] Passed 4 tests

A check of server-side resources used by Shortcode Mastodon Feeds
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.62 ▼4.56
Dashboard /wp-admin3.33 ▲0.0347.02 ▼1.05
Posts /wp-admin/edit.php3.38 ▲0.0247.68 ▲1.19
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.62 ▲8.07
Media Library /wp-admin/upload.php3.25 ▲0.0237.09 ▲3.16

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shortcode Mastodon Feeds
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.96 ▲0.651.79 ▼0.3142.27 ▼1.41
Dashboard /wp-admin2,203 ▲515.84 ▲0.2194.80 ▼18.0138.27 ▼5.57
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0442.16 ▲3.2135.68 ▲1.39
Add New Post /wp-admin/post-new.php1,535 ▲2123.18 ▼0.30661.20 ▼30.3955.07 ▼0.13
Media Library /wp-admin/upload.php1,385 ▼34.20 ▲0.0494.68 ▼20.4745.89 ▼3.64

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shortcode-mastodon-feeds/shortcode-mastodon-feeds.php:30

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: mastodon, shortcode

shortcode-mastodon-feeds/shortcode-mastodon-feeds.php Passed 13 tests

The main file in "Shortcode Mastodon Feeds" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
Display your Mastodon posts on a WordPress page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin111 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2246088
Markdown114023

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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
Namespaces0
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png20.36KB5.86KB▼ 71.21%
assets/icon-256x256.png13.64KB3.18KB▼ 76.65%