89% miinto-feed-generator

Code Review | Miinto Feed Generator

WordPress plugin Miinto Feed Generator scored 89% from 54 tests.

About plugin

  • Plugin page: miinto-feed-gener...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.7.3
  • WordPress version: 6.3.1
  • First release: Feb 27, 2017
  • Latest release: Feb 19, 2020
  • Number of updates: 7
  • Update frequency: every 153.1 days
  • Top authors: therightsw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.68MB] [CPU: ▼14.89ms] Passed 4 tests

Analyzing server-side resources used by Miinto Feed Generator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.39 ▲1.09
Dashboard /wp-admin3.33 ▲0.0244.54 ▼1.20
Posts /wp-admin/edit.php3.38 ▲0.0245.96 ▲1.96
Add New Post /wp-admin/post-new.php3.11 ▼2.7838.11 ▼59.23
Media Library /wp-admin/upload.php3.25 ▲0.0234.63 ▼0.23
Miinto Feeds /wp-admin/admin.php?page=mfp_miinto_feed3.2130.77

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Miinto Feed Generator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.80 ▲0.431.94 ▲0.3744.48 ▼0.25
Dashboard /wp-admin2,209 ▲214.87 ▼0.99101.92 ▼6.1339.36 ▼2.18
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0438.97 ▲3.3035.52 ▲2.94
Add New Post /wp-admin/post-new.php1,533 ▲1923.18 ▲5.68679.81 ▲48.9963.08 ▼3.70
Media Library /wp-admin/upload.php1,391 ▲34.29 ▲0.0897.15 ▼0.9743.66 ▼0.26
Miinto Feeds /wp-admin/admin.php?page=mfp_miinto_feed7932.0224.7630.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

miinto-feed-generator/mfp-miinto-feeds.php 85% from 13 tests

"Miinto Feed Generator" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 148 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("miinto-feed-generator.php" instead of "mfp-miinto-feeds.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
Good job! No executable or dangerous file extensions detected170 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34340170

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin