10% add-to-any-subscribe

Code Review | Subscribe Button by AddToAny

WordPress plugin Subscribe Button by AddToAny scored10%from 54 tests.

About plugin

  • Plugin page: add-to-any-subscribe
  • Plugin version: .9.10.0...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7
  • WordPress version: 6.3.1
  • First release: Jun 24, 2007
  • Latest release: Apr 1, 2017
  • Number of updates: 207
  • Update frequency: every 17.7 days
  • Top authors: micropat (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /256,572 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/add-to-any-subscribe/add-to-any-subscribe.php+169
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼56.69ms] Passed 4 tests

An overview of server-side resources used by Subscribe Button by AddToAny
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.32 ▼38.65
Dashboard /wp-admin2.05 ▼1.305.66 ▼57.40
Posts /wp-admin/edit.php2.05 ▼1.315.73 ▼41.80
Add New Post /wp-admin/post-new.php2.05 ▼3.845.92 ▼88.91
Media Library /wp-admin/upload.php2.05 ▼1.186.12 ▼29.43

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
widget_add_to_any_subscribe_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Subscribe Button by AddToAny
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.79 ▲0.411.74 ▼0.1543.10 ▼3.77
Dashboard /wp-admin2,207 ▲284.82 ▼1.04109.26 ▲0.2439.69 ▼1.21
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0236.94 ▼2.7832.70 ▼4.03
Add New Post /wp-admin/post-new.php1,536 ▲323.39 ▲0.15690.59 ▲4.4153.38 ▲0.74
Media Library /wp-admin/upload.php1,392 ▲44.25 ▼0.05103.54 ▼3.0448.95 ▲1.23
Subscribe Buttons /wp-admin/add-to-any-subscribe.php260.440.1518.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/add-to-any-subscribe/add-to-any-subscribe.php+169
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_add_to_any_subscribe_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/add-to-any-subscribe/add-to-any-subscribe.php:25

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/add-to-any-subscribe.php
    • > Network (severe)
    wp-admin/add-to-any-subscribe.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (This is the AddToAny Subscribe button), #2 (This is the drop-down menu that appears instantly when visitors move the mouse over the Subscribe button), #3 (This is the drop-down menu showing the services available to the user within the Subscribe menu. Services are constantly added/updated.)
The official readme.txt is a good inspiration

add-to-any-subscribe/add-to-any-subscribe.php 85% from 13 tests

The principal PHP file in "Subscribe Button by AddToAny" v. .9.10.0... is loaded by WordPress automatically on each request
You should first fix the following items:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of ".9.10.0...")
  • Description: The description should be shorter than 140 characters (currently 192 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,136 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File7344408759
PHP17735377

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
8 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
subscribe_171_16.png1.59KB1.46KB▼ 8.25%
favicon.png0.26KB0.25KB▼ 6.30%
screenshot-1.png1.59KB1.46KB▼ 8.25%
subscribe_120_16.png1.76KB1.38KB▼ 21.33%
subscribe_16_16.png0.70KB0.89KB0.00%