90% add-pinterest-follow-button

Code Review | Add Follow Button For Pintrest

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

About plugin

  • Plugin page: add-pinterest-fol...
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 2, 2015
  • Latest release: Oct 27, 2023
  • Number of updates: 49
  • Update frequency: every 65.7 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /87,498 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.05MB] [CPU: ▼6.68ms] Passed 4 tests

This is a short check of server-side resources used by Add Follow Button For Pintrest
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.93 ▲2.24
Dashboard /wp-admin3.37 ▲0.0245.54 ▼13.70
Posts /wp-admin/edit.php3.42 ▲0.0642.58 ▼4.98
Add New Post /wp-admin/post-new.php5.95 ▲0.0681.53 ▼10.27
Media Library /wp-admin/upload.php3.29 ▲0.0637.32 ▲2.56
Configure /wp-admin/admin.php?page=weblizar_add_pinterest_config3.2631.48
Pinterest Follow /wp-admin/admin.php?page=weblizar_pinterest_plug3.2630.13

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, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_weblizar_pf
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is 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 /2,895 ▲13413.47 ▼0.8810.36 ▲8.6243.88 ▼5.47
Dashboard /wp-admin2,218 ▲435.61 ▼0.1396.08 ▼17.7442.52 ▼2.68
Posts /wp-admin/edit.php2,123 ▲232.01 ▼0.0134.66 ▼3.0131.46 ▼3.50
Add New Post /wp-admin/post-new.php1,550 ▲2423.13 ▼0.14666.92 ▲25.7354.55 ▲1.04
Media Library /wp-admin/upload.php1,420 ▲174.22 ▼0.03105.22 ▲9.3844.58 ▼1.07
Configure /wp-admin/admin.php?page=weblizar_add_pinterest_config2,17025.16785.41110.87
Pinterest Follow /wp-admin/admin.php?page=weblizar_pinterest_plug8132.0024.7233.70

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 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_weblizar_pf
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: pinterest follow profile, follow, pinterest follow, pinterest, pinterest follow button...

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

The entry point to "Add Follow Button For Pintrest" version 1.3.5 is a PHP file that has certain tags in its header comment area
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 | A short review of files and their extensions; it is not recommended to include executable files
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

This is a very shot review 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%