90% wp-pinboard

Code Review | WP Pinboard

WordPress plugin WP Pinboard scored90%from 54 tests.

About plugin

  • Plugin page: wp-pinboard
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.3
  • WordPress version: 6.3.1
  • First release: Aug 5, 2015
  • Latest release: Aug 5, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: joshstauffer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /979 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.93ms] Passed 4 tests

Server-side resources used by WP Pinboard
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.82 ▲5.01
Dashboard /wp-admin3.33 ▲0.0345.34 ▼5.98
Posts /wp-admin/edit.php3.38 ▲0.0344.10 ▼5.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.58 ▲0.21
Media Library /wp-admin/upload.php3.26 ▲0.0333.39 ▼0.78

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

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

Browser metrics Passed 4 tests

WP Pinboard: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.27 ▼0.081.74 ▲0.1544.27 ▲3.87
Dashboard /wp-admin2,198 ▲175.62 ▼0.0181.44 ▼20.1238.52 ▼2.44
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0235.77 ▼0.5632.64 ▼6.39
Add New Post /wp-admin/post-new.php1,526 ▼223.48 ▲0.13589.72 ▼128.3163.68 ▲11.17
Media Library /wp-admin/upload.php1,394 ▲34.17 ▼0.0595.64 ▼5.4643.02 ▲0.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: feed, bookmarks, pinboard

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

The primary PHP file in "WP Pinboard" version 1.0 is used by WordPress to initiate all plugin functionality
140 characters long description:
Adds a shortcode to display Pinboard.in bookmarks in your content, widgets, or templates. Public feeds can be filtered by usernames or tags.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected148 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24283137
CSS10011

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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
No PNG files were detected