90% fastest-share-buttons

Code Review | Fastest Share Buttons

WordPress plugin Fastest Share Buttons scored90%from 54 tests.

About plugin

  • Plugin page: fastest-share-but...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.4.16+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 23, 2017
  • Latest release: Jun 14, 2023
  • Number of updates: 9
  • Update frequency: every 229.6 days
  • Top authors: alexmoise (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,454 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: ▲0.08MB] [CPU: ▼5.68ms] Passed 4 tests

This is a short check of server-side resources used by Fastest Share Buttons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0229.36 ▼12.12
Dashboard /wp-admin3.42 ▲0.0851.10 ▼14.96
Posts /wp-admin/edit.php3.47 ▲0.1255.56 ▲5.25
Add New Post /wp-admin/post-new.php6.00 ▲0.12103.49 ▼0.61
Media Library /wp-admin/upload.php3.34 ▲0.1241.29 ▲4.97
Fastest Share Buttons /wp-admin/options-general.php?page=mofsb-options3.3241.64

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Fastest Share Buttons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.35 ▲0.001.88 ▲0.2344.39 ▼0.95
Dashboard /wp-admin2,208 ▲285.55 ▼0.1191.96 ▼2.9641.62 ▼0.23
Posts /wp-admin/edit.php2,113 ▲132.00 ▼0.0442.16 ▲4.6436.93 ▲1.20
Add New Post /wp-admin/post-new.php1,538 ▲1223.14 ▼0.43655.30 ▼39.5561.31 ▼16.90
Media Library /wp-admin/upload.php1,413 ▲164.15 ▼0.0197.46 ▼8.2743.25 ▲0.98
Fastest Share Buttons /wp-admin/options-general.php?page=mofsb-options1,2821.6924.6832.94

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: share post, share buttons, social media, share, share bar...

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

The main PHP script in "Fastest Share Buttons" version 1.0.7 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,081 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG123412604
PHP37156454
CSS32521
Markdown1002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin