94% pinboard-bookmarks

Code Review | Pinboard Bookmarks

WordPress plugin Pinboard Bookmarks scored 94% from 54 tests.

About plugin

  • Plugin page: pinboard-bookmarks
  • Plugin version: 1.15.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 5.9.2
  • First release: Dec 31, 2016
  • Latest release: Jul 10, 2021
  • Number of updates: 50
  • Update frequency: every 33.0 days
  • Top authors: aldolat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 2,415 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼282.62ms] Passed 4 tests

A check of server-side resources used by Pinboard Bookmarks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3066.13 ▲15.43
Dashboard /wp-admin3.64 ▲0.2347.55 ▲12.05
Posts /wp-admin/edit.php3.87 ▲0.2343.03 ▲3.81
Add New Post /wp-admin/post-new.php7.11 ▲0.14103.86 ▼1,161.77
Media Library /wp-admin/upload.php3.52 ▲0.2365.88 ▲38.41

Server storage [IO: ▲0.17MB] [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: 22 new files
Database: no new tables, 1 new option
New WordPress options
widget_pinboard_bookmarks_widget

Browser metrics Passed 4 tests

Checking browser requirements for Pinboard Bookmarks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1615.90 ▲0.045.69 ▼0.772.32 ▼0.23
Dashboard /wp-admin2,895 ▲376.09 ▼0.04137.29 ▼1.73152.14 ▼52.92
Posts /wp-admin/edit.php2,691 ▼33.23 ▲0.1465.88 ▲0.74200.28 ▲57.97
Add New Post /wp-admin/post-new.php1,690 ▼6820.69 ▼1.14445.87 ▲22.25162.26 ▼14.90
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.09144.83 ▼10.37193.25 ▼0.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 8× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pinboard-bookmarks/inc/pinboard-bookmarks-shortcode.php
    • > /wp-content/plugins/pinboard-bookmarks/inc/pinboard-bookmarks-core.php
    • > /wp-content/plugins/pinboard-bookmarks/pinboard-bookmarks.php
    • > /wp-content/plugins/pinboard-bookmarks/inc/class-pinboard-bookmarks-widget.php
    • > /wp-content/plugins/pinboard-bookmarks/inc/pinboard-bookmarks-functions-init.php
    • > /wp-content/plugins/pinboard-bookmarks/inc/pinboard-bookmarks-functions-items.php
    • > /wp-content/plugins/pinboard-bookmarks/inc/pinboard-bookmarks-functions-tools.php
    • > /wp-content/plugins/pinboard-bookmarks/inc/pinboard-bookmarks-widget-form-functions.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: shortcode, sidebar, pinboard, bookmarks, widget

pinboard-bookmarks/pinboard-bookmarks.php Passed 13 tests

The principal PHP file in "Pinboard Bookmarks" v. 1.15.0 is loaded by WordPress automatically on each request
50 characters long description:
Publish Pinboard bookmarks on your WordPress blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,023 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP113078401,480
Markdown31050347
CSS125161
JavaScript132535

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity8.50
▷ Minimum method complexity1.00
▷ Maximum method complexity30.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%
Functions26
▷ Named functions2596.15%
▷ Anonymous functions13.85%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin