10% wp-responsive-scrolling-notification

Code Review | WP Responsive Scrolling Notification

WordPress plugin WP Responsive Scrolling Notification scored10%from 54 tests.

About plugin

  • Plugin page: wp-responsive-scr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 25, 2014
  • Latest release: Jul 27, 2014
  • Number of updates: 10
  • Update frequency: every 0.2 days
  • Top authors: suifengtec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,202 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+25
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_R_S_N has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼50.07ms] Passed 4 tests

Analyzing server-side resources used by WP Responsive Scrolling Notification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.194.30 ▼33.59
Dashboard /wp-admin2.29 ▼1.019.88 ▼42.15
Posts /wp-admin/edit.php2.29 ▼1.067.93 ▼40.58
Add New Post /wp-admin/post-new.php2.29 ▼3.595.99 ▼83.96
Media Library /wp-admin/upload.php2.29 ▼0.936.91 ▼28.99
Notification /wp-admin/options-general.php?page=wprsn-notify2.306.21

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
wprsn_setting
can_compress_scripts
wprsn_notify_content

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Responsive Scrolling Notification
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲22015.03 ▲0.681.69 ▼0.2239.74 ▼4.40
Dashboard /wp-admin2,374 ▲1866.73 ▲0.88132.60 ▲33.2944.27 ▲0.36
Posts /wp-admin/edit.php2,289 ▲2033.65 ▲1.6658.81 ▲23.5034.90 ▼4.08
Add New Post /wp-admin/post-new.php1,548 ▲2923.37 ▲0.04661.28 ▼9.5037.20 ▼17.87
Media Library /wp-admin/upload.php1,422 ▲314.56 ▲0.3985.31 ▼16.7541.82 ▼4.16
Notification /wp-admin/options-general.php?page=wprsn-notify1,5673.5663.8427.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+25
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_R_S_N has a deprecated constructor
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • wprsn_notify_content
    • wprsn_setting
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wprsn-notify
    • > Deprecated in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+25
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_R_S_N has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=wprsn-notify
    • > Warning in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+353
    Illegal string offset 'wprsn_s_image'
  • 57 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wprsn-notify
    • > Notice in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+439
    Uninitialized string offset: 0
    • > GET request to /wp-admin/options-general.php?page=wprsn-notify
    • > Warning in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+354
    Illegal string offset 'wprsn_s_imagewidth'
    • > GET request to /wp-admin/options-general.php?page=wprsn-notify
    • > Warning in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+355
    Illegal string offset 'wprsn_s_imagetitle'
    • > GET request to /wp-admin/options-general.php?page=wprsn-notify
    • > Warning in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+356
    Illegal string offset 'wprsn_s_float'
    • > GET request to /wp-admin/options-general.php?page=wprsn-notify
    • > Warning in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+357
    Illegal string offset 'wprsn_s_imagelink'
  • 29 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wprsn-notify
    • > Warning in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+430
    Illegal string offset 'wprsn_s_easein'
    • > GET request to /wp-admin/options-general.php?page=wprsn-notify
    • > Notice in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+432
    Undefined variable: output
  • 23 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wprsn-notify
    • > Warning in wp-content/plugins/wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php+439
    Illegal string offset 'wprsn_s_easeout'

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: post type order, post order, admin posts order, custom order

wp-responsive-scrolling-notification/wp-responsive-scrolling-notification.php 92% from 13 tests

The principal PHP file in "WP Responsive Scrolling Notification" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 197 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
No dangerous file extensions were detected3,888 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS4462152,949
PHP1388432
JavaScript54131340
PO File26566167

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/close.png2.77KB1.24KB▼ 55.33%