78% pinterest-master

Code Review | TechGasp Pin Master

WordPress plugin TechGasp Pin Master scored 78% from 54 tests.

About plugin

  • Plugin page: pinterest-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: May 23, 2013
  • Latest release: Mar 11, 2021
  • Number of updates: 64
  • Update frequency: every 44.5 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

600+ active / 72,486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.00ms] Passed 4 tests

A check of server-side resources used by TechGasp Pin Master
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.56 ▼0.08
Dashboard /wp-admin3.32 ▲0.0246.04 ▼4.72
Posts /wp-admin/edit.php3.38 ▲0.0247.64 ▼1.06
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.14 ▼6.13
Media Library /wp-admin/upload.php3.25 ▲0.0236.02 ▲0.33
Add-ons /wp-admin/admin.php?page=pinterest-master-admin-addons3.2931.26
Pin Master /wp-admin/admin.php?page=pinterest-master3.2530.44
Settings /wp-admin/admin.php?page=pinterest-master-admin-settings-wide3.3144.70

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 12 new options
New WordPress options
pinterest_master_system_wide_size_small
widget_pinterest_master_widget_buttons
pinterest_master_system_wide_shape_rectangular
pinterest_master_system_wide
pinterest_master_system_wide_size_large
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
pinterest_master_system_wide_shape_circular
...

Browser metrics Passed 4 tests

Checking browser requirements for TechGasp Pin Master
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.31 ▼1.291.74 ▼0.0243.22 ▼7.54
Dashboard /wp-admin2,239 ▲515.86 ▲0.9799.16 ▼15.1080.01 ▲33.03
Posts /wp-admin/edit.php2,122 ▲331.99 ▼0.0235.34 ▲1.0232.75 ▼2.89
Add New Post /wp-admin/post-new.php1,552 ▲1823.27 ▲0.23750.32 ▲147.6258.78 ▲9.68
Media Library /wp-admin/upload.php1,409 ▲214.24 ▼0.0396.24 ▼3.8875.50 ▲28.16
Add-ons /wp-admin/admin.php?page=pinterest-master-admin-addons1,0682.0125.5732.15
Pin Master /wp-admin/admin.php?page=pinterest-master1,7778.22198.0780.18
Settings /wp-admin/admin.php?page=pinterest-master-admin-settings-wide1,0172.0622.6730.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • theysaidso_admin_options
    • pinterest_master_system_wide_size_large
    • widget_pinterest_master_widget_buttons
    • widget_recent-posts
    • pinterest_master_system_wide
    • can_compress_scripts
    • pinterest_master_system_wide_size_small
    • pinterest_master_system_wide_shape_circular
    • pinterest_master_system_wide_shape_rectangular
    • db_upgraded
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/pinterest-master/includes/pinterest-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/pinterest-master/includes/pinterest-master-admin-addons-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pinterest-master/pinterest-master.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/pinterest-master/includes/pinterest-master-admin-settings-wide.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pinterest-master/includes/pinterest-master-widget-buttons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/pinterest-master/includes/pinterest-master-admin-settings-wide-table-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pinterest-master/includes/pinterest-master-settings-wide.php:75
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/pinterest-master/includes/pinterest-master-admin-addons.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/pinterest-master/includes/pinterest-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/pinterest-master/includes/pinterest-master-admin.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=pinterest-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=pinterest-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=pinterest-master
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/y-/r/e_Kj5Xrx7lO.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=pinterest-master
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/y-/r/e_Kj5Xrx7lO.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

pinterest-master/pinterest-master.php 92% from 13 tests

This is the main PHP file of "TechGasp Pin Master" version 5.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

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 detected794 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP134080794

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.57
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity5.18
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.28MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-check-no.png21.14KB7.14KB▼ 66.23%
images/techgasp-spammaster-logo.png174.42KB66.22KB▼ 62.04%
images/techgasp-admin-addons-support.png15.84KB14.85KB▼ 6.26%
images/techgasp-minilogo-16.png1.86KB0.92KB▼ 50.87%
images/techgasp-check-yes.png22.22KB7.59KB▼ 65.83%