84% add-pinterest-follow-button

Code Review | Add Follow Button For Pintrest

WordPress plugin Add Follow Button For Pintrest scored 84% from 54 tests.

About plugin

  • Plugin page: add-pinterest-fol...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 5.9.2
  • First release: Jan 2, 2015
  • Latest release: Mar 28, 2022
  • Number of updates: 42
  • Update frequency: every 62.9 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 79,178 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼305.14ms] Passed 4 tests

An overview of server-side resources used by Add Follow Button For Pintrest
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0876.75 ▼15.00
Dashboard /wp-admin3.48 ▲0.0743.74 ▼4.58
Posts /wp-admin/edit.php3.70 ▲0.0650.98 ▼9.87
Add New Post /wp-admin/post-new.php6.94 ▼0.03120.81 ▼1,191.12
Media Library /wp-admin/upload.php3.35 ▲0.0637.28 ▼4.12
Pinterest Follow /wp-admin/admin.php?page=weblizar_pinterest_plug3.3231.83
Configure /wp-admin/admin.php?page=weblizar_add_pinterest_config3.3229.91

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
widget_weblizar_pf

Browser metrics Passed 4 tests

An overview of browser requirements for Add Follow Button For Pintrest
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,927 ▲17316.29 ▲0.7717.79 ▲0.274.01 ▼1.27
Dashboard /wp-admin2,943 ▲646.39 ▼0.00189.48 ▼18.93200.67 ▼38.81
Posts /wp-admin/edit.php2,713 ▲433.44 ▲0.0085.02 ▼29.90187.58 ▲10.21
Add New Post /wp-admin/post-new.php1,654 ▲6017.75 ▼4.10566.06 ▼133.05196.96 ▼25.88
Media Library /wp-admin/upload.php1,723 ▲255.72 ▼0.01190.79 ▲7.70240.84 ▼15.66
Pinterest Follow /wp-admin/admin.php?page=weblizar_pinterest_plug1,0412.5768.42170.63
Configure /wp-admin/admin.php?page=weblizar_add_pinterest_config7092.5840.53114.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_weblizar_pf

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

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

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=weblizar_add_pinterest_config
    • > Network (severe)
    wp-admin/widgets.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

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
6 plugin tags: pinterest follow profile, pinterest, follow, pinterest follow button, pinterest follow...

add-pinterest-follow-button/add-pinterest-follow-button.php Passed 13 tests

The principal PHP file in "Add Follow Button For Pintrest" v. 1.2.8 is loaded by WordPress automatically on each request
95 characters long description:
Pinterest follow button plugin give an ability to maximize your followers of Pinterest account.

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
Good job! No executable or dangerous file extensions detected573 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS2683368
PHP32950182
JavaScript20023

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods444.44%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/plus.PNG0.23KB0.16KB▼ 31.36%