84% scrolling-down-popup-plugin

Code Review | Scrolling down popup plugin

WordPress plugin Scrolling down popup plugin scored84%from 54 tests.

About plugin

  • Plugin page: scrolling-down-po...
  • Plugin version: 8.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Jul 26, 2011
  • Latest release: Dec 1, 2022
  • Number of updates: 50
  • Update frequency: every 82.9 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /13,888 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼16.34ms] Passed 4 tests

This is a short check of server-side resources used by Scrolling down popup plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.78 ▼2.81
Dashboard /wp-admin3.36 ▲0.0245.62 ▼14.57
Posts /wp-admin/edit.php3.41 ▲0.0650.71 ▼3.05
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.61 ▼44.92
Media Library /wp-admin/upload.php3.28 ▲0.0537.06 ▲5.50
Scrolling down popup /wp-admin/options-general.php?page=scrolling-down-popup-plugin3.2733.42

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: 1 new table, 12 new options
New tables
wp_scrolling_down_popup
New WordPress options
can_compress_scripts
theysaidso_admin_options
sdp_On_Homepage
widget_recent-comments
widget_theysaidso_widget
sdp_On_Search
sdp_On_Pages
widget_recent-posts
sdp_On_Archives
db_upgraded
...

Browser metrics Passed 4 tests

A check of browser resources used by Scrolling down popup plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.48 ▲0.111.67 ▼0.1139.04 ▼3.10
Dashboard /wp-admin2,196 ▲195.64 ▲0.0589.17 ▼16.2337.36 ▼11.08
Posts /wp-admin/edit.php2,104 ▲12.02 ▼0.0139.46 ▼6.5835.45 ▼4.02
Add New Post /wp-admin/post-new.php1,531 ▼823.00 ▲4.85649.50 ▲18.5449.98 ▲1.33
Media Library /wp-admin/upload.php1,407 ▲44.22 ▼0.0598.38 ▲0.2041.16 ▼2.74
Scrolling down popup /wp-admin/options-general.php?page=scrolling-down-popup-plugin9532.0024.2627.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/scrolling-down-popup-plugin/pages/content-management-show.php
    • > /wp-content/plugins/scrolling-down-popup-plugin/scrolling-down-popup-plugin.php
    • > /wp-content/plugins/scrolling-down-popup-plugin/pages/content-setting.php
    • > /wp-content/plugins/scrolling-down-popup-plugin/pages/content-management-edit.php
    • > /wp-content/plugins/scrolling-down-popup-plugin/pages/content-management-add.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: popup, scrolling, plugin

scrolling-down-popup-plugin/scrolling-down-popup-plugin.php 92% from 13 tests

The principal PHP file in "Scrolling down popup plugin" v. 8.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,302 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP611553877
PO File2138223314
JavaScript21118110
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.60
▷ Minimum method complexity2.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
gopiplus.com-popup.png1.41KB1.31KB▼ 7.34%