84% sync-pinboard

Code Review | Sync Pinboard

WordPress plugin Sync Pinboard scored84%from 54 tests.

About plugin

  • Plugin page: sync-pinboard
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1
  • WordPress version: 6.3.1
  • First release: Apr 26, 2019
  • Latest release: Mar 29, 2023
  • Number of updates: 16
  • Update frequency: every 89.6 days
  • Top authors: magicroundabout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /615 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.43MB] [CPU: ▼12.59ms] Passed 4 tests

Server-side resources used by Sync Pinboard
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4740.37 ▼3.18
Dashboard /wp-admin3.76 ▲0.4155.18 ▼12.40
Posts /wp-admin/edit.php3.81 ▲0.4545.12 ▼7.24
Add New Post /wp-admin/post-new.php6.38 ▲0.5088.02 ▼27.54
Media Library /wp-admin/upload.php3.62 ▲0.3937.12 ▼1.22
All Pins /wp-admin/edit.php?post_type=pinboard-bookmark3.7342.23
Add New /wp-admin/post-new.php?post_type=pinboard-bookmark6.3888.35
Pinboard Tags /wp-admin/edit-tags.php?taxonomy=pinboard-tag&post_type=pinboard-bookmark3.6137.50
Sync Pinboard /wp-admin/options-general.php?page=sync-pinboard3.5934.81

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 134 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Sync Pinboard
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲4114.28 ▼0.251.67 ▼0.1545.01 ▲1.95
Dashboard /wp-admin2,227 ▲535.58 ▼0.0390.27 ▼1.3142.01 ▼1.65
Posts /wp-admin/edit.php2,135 ▲352.01 ▼0.0135.58 ▼4.8635.47 ▼4.24
Add New Post /wp-admin/post-new.php6,391 ▲4,85627.89 ▲9.88921.72 ▲278.7848.75 ▼18.31
Media Library /wp-admin/upload.php1,438 ▲384.21 ▼0.01109.62 ▲4.7247.02 ▼0.11
All Pins /wp-admin/edit.php?post_type=pinboard-bookmark1,1161.9740.8034.51
Add New /wp-admin/post-new.php?post_type=pinboard-bookmark6,22119.68870.1534.79
Pinboard Tags /wp-admin/edit-tags.php?taxonomy=pinboard-tag&post_type=pinboard-bookmark1,2812.2427.2431.22
Sync Pinboard /wp-admin/options-general.php?page=sync-pinboard9242.0421.6924.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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)
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 46× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/sync-pinboard/vendor/guzzlehttp/guzzle/src/Client.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/sync-pinboard/vendor/guzzlehttp/psr7/src/CachingStream.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/sync-pinboard/vendor/guzzlehttp/promises/src/CancellationException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/sync-pinboard/vendor/guzzlehttp/promises/src/TaskQueue.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/sync-pinboard/vendor/guzzlehttp/promises/src/EachPromise.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sync-pinboard/post-types/pinboard-bookmark.php:56
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/sync-pinboard/vendor/guzzlehttp/psr7/src/NoSeekStream.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/sync-pinboard/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/sync-pinboard/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/sync-pinboard/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
3 plugin tags: bookmarks, sync, pinboard

sync-pinboard/sync-pinboard.php 92% from 13 tests

The primary PHP file in "Sync Pinboard" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected12,508 lines of code in 125 files:
LanguageFilesBlank linesComment linesLines of code
PHP1041,7964,8968,651
Markdown1099503,193
JSON700487
JavaScript1102136
XML14018
YAML14014
make1409

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity12.48
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces10
Interfaces14
Traits2
Classes74
▷ Abstract classes00.00%
▷ Concrete classes74100.00%
▷ Final classes810.81%
Methods670
▷ Static methods7711.49%
▷ Public methods55783.13%
▷ Protected methods40.60%
▷ Private methods10916.27%
Functions147
▷ Named functions6040.82%
▷ Anonymous functions8759.18%
Constants50
▷ Global constants00.00%
▷ Class constants50100.00%
▷ Public constants50100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin