83% toolbar-to-share

Code Review | ToolBar to Share

WordPress plugin ToolBar to Share scored 83% from 54 tests.

About plugin

  • Plugin page: toolbar-to-share
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-5.5
  • WordPress version: 5.9.2
  • First release: Sep 24, 2012
  • Latest release: Aug 15, 2020
  • Number of updates: 16
  • Update frequency: every 180.1 days
  • Top authors: Miguelo2008 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 5,659 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.21MB] [CPU: ▼325.96ms] Passed 4 tests

Analyzing server-side resources used by ToolBar to Share
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0363.46 ▲10.20
Dashboard /wp-admin3.12 ▼0.2917.39 ▼16.49
Posts /wp-admin/edit.php3.12 ▼0.5317.80 ▼20.16
Add New Post /wp-admin/post-new.php3.12 ▼3.8617.60 ▼1,258.90
Media Library /wp-admin/upload.php3.12 ▼0.1816.68 ▼8.27

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ToolBar to Share
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,833 ▲11117.26 ▲1.2812.58 ▲6.962.91 ▲0.47
Dashboard /wp-admin2,917 ▲637.02 ▲0.81126.41 ▼13.60157.45 ▼5.71
Posts /wp-admin/edit.php2,685 ▼03.63 ▲0.4072.30 ▲10.79140.62 ▼4.58
Add New Post /wp-admin/post-new.php1,708 ▲4721.12 ▲5.01440.39 ▲35.80190.95 ▲19.73
Media Library /wp-admin/upload.php1,723 ▲256.24 ▲0.75154.49 ▲8.01191.58 ▼15.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5600
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toolbar-to-share/toolbartoshare.php:143

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (This image shows the Plugin running), #2 (This image shows the Plugin running), #3 (This image shows the panel to optimize the plugin)
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

toolbar-to-share/toolbartoshare.php 92% from 13 tests

The main PHP file in "ToolBar to Share" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("toolbar-to-share.php" instead of "toolbartoshare.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
No dangerous file extensions were detected184 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1579147
CSS13034
JavaScript1103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin