84% scroll-popup-html-content-ads

Code Review | Scroll popup html content ads

WordPress plugin Scroll popup html content ads scored84%from 54 tests.

About plugin

  • Plugin page: scroll-popup-html...
  • Plugin version: 8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.4
  • WordPress version: 6.3.1
  • First release: Feb 6, 2012
  • Latest release: Oct 29, 2023
  • Number of updates: 44
  • Update frequency: every 97.3 days
  • Top authors: gopi_plus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /10,966 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.75ms] Passed 4 tests

A check of server-side resources used by Scroll popup html content ads
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.36 ▼3.70
Dashboard /wp-admin3.32 ▲0.0247.17 ▲1.51
Posts /wp-admin/edit.php3.37 ▲0.0149.78 ▼1.00
Add New Post /wp-admin/post-new.php5.90 ▲0.01110.12 ▲13.96
Media Library /wp-admin/upload.php3.24 ▲0.0135.30 ▲0.21
Scrolling Popup /wp-admin/options-general.php?page=scroll-popup-html-content-ads3.2931.04

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: 1 new table, 12 new options
New tables
wp_scroll_popup_html_content_ads
New WordPress options
sphca_On_Search
sphca_On_Posts
can_compress_scripts
sphca_On_Homepage
widget_recent-comments
db_upgraded
sphca_On_Pages
sphca_On_Archives
sphca_option
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Scroll popup html content ads: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.21 ▼0.501.83 ▲0.0840.27 ▼9.35
Dashboard /wp-admin2,199 ▲195.55 ▼0.1290.71 ▲0.6140.39 ▲1.17
Posts /wp-admin/edit.php2,104 ▲12.02 ▼0.0039.26 ▼4.7035.56 ▲1.03
Add New Post /wp-admin/post-new.php1,531 ▲523.13 ▼0.09661.56 ▼0.0952.88 ▼5.99
Media Library /wp-admin/upload.php1,404 ▲44.24 ▲0.1599.04 ▼9.9044.77 ▲2.76
Scrolling Popup /wp-admin/options-general.php?page=scroll-popup-html-content-ads9652.0024.4926.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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 fix the following items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/scroll-popup-html-content-ads/scroll-popup-html-content-ads.php
    • > /wp-content/plugins/scroll-popup-html-content-ads/pages/content-show.php
    • > /wp-content/plugins/scroll-popup-html-content-ads/pages/content-setting.php
    • > /wp-content/plugins/scroll-popup-html-content-ads/pages/content-add.php
    • > /wp-content/plugins/scroll-popup-html-content-ads/pages/content-edit.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: plugin, scrolling, popup

scroll-popup-html-content-ads/scroll-popup-html-content-ads.php 85% from 13 tests

The main file in "Scroll popup html content ads" v. 8.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 404 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin1,465 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6155471,041
JavaScript34355239
PO File16072136
CSS10049

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity2.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.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.png0.67KB0.67KB▼ 0.73%