80% post-share-buttons

Code Review | Post Share Buttons

WordPress plugin Post Share Buttons scored 80% from 54 tests.

About plugin

  • Plugin page: post-share-buttons
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Apr 7, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: OptimizeWorldwide (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 440 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.94MB] [CPU: ▼57.62ms] Passed 4 tests

Analyzing server-side resources used by Post Share Buttons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.414.92 ▼47.67
Dashboard /wp-admin2.08 ▼1.237.56 ▼44.00
Posts /wp-admin/edit.php2.08 ▼1.285.98 ▼50.58
Add New Post /wp-admin/post-new.php2.08 ▼3.816.98 ▼88.24
Media Library /wp-admin/upload.php2.08 ▼1.165.69 ▼29.60

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Post Share Buttons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,271 ▲48213.63 ▲0.351.83 ▼0.0255.78 ▲16.01
Dashboard /wp-admin2,485 ▲2795.84 ▲0.00101.72 ▼4.2742.99 ▲2.13
Posts /wp-admin/edit.php2,291 ▲2021.98 ▼0.0641.22 ▲1.1144.36 ▲8.46
Add New Post /wp-admin/post-new.php1,791 ▲25616.01 ▼7.13536.95 ▼107.2330.95 ▼23.29
Media Library /wp-admin/upload.php1,578 ▲1934.28 ▲0.06101.39 ▲2.7341.52 ▼1.65

Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function is_single was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: facebook, google, posts, social media, linkedin...

post-share-buttons/post-share-buttons.php Passed 13 tests

The main file in "Post Share Buttons" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Post Share Buttons for Twitter, Facebook, Google, and LinkedIn.

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
Success! There were no dangerous files found in this plugin314 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
SVG110168
CSS1130113
PHP171230
JavaScript1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin