10% wp-multicolor-subscribe-widget

Code Review | Wordpress Multicolor Subscribe Widget

WordPress plugin Wordpress Multicolor Subscribe Widget scored10%from 54 tests.

About plugin

  • Plugin page: wp-multicolor-sub...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Jul 29, 2012
  • Latest release: Oct 22, 2014
  • Number of updates: 9
  • Update frequency: every 90.6 days
  • Top authors: ramandeep000 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /44,596 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wp-multicolor-subscribe-widget/multicolor-subscribe-widget.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; MultiColorSubscribeWidget has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼60.00ms] Passed 4 tests

Server-side resources used by Wordpress Multicolor Subscribe Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.335.66 ▼35.40
Dashboard /wp-admin2.16 ▼1.196.47 ▼64.93
Posts /wp-admin/edit.php2.16 ▼1.205.74 ▼40.83
Add New Post /wp-admin/post-new.php2.16 ▼3.736.41 ▼98.82
Media Library /wp-admin/upload.php2.16 ▼1.076.27 ▼33.04

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_multicolorsubscribewidget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Wordpress Multicolor Subscribe Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲10913.39 ▼0.988.70 ▲6.9645.66 ▲2.63
Dashboard /wp-admin2,198 ▲205.64 ▼0.1083.04 ▼31.9642.48 ▼3.86
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0234.63 ▼2.4435.23 ▼1.82
Add New Post /wp-admin/post-new.php1,531 ▲322.62 ▼0.63672.46 ▲17.1457.66 ▲0.39
Media Library /wp-admin/upload.php1,400 ▼04.11 ▼0.13117.91 ▲1.3747.68 ▼0.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/wp-multicolor-subscribe-widget/multicolor-subscribe-widget.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; MultiColorSubscribeWidget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_multicolorsubscribewidget
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-multicolor-subscribe-widget/multicolor-subscribe-widget.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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
7 plugin tags: feedburner widget, wordpress subscribe box, rss, wordpress multicolor subscribe box, subscribe to rss feeds...

wp-multicolor-subscribe-widget/multicolor-subscribe-widget.php 85% from 13 tests

"Wordpress Multicolor Subscribe Widget" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-multicolor-subscribe-widget.php" instead of "multicolor-subscribe-widget.php")
  • Description: The description should be shorter than 140 characters (currently 156 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 plugin209 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12925163
CSS11146

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
multicolor-widget.png44.17KB14.69KB▼ 66.76%
colors.png15.53KB5.18KB▼ 66.67%