83% mo-rss-feed

Code Review | Mo RSS Feed

WordPress plugin Mo RSS Feed scored83%from 54 tests.

About plugin

  • Plugin page: mo-rss-feed
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Jan 19, 2018
  • Latest release: Nov 19, 2018
  • Number of updates: 6
  • Update frequency: every 50.8 days
  • Top authors: moduet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /841 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.95ms] Passed 4 tests

An overview of server-side resources used by Mo RSS Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.05 ▼0.39
Dashboard /wp-admin3.33 ▲0.0347.15 ▼2.03
Posts /wp-admin/edit.php3.39 ▲0.0349.64 ▲1.38
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.32 ▼7.82
Media Library /wp-admin/upload.php3.26 ▲0.0333.87 ▼1.56

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Mo RSS Feed: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5114.74 ▲0.611.91 ▼0.2044.73 ▼6.39
Dashboard /wp-admin2,206 ▲154.86 ▼0.23110.13 ▼7.9642.63 ▼9.68
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0239.92 ▲3.0834.80 ▲0.85
Add New Post /wp-admin/post-new.php1,545 ▲1118.30 ▼4.72623.45 ▼67.4354.07 ▼7.81
Media Library /wp-admin/upload.php1,388 ▼04.12 ▼0.07119.48 ▲8.6541.59 ▼5.30

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mo-rss-feed/index.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mo-rss-feed/shortcode/slider.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mo-rss-feed/shortcode/column.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: responsive, rss, shortcode, rss feed, jquery-rss...

mo-rss-feed/index.php 85% from 13 tests

"Mo RSS Feed" version 1.1'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:
  • Description: Please don't use more than 140 characters for the plugin description (currently 339 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("mo-rss-feed.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin652 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript25820265
CSS44829263
PHP32616124

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.78MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png395.66KB99.72KB▼ 74.80%
assets/screenshot-2.png338.38KB103.90KB▼ 69.30%
assets/icon-256x256.png28.29KB13.97KB▼ 50.63%
vendor/bxslider/images/controls.png2.74KB1.42KB▼ 48.29%
assets/icon-128x128.png12.49KB6.76KB▼ 45.87%