10% pretty-pinterest-pins

Code Review | Pretty Pinterest Pins

WordPress plugin Pretty Pinterest Pins scored10%from 54 tests.

About plugin

  • Plugin page: pretty-pinterest-...
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.3.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2012
  • Latest release: Sep 21, 2015
  • Number of updates: 13
  • Update frequency: every 103.2 days
  • Top authors: jowilki (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /41,321 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/pretty-pinterest-pins/pretty-pinterest-pins.php+19
    Methods with the same name as their class will not be constructors in a future version of PHP; Pretty_Pinterest_Pins has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼54.49ms] Passed 4 tests

Analyzing server-side resources used by Pretty Pinterest Pins
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.50 ▼44.41
Dashboard /wp-admin2.11 ▼1.195.32 ▼47.85
Posts /wp-admin/edit.php2.11 ▼1.245.86 ▼38.68
Add New Post /wp-admin/post-new.php2.11 ▼3.775.28 ▼87.00
Media Library /wp-admin/upload.php2.11 ▼1.116.33 ▼30.50

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_pretty_pinterest_pins
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Pretty Pinterest Pins
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.52 ▼0.851.79 ▼0.3542.30 ▼7.62
Dashboard /wp-admin2,206 ▲185.80 ▲0.8997.89 ▼17.7239.90 ▼3.41
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0237.38 ▼2.8135.32 ▲1.54
Add New Post /wp-admin/post-new.php1,538 ▲1923.35 ▲0.08680.63 ▼21.5159.12 ▼4.73
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.02109.67 ▲8.5647.46 ▲4.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/pretty-pinterest-pins/pretty-pinterest-pins.php+19
    Methods with the same name as their class will not be constructors in a future version of PHP; Pretty_Pinterest_Pins has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_pretty_pinterest_pins
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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/pretty-pinterest-pins/pretty-pinterest-pins.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (The widget showing 3 pins and all the options enabled), #2 (The settings interface is easy to use and straightforward)
Please take inspiration from this readme.txt

pretty-pinterest-pins/pretty-pinterest-pins.php Passed 13 tests

The main file in "Pretty Pinterest Pins" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Display your latest pins from Pinterest in your sidebar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin179 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12018179

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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