84% aria-share-button

Code Review | Aria Share Button

WordPress plugin Aria Share Button scored 84% from 54 tests.

About plugin

  • Plugin page: aria-share-button
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2018
  • Latest release: Feb 6, 2023
  • Number of updates: 12
  • Update frequency: every 150.4 days
  • Top authors: ariapadweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,036 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.88ms] Passed 4 tests

Analyzing server-side resources used by Aria Share Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0332.60 ▼9.01
Dashboard /wp-admin3.31 ▲0.0045.29 ▼3.52
Posts /wp-admin/edit.php3.36 ▲0.0048.33 ▲0.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.05 ▼7.30
Media Library /wp-admin/upload.php3.23 ▲0.0035.51 ▲1.17

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Aria Share Button
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.25 ▼1.115.78 ▲3.9841.87 ▼2.15
Dashboard /wp-admin2,206 ▲215.85 ▲0.7798.04 ▼15.8237.79 ▼10.82
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0035.58 ▲0.2934.03 ▲0.74
Add New Post /wp-admin/post-new.php1,538 ▲1923.13 ▼0.27634.68 ▼36.7550.98 ▼10.18
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0194.45 ▼21.1443.78 ▼6.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/aria-share-button/aria-share-button.php:55

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 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png)
  • Donate link: Invalid URI found ("")
You can look at the official readme.txt

aria-share-button/aria-share-button.php Passed 13 tests

"Aria Share Button" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
26 characters long description:
View Share Button in posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected106 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS118271
PHP1182235

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
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

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