78% tsbig3-secure-share-buttons

Code Review | TsBig3 Secure Share-Buttons

WordPress plugin TsBig3 Secure Share-Buttons scored78%from 54 tests.

About plugin

  • Plugin page: tsbig3-secure-sha...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9.1
  • WordPress version: 6.3.1
  • First release: Aug 4, 2014
  • Latest release: Aug 5, 2014
  • Number of updates: 8
  • Update frequency: every 0.5 days
  • Top authors: the5kyliner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /733 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.85ms] Passed 4 tests

An overview of server-side resources used by TsBig3 Secure Share-Buttons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.64 ▲0.07
Dashboard /wp-admin3.31 ▼0.0349.26 ▼17.79
Posts /wp-admin/edit.php3.36 ▲0.0151.05 ▲5.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.46 ▼12.56
Media Library /wp-admin/upload.php3.24 ▲0.0136.22 ▲2.88

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for TsBig3 Secure Share-Buttons
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.29 ▼0.371.79 ▲0.1441.53 ▲1.75
Dashboard /wp-admin2,198 ▲185.59 ▼0.0887.08 ▼8.3237.18 ▲0.14
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0436.31 ▼0.9930.39 ▼2.46
Add New Post /wp-admin/post-new.php1,526 ▼023.57 ▲0.66655.19 ▲23.7460.68 ▲1.65
Media Library /wp-admin/upload.php1,397 ▼04.10 ▼0.09104.75 ▼0.3743.94 ▲2.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tsbig3-secure-share-buttons/big3-social-privacy.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: permalink in wp-content/plugins/tsbig3-secure-share-buttons/big3-social-privacy-layout.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tsbig3-secure-share-buttons/big3-social-privacy-layout.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

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: social-media, plus, share, button, google...

tsbig3-secure-share-buttons/big3-social-privacy.php 92% from 13 tests

The entry point to "TsBig3 Secure Share-Buttons" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tsbig3-secure-share-buttons.php" instead of "big3-social-privacy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin54 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS16028
PHP273926

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/facebook.png3.91KB1.50KB▼ 61.71%
img/twitter.png4.10KB1.61KB▼ 60.76%
img/google.png4.37KB1.66KB▼ 61.95%
screenshot.png49.68KB28.16KB▼ 43.31%