84% b-pinterest-feed

Code Review | B Pinterest Feed – Pinterest Feed Plugin for WordPress

WordPress plugin B Pinterest Feed – Pinterest Feed Plugin for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: b-pinterest-feed
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.2
  • WordPress version: 6.3.1
  • First release: May 12, 2020
  • Latest release: Oct 14, 2023
  • Number of updates: 39
  • Update frequency: every 32.1 days
  • Top authors: abuhayat (76.92%)shehabulislam (25.64%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /3,367 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.53MB] [CPU: ▲9.31ms] Passed 4 tests

An overview of server-side resources used by B Pinterest Feed – Pinterest Feed Plugin for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.01 ▲1.5560.56 ▲16.98
Dashboard /wp-admin4.83 ▲1.5362.20 ▲6.65
Posts /wp-admin/edit.php4.88 ▲1.5362.51 ▲10.57
Add New Post /wp-admin/post-new.php7.42 ▲1.53108.63 ▲3.05
Media Library /wp-admin/upload.php4.76 ▲1.5358.39 ▲21.24
Add Pinterest /wp-admin/post-new.php?post_type=kpp_pinterest4.8164.75
Pinterests /wp-admin/edit.php?post_type=kpp_pinterest4.8352.72
Help /wp-admin/edit.php?post_type=kpp_pinterest&page=pfree_help4.7648.77
Pinterest Settings /wp-admin/edit.php?post_type=kpp_pinterest&page=kpp_settings4.7663.40

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

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

Browser metrics Passed 4 tests

B Pinterest Feed – Pinterest Feed Plugin for WordPress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲19913.74 ▼0.4310.42 ▲8.7844.91 ▲7.51
Dashboard /wp-admin2,241 ▲675.65 ▼0.0185.72 ▼4.1140.15 ▼0.36
Posts /wp-admin/edit.php2,143 ▲431.98 ▲0.0138.40 ▼3.2132.80 ▼1.95
Add New Post /wp-admin/post-new.php1,560 ▲2523.00 ▲4.64609.82 ▼41.1752.08 ▼14.62
Media Library /wp-admin/upload.php1,449 ▲524.21 ▼0.0298.17 ▼7.1644.51 ▼0.84
Add Pinterest /wp-admin/post-new.php?post_type=kpp_pinterest1,7674.1870.2540.79
Pinterests /wp-admin/edit.php?post_type=kpp_pinterest1,3163.8856.1727.55
Help /wp-admin/edit.php?post_type=kpp_pinterest&page=pfree_help1,63510.16283.4592.03
Pinterest Settings /wp-admin/edit.php?post_type=kpp_pinterest&page=kpp_settings1,0793.5646.4828.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • _kp_pinterest_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/b-pinterest-feed/includes/custom-css.php:2

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: image gallery, photo gallery, feed, pinterest, pinterest feed

b-pinterest-feed/b-pinterest-feed.php 92% from 13 tests

This is the main PHP file of "B Pinterest Feed – Pinterest Feed Plugin for WordPress" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin27,749 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
PHP882,6401,2667,912
PO File203,0373,4146,180
Sass1595934,837
CSS63594934,806
JavaScript81,2693594,012
SVG2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity22.94
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity6.33
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes69
▷ Abstract classes22.90%
▷ Concrete classes6797.10%
▷ Final classes00.00%
Methods284
▷ Static methods4917.25%
▷ Public methods284100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/views/framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
admin/assets/images/icon-256.png60.85KB22.84KB▼ 62.47%