84% simple-share-buttons

Code Review | Simple Share Buttons

WordPress plugin Simple Share Buttons scored 84% from 54 tests.

About plugin

  • Plugin page: simple-share-buttons
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2022
  • Latest release: Nov 2, 2022
  • Number of updates: 4
  • Update frequency: every 7.5 days
  • Top authors: jcrr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 166 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Simple Share Buttons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.44 ▲1.93
Dashboard /wp-admin3.32 ▲0.0244.23 ▼6.76
Posts /wp-admin/edit.php3.37 ▲0.0146.26 ▲1.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.80 ▼14.73
Media Library /wp-admin/upload.php3.24 ▲0.0138.73 ▲3.95

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Share Buttons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲14913.57 ▼0.818.88 ▲7.1844.98 ▲1.55
Dashboard /wp-admin2,206 ▲154.86 ▼1.04100.62 ▼14.4338.96 ▼9.77
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0336.39 ▼1.7435.06 ▼0.66
Add New Post /wp-admin/post-new.php6,589 ▲5,06129.45 ▲6.22920.96 ▲266.6040.77 ▼13.78
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0297.70 ▼2.2942.16 ▼2.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-share-buttons/simple-share-buttons.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
5 plugin tags: buttons, block, sharing, social, gutenberg

simple-share-buttons/simple-share-buttons.php 92% from 13 tests

"Simple Share Buttons" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin190 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON200177
PHP41118
JavaScript3003
CSS2102

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin