10% add-to-any-subscribe

Code Review | Subscribe Button by AddToAny

WordPress plugin Subscribe Button by AddToAny scored 10% 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: 5.9.2
  • 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

3,000+ active / 255,188 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, 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: ▼2.35MB] [CPU: ▼350.18ms] Passed 4 tests

This is a short check 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.02 ▼1.504.89 ▼47.82
Dashboard /wp-admin2.04 ▼1.373.76 ▼29.63
Posts /wp-admin/edit.php2.04 ▼1.605.80 ▼31.35
Add New Post /wp-admin/post-new.php2.04 ▼4.935.29 ▼1,291.90
Media Library /wp-admin/upload.php2.04 ▼1.264.73 ▼18.20

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Subscribe Button by AddToAny
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲1715.77 ▼0.215.90 ▼0.222.53 ▲0.12
Dashboard /wp-admin2,893 ▲326.10 ▼0.07118.73 ▼21.67154.15 ▼6.86
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0165.16 ▼1.55142.38 ▼5.73
Add New Post /wp-admin/post-new.php1,664 ▲316.09 ▼2.35434.27 ▲45.94160.23 ▲1.13
Media Library /wp-admin/upload.php1,703 ▲85.46 ▼0.05153.07 ▲6.59188.80 ▼5.11
Subscribe Buttons /wp-admin/add-to-any-subscribe.php260.940.0419.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > 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 1 option in the database
    • widget_add_to_any_subscribe_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > 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)


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
Please fix the following attributes:
  • Screenshots: These screenshots require images: #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.)
You can take inspiration from this readme.txt

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

The primary PHP file in "Subscribe Button by AddToAny" version .9.10.0... is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of ".9.10.0...")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 192 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,136 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File7344408759

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
8 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
favicon.png0.26KB0.25KB▼ 6.30%
subscribe_171_16.png1.59KB1.46KB▼ 8.25%
screenshot-3.png38.96KB26.05KB▼ 33.15%
screenshot-1.png1.59KB1.46KB▼ 8.25%
screenshot-2.png7.54KB7.46KB▼ 1.06%