10% wp-subscribe-author

Code Review | Wp Subcribe Author

WordPress plugin Wp Subcribe Author scored10%from 54 tests.

About plugin

  • Plugin page: wp-subscribe-author
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 21, 2012
  • Latest release: Jan 8, 2016
  • Number of updates: 21
  • Update frequency: every 54.5 days
  • Top authors: gchokeen (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /12,159 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-subscribe-author/classes/settings.php+212
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.41ms] Passed 4 tests

Server-side resources used by Wp Subcribe Author
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.38 ▼34.60
Dashboard /wp-admin2.05 ▼1.2610.83 ▼37.38
Posts /wp-admin/edit.php2.05 ▼1.315.45 ▼39.81
Add New Post /wp-admin/post-new.php2.05 ▼3.844.82 ▼93.84
Media Library /wp-admin/upload.php2.05 ▼1.186.54 ▼28.83
Subscribe Auhtor /wp-admin/options-general.php?page=wpsa_plugin_options2.055.08

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: 1 new table, 7 new options
New tables
wp_wpsa_subscribe_author
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
wpsa_subscribe_author_db_version
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Wp Subcribe Author
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16413.47 ▼1.1615.54 ▲13.8446.10 ▲2.32
Dashboard /wp-admin2,202 ▲255.62 ▼0.0383.84 ▼6.9441.86 ▲2.45
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0134.45 ▼0.8334.11 ▼4.97
Add New Post /wp-admin/post-new.php1,531 ▲523.10 ▼0.14673.42 ▲16.0659.70 ▲13.47
Media Library /wp-admin/upload.php1,404 ▲74.19 ▲0.0696.23 ▼10.4942.01 ▼6.09
Subscribe Auhtor /wp-admin/options-general.php?page=wpsa_plugin_options8262.1725.3627.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/wp-subscribe-author/classes/settings.php+212
    Function create_function() is deprecated
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_wpsa_subscribe_author
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • wpsa_subscribe_author_db_version
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wpsa_plugin_options
    • > Deprecated in wp-content/plugins/wp-subscribe-author/classes/settings.php+212
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=wpsa_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wpsa_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-subscribe-author/templates/default.php on line 2
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/wp-subscribe-author/templates/default.php on line 4
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/wp-subscribe-author/templates/default.php on line 3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-subscribe-author/templates/default.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-subscribe-author/classes/settings.php:212
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-subscribe-author/templates/default.php on line 4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-subscribe-author/templates/default.php on line 4
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/wp-subscribe-author/templates/default.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-subscribe-author/templates/default.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-subscribe-author/wpsa-ajax.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: email, subscription, notification, author, posts...

wp-subscribe-author/wp-subscribe-author.php 92% from 13 tests

"Wp Subcribe Author" version 1.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,131 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP8396356767
JavaScript45652235
CSS216296
PO File17933

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.60
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods44
▷ Static methods24.55%
▷ Public methods4295.45%
▷ Protected methods00.00%
▷ Private methods24.55%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png30.02KB12.04KB▼ 59.89%