10% pinterest-pinboard-widget

Code Review | Pinterest Pinboard Widget

WordPress plugin Pinterest Pinboard Widget scored10%from 54 tests.

About plugin

  • Plugin page: pinterest-pinboar...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2012
  • Latest release: Mar 5, 2015
  • Number of updates: 56
  • Update frequency: every 20.4 days
  • Top authors: codefish (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /77,287 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
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php+43
    Methods with the same name as their class will not be constructors in a future version of PHP; Pinterest_Pinboard has a deprecated constructor

Server metrics [RAM: ▼1.87MB] [CPU: ▼58.24ms] Passed 4 tests

Server-side resources used by Pinterest Pinboard Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.344.75 ▼37.33
Dashboard /wp-admin2.15 ▼1.205.53 ▼59.05
Posts /wp-admin/edit.php2.15 ▼1.215.78 ▼44.23
Add New Post /wp-admin/post-new.php2.15 ▼3.748.42 ▼92.36
Media Library /wp-admin/upload.php2.15 ▼1.096.10 ▼27.32

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_pinterest-pinboard-widget

Browser metrics Passed 4 tests

A check of browser resources used by Pinterest Pinboard Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.40 ▲0.121.71 ▲0.0142.18 ▲5.09
Dashboard /wp-admin2,209 ▲174.87 ▼0.2296.78 ▼21.5736.91 ▼8.90
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0538.78 ▲0.7634.50 ▼3.51
Add New Post /wp-admin/post-new.php1,542 ▲2823.18 ▲5.59613.14 ▼57.2150.85 ▼1.75
Media Library /wp-admin/upload.php1,385 ▼34.22 ▲0.0293.89 ▼13.8343.46 ▼6.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php+43
    Methods with the same name as their class will not be constructors in a future version of PHP; Pinterest_Pinboard has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_pinterest-pinboard-widget
    • 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 | 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 | 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
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php on line 28
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php on line 28
    • > PHP Warning
      include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php on line 28
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php on line 28
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pinterest-pinboard-widget/pinterest-pinboard-widget.php:173

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Settings of the widget under: Appearance > Widgets), #2 (This is the Pinterest Pinboard widget in the sidebar of the Twenty Eleven WordPress theme)
You can look at the official readme.txt

pinterest-pinboard-widget/pinterest-pinboard-widget.php Passed 13 tests

The entry point to "Pinterest Pinboard Widget" version 1.0.7 is a PHP file that has certain tags in its header comment area
59 characters long description:
Add a Pinterest Pinboard widget and shortcode to WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected210 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14255199
CSS12011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity9.50
▷ Minimum class complexity8.00
▷ Maximum class complexity11.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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