83% awesome-share-button

Code Review | Awesome Share Button

WordPress plugin Awesome Share Button scored83%from 54 tests.

About plugin

  • Plugin page: awesome-share-button
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 1, 2014
  • Latest release: Oct 1, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: rasel2339 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,327 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.13ms] Passed 4 tests

This is a short check of server-side resources used by Awesome Share Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0348.00 ▲8.14
Dashboard /wp-admin3.35 ▲0.0443.58 ▼5.57
Posts /wp-admin/edit.php3.40 ▲0.0445.81 ▼2.73
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.43 ▼12.27
Media Library /wp-admin/upload.php3.27 ▲0.0435.55 ▲4.04

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Awesome Share Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲14614.21 ▼0.1638.67 ▲37.0744.92 ▲5.66
Dashboard /wp-admin2,238 ▲465.04 ▲0.09108.92 ▼1.9439.09 ▼3.10
Posts /wp-admin/edit.php2,123 ▲312.32 ▲0.3037.21 ▼2.5930.47 ▼1.33
Add New Post /wp-admin/post-new.php1,541 ▲723.36 ▼0.03687.82 ▲68.4939.22 ▼5.34
Media Library /wp-admin/upload.php1,420 ▲294.39 ▲0.22102.17 ▲1.3745.24 ▼0.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-share-button/inc/settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-share-button/main.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Working scroll up wordpress plugin.) image missing
The official readme.txt might help

awesome-share-button/main.php 92% from 13 tests

The principal PHP file in "Awesome Share Button" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("awesome-share-button.php" instead of "main.php")

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 plugin777 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG100520
PHP25321164
CSS22390
JavaScript1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions14
▷ Named functions14100.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
PNG images were not found in this plugin