84% pinterest-pin-it-button-on-image-hover-and-post

Code Review | Weblizar Pin It Button On Image Hover And Post

WordPress plugin Weblizar Pin It Button On Image Hover And Post scored84%from 54 tests.

About plugin

  • Plugin page: pinterest-pin-it-...
  • Plugin version: 4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4
  • WordPress version: 6.3.1
  • First release: Jan 9, 2015
  • Latest release: Nov 4, 2023
  • Number of updates: 70
  • Update frequency: every 46.0 days
  • Top authors: weblizar (100%)

Code review

54 tests

User reviews

62 reviews

Install metrics

20,000+ active /1,052,873 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.90ms] Passed 4 tests

This is a short check of server-side resources used by Weblizar Pin It Button On Image Hover And Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.35 ▼4.31
Dashboard /wp-admin3.32 ▼0.0245.00 ▼15.54
Posts /wp-admin/edit.php3.38 ▲0.0248.09 ▲1.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.03 ▼11.01
Media Library /wp-admin/upload.php3.25 ▲0.0235.20 ▼0.73

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 13 new options
New WordPress options
theysaidso_admin_options
WL_Enable_Pinit_Post
WL_Pinit_Btn_Size
WL_Enable_Pinit_Page
WL_Pinit_Btn_Design
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
WL_Pinit_Btn_Color
db_upgraded
...

Browser metrics Passed 4 tests

A check of browser resources used by Weblizar Pin It Button On Image Hover And Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲17315.06 ▲0.7116.05 ▲14.2543.49 ▼3.46
Dashboard /wp-admin2,214 ▲445.61 ▼0.0486.68 ▼18.0838.81 ▼0.45
Posts /wp-admin/edit.php2,119 ▲192.02 ▼0.0938.60 ▼3.2736.80 ▲0.51
Add New Post /wp-admin/post-new.php1,539 ▲1323.20 ▼0.23628.95 ▼81.7650.85 ▼24.22
Media Library /wp-admin/upload.php1,416 ▲164.17 ▲0.0598.21 ▼1.5844.03 ▲1.41

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 13 options
    • WL_Pinit_Btn_Design
    • WL_Pinit_Btn_Color
    • WL_Pinit_Btn_Size
    • WL_Enable_Pinit_Post
    • WL_Mobile_Status
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • WL_Pinit_Btn_On_Hover
    • widget_theysaidso_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pinterest-pin-it-button-on-image-hover-and-post/pinterest-pin-It-button.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pinterest-pin-it-button-on-image-hover-and-post/exclude-images.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pinterest-pin-it-button-on-image-hover-and-post/settings.php:4

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 96% from 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
4 plugin tags: pin images, pin it button, pin photo, pinterest

pinterest-pin-it-button-on-image-hover-and-post/pinterest-pin-It-button.php 92% from 13 tests

Analyzing the main PHP file in "Weblizar Pin It Button On Image Hover And Post" version 4.1
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pinterest-pin-it-button-on-image-hover-and-post.php" instead of "pinterest-pin-It-button.php")

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 detected7,509 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS3873846,010
PHP45649790
PO File41,3272,478694
JavaScript211215

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.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin