84% pinterest-pin-shortcode

Code Review | Pinterest Pin Shortcode

WordPress plugin Pinterest Pin Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: pinterest-pin-sho...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 6.3.1
  • First release: Jan 20, 2013
  • Latest release: Apr 5, 2013
  • Number of updates: 5
  • Update frequency: every 17.4 days
  • Top authors: webbolt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.30ms] Passed 4 tests

This is a short check of server-side resources used by Pinterest Pin Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.43 ▼2.41
Dashboard /wp-admin3.31 ▲0.0051.84 ▼3.42
Posts /wp-admin/edit.php3.36 ▲0.0051.71 ▲1.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.83 ▼4.90
Media Library /wp-admin/upload.php3.23 ▲0.0042.07 ▲3.86

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Pinterest Pin Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲8114.48 ▲0.271.91 ▼0.0443.72 ▼4.40
Dashboard /wp-admin2,212 ▲245.82 ▼0.05139.15 ▲36.5942.14 ▼0.27
Posts /wp-admin/edit.php2,095 ▲61.97 ▼0.0339.13 ▼1.4538.38 ▲2.60
Add New Post /wp-admin/post-new.php1,426 ▼10722.33 ▼0.98572.67 ▼83.4243.00 ▼25.52
Media Library /wp-admin/upload.php1,400 ▲154.14 ▼0.02110.60 ▼2.8346.23 ▼1.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pinterest-pin-shortcode/pinterest-pin-shortcode.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: shortcode, pinterest, pin

pinterest-pin-shortcode/pinterest-pin-shortcode.php Passed 13 tests

The main PHP file in "Pinterest Pin Shortcode" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
109 characters long description:
You can insert a specific pin from Pinterest into your posts using shortcode. General use: [pin url=PIN_URL].

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182325

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin