83% gravity-forms-rss

Code Review | Gravity Forms RSS Add-On

WordPress plugin Gravity Forms RSS Add-On scored83%from 54 tests.

About plugin

  • Plugin page: gravity-forms-rss
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.5
  • WordPress version: 6.3.1
  • First release: Jul 31, 2012
  • Latest release: Apr 11, 2016
  • Number of updates: 10
  • Update frequency: every 135.1 days
  • Top authors: katzwebdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,260 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.00MB] [CPU: ▼2.72ms] Passed 4 tests

Analyzing server-side resources used by Gravity Forms RSS Add-On
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.58 ▲0.83
Dashboard /wp-admin3.31 ▲0.0145.32 ▼1.11
Posts /wp-admin/edit.php3.36 ▲0.0042.35 ▼7.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.65 ▼3.48
Media Library /wp-admin/upload.php3.23 ▲0.0038.00 ▲8.66

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Gravity Forms RSS Add-On
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.61 ▼0.821.87 ▼0.0944.29 ▲0.26
Dashboard /wp-admin2,206 ▲215.88 ▲1.01101.86 ▼10.8337.51 ▼1.03
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0133.50 ▼2.4932.89 ▼3.05
Add New Post /wp-admin/post-new.php1,535 ▲123.06 ▼0.04591.10 ▼78.8243.32 ▼14.25
Media Library /wp-admin/upload.php1,391 ▼04.29 ▲0.0895.88 ▼2.2141.80 ▼0.16

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-rss/gravity-forms-rss.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (The field in the editor), #2 (The field in a form)
The official readme.txt might help

gravity-forms-rss/gravity-forms-rss.php 85% from 13 tests

The main PHP file in "Gravity Forms RSS Add-On" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin235 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15223181
PO File1131354

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods880.00%
▷ Protected methods110.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png59.74KB33.18KB▼ 44.47%