10% popslide

Code Review | Popslide PRO - popup alternative

WordPress plugin Popslide PRO - popup alternative scored10%from 54 tests.

About plugin

  • Plugin page: popslide
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 4, 2014
  • Latest release: Dec 31, 2016
  • Number of updates: 59
  • Update frequency: every 13.4 days
  • Top authors: Kubitomakita (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

200+ active /10,665 total downloads

Benchmarks

Plugin footprint 58% 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
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/popslide/popslide.php+113
    Undefined variable: args

Server metrics [RAM: ▲0.14MB] [CPU: ▲0.14ms] Passed 4 tests

A check of server-side resources used by Popslide PRO - popup alternative
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1542.67 ▼3.41
Dashboard /wp-admin3.45 ▲0.1448.47 ▼2.83
Posts /wp-admin/edit.php3.56 ▲0.2047.76 ▲3.23
Add New Post /wp-admin/post-new.php6.03 ▲0.1494.37 ▲5.02
Media Library /wp-admin/upload.php3.37 ▲0.1438.22 ▲3.56
Popslide /wp-admin/options-general.php?page=popslide3.3130.07

Server storage [IO: ▲0.54MB] [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: 35 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
popslide_settings
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Popslide PRO - popup alternative: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲17213.53 ▼0.845.88 ▲4.0844.44 ▲6.71
Dashboard /wp-admin2,213 ▲255.83 ▲0.93100.14 ▼16.2639.42 ▼9.08
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0239.54 ▲3.6934.59 ▼2.08
Add New Post /wp-admin/post-new.php1,545 ▲2623.07 ▲0.07593.76 ▼30.4052.44 ▼1.76
Media Library /wp-admin/upload.php1,392 ▲14.20 ▼0.0293.42 ▼3.7941.20 ▼1.73
Popslide /wp-admin/options-general.php?page=popslide2,5837.83183.6994.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=popslide
    • > Notice in wp-content/plugins/popslide/backend.php+192
    Trying to get property 'rule' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=popslide
    • > Notice in wp-content/plugins/popslide/backend.php+278
    Undefined property: stdClass::$display

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/popslide/popslide.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: newsletter, bar, popup, popslide, cookie...

popslide/popslide.php Passed 13 tests

The entry point to "Popslide PRO - popup alternative" version 3.0 is a PHP file that has certain tags in its header comment area
24 characters long description:
Best popup slider plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin9,282 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript58459626,943
PO File75585981,350
PHP3217111588
Sass4670400
CSS1111

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity14.33
▷ Minimum class complexity8.00
▷ Maximum class complexity19.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods418.18%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/close_top_right.png3.35KB0.33KB▼ 90.05%
assets/images/close_top_left.png3.35KB0.33KB▼ 90.02%
assets/images/close_bottom_right.png3.34KB0.33KB▼ 90.02%
assets/images/close_bottom_left.png3.34KB0.33KB▼ 90.08%
assets/images/position_top.png2.95KB0.14KB▼ 95.33%