84% scroll-popup

Code Review | Scroll Popup Ads

WordPress plugin Scroll Popup Ads scored 84% from 54 tests.

About plugin

  • Plugin page: scroll-popup
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 6.3.1
  • First release: Aug 13, 2016
  • Latest release: Mar 24, 2021
  • Number of updates: 10
  • Update frequency: every 168.6 days
  • Top authors: themepoints (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,789 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.76ms] Passed 4 tests

Server-side resources used by Scroll Popup Ads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.35 ▲0.48
Dashboard /wp-admin3.32 ▲0.0249.02 ▼0.19
Posts /wp-admin/edit.php3.37 ▲0.0151.00 ▲0.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0297.91 ▼7.70
Media Library /wp-admin/upload.php3.24 ▲0.0235.73 ▲4.27
Scroll Popup /wp-admin/admin.php?page=theme-options3.2132.86
Support /wp-admin/admin.php?page=theme-op-settings3.2131.43

Server storage [IO: ▲0.33MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scroll Popup Ads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,128 ▲39313.81 ▼0.8512.92 ▲11.2977.16 ▲33.09
Dashboard /wp-admin2,252 ▲645.14 ▲0.26113.60 ▲6.7041.26 ▼4.91
Posts /wp-admin/edit.php2,140 ▲482.28 ▲0.2939.36 ▲0.6837.62 ▲4.14
Add New Post /wp-admin/post-new.php1,569 ▲2723.30 ▲5.30585.03 ▼21.9129.55 ▼22.06
Media Library /wp-admin/upload.php1,434 ▲524.43 ▲0.2599.60 ▲3.4641.62 ▼1.50
Scroll Popup /wp-admin/admin.php?page=theme-options1,3782.5349.2727.34
Support /wp-admin/admin.php?page=theme-op-settings8441.9625.7223.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/scroll-popup/tp-scroll-popup.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: manage advertisements, popup ads management, publish popup advertisement, manage ads, html popup...

scroll-popup/tp-scroll-popup.php 85% from 13 tests

The principal PHP file in "Scroll Popup Ads" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 210 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("scroll-popup.php" instead of "tp-scroll-popup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,508 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS3530142,836
PHP17667520
JavaScript26154152

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin