84% wp-subscribe

Code Review | WP Subscribe

WordPress plugin WP Subscribe scored84%from 54 tests.

About plugin

  • Plugin page: wp-subscribe
  • Plugin version: 1.2.16
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Oct 14, 2014
  • Latest release: May 11, 2022
  • Number of updates: 63
  • Update frequency: every 43.9 days
  • Top authors: MyThemeShop (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

10,000+ active /750,042 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.47ms] Passed 4 tests

Server-side resources used by WP Subscribe
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1736.77 ▼7.18
Dashboard /wp-admin3.47 ▲0.1749.40 ▲4.33
Posts /wp-admin/edit.php3.58 ▲0.2353.92 ▲2.74
Add New Post /wp-admin/post-new.php6.07 ▲0.1895.26 ▼3.16
Media Library /wp-admin/upload.php3.39 ▲0.1637.20 ▲1.73

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options
widget_wp_subscribe
wp_subscribe_activated
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
wp_subscribe_notice_views
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Subscribe
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲5214.40 ▲0.052.05 ▼0.2844.23 ▼6.75
Dashboard /wp-admin2,212 ▲245.88 ▲1.00110.19 ▲4.4247.82 ▲2.66
Posts /wp-admin/edit.php2,100 ▲112.07 ▲0.0340.88 ▲0.9935.31 ▼1.62
Add New Post /wp-admin/post-new.php1,516 ▼323.53 ▲0.52668.84 ▲33.0355.06 ▼7.48
Media Library /wp-admin/upload.php1,390 ▼14.22 ▼0.0896.05 ▼5.3040.08 ▼4.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • wp_subscribe_notice_views
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_wp_subscribe
    • wp_subscribe_activated

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
Even though everything seems fine, this is not an exhaustive test

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/wp-subscribe/includes/subscription/libs/aweber_api/aweber_collection.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/wp-subscribe/includes/subscription/libs/aweber_api/aweber_entry.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberAPIBase' not found in wp-content/plugins/wp-subscribe/includes/subscription/libs/aweber_api/aweber_response.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'AWeberOAuthAdapter' not found in wp-content/plugins/wp-subscribe/includes/subscription/libs/aweber_api/oauth_application.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: subscription box, feedburner, subscribe, aweber, subscription...

wp-subscribe/wp-subscribe.php Passed 13 tests

This is the main PHP file of "WP Subscribe" version 1.2.16, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
106 characters long description:
WP Subscribe is a simple but powerful subscription plugin which supports MailChimp, Aweber and Feedburner.

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 detected3,517 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP216651,3132,213
JavaScript622476715
JSON110331
PO File18687197
CSS221161

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.03
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes26
▷ Abstract classes13.85%
▷ Concrete classes2596.15%
▷ Final classes14.00%
Methods199
▷ Static methods31.51%
▷ Public methods16683.42%
▷ Protected methods2412.06%
▷ Private methods94.52%
Functions15
▷ Named functions15100.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
There were not PNG files found in your plugin