10% pinterest-rss-widget

Code Review | Pinterest RSS Widget

WordPress plugin Pinterest RSS Widget scored 10% from 54 tests.

About plugin

  • Plugin page: pinterest-rss-widget
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.4-4.3
  • WordPress version: 5.8.1
  • First release: Jan 17, 2012
  • Latest release: Aug 28, 2015
  • Number of updates: 65
  • Update frequency: every 20.3 days
  • Top authors: bkmacdaddy (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

5,000+ active / 106,316 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/pinterest-rss-widget/pinterest-rss-widget.php+303
    Function create_function() is deprecated

Server metrics [RAM: ▼1.75MB] [CPU: ▼198.62ms] Passed 4 tests

Server-side resources used by Pinterest RSS Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.88 ▼0.835.57 ▼19.15
Dashboard /wp-admin1.90 ▼1.155.73 ▼53.67
Posts /wp-admin/edit.php1.90 ▼1.205.94 ▼45.65
Add New Post /wp-admin/post-new.php1.90 ▼3.538.56 ▼663.55
Media Library /wp-admin/upload.php1.90 ▼1.108.27 ▼31.59

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
widget_pinterest_rss_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Pinterest RSS Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,812 ▲17516.39 ▲0.5017.86 ▲7.5852.57 ▲3.09
Dashboard /wp-admin2,967 ▲335.85 ▼0.16152.86 ▼12.46124.43 ▼2.70
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0074.96 ▲3.22100.77 ▲7.56
Add New Post /wp-admin/post-new.php1,683 ▲10218.79 ▼1.66422.42 ▼4.24114.93 ▼8.48
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.00172.29 ▲0.79132.50 ▲3.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/pinterest-rss-widget/pinterest-rss-widget.php+303
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_pinterest_rss_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pinterest-rss-widget/pinterest-rss-widget.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (The widget settings), #2 (Widget on the front end with 9 Pins and titles displaying), #3 (Choose one of four buttons (or none) to display beneath the list of Pins)
The official readme.txt is a good inspiration

pinterest-rss-widget/pinterest-rss-widget.php 92% from 13 tests

The main PHP script in "Pinterest RSS Widget" version 2.3.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 274 characters long)

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 plugin251 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15532220
CSS15129
JavaScript1002

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.23
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin