84% wisepops-popups

Code Review | Wisepops - Popup plugin for WordPress

WordPress plugin Wisepops - Popup plugin for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: wisepops-popups
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2017
  • Latest release: Jul 24, 2023
  • Number of updates: 25
  • Update frequency: every 91.1 days
  • Top authors: Wisepops (96%)gregwisepops (8%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active /10,680 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Wisepops - Popup plugin for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.43 ▼3.88
Dashboard /wp-admin3.33 ▲0.0246.86 ▼5.86
Posts /wp-admin/edit.php3.38 ▲0.0251.31 ▲1.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.50 ▼17.56
Media Library /wp-admin/upload.php3.25 ▲0.0234.96 ▼0.83

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Wisepops - Popup plugin for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.71 ▼0.611.81 ▲0.1641.03 ▼0.46
Dashboard /wp-admin2,219 ▲315.83 ▲0.91100.65 ▼12.9242.29 ▲1.96
Posts /wp-admin/edit.php2,105 ▲132.06 ▲0.0340.20 ▼0.1735.67 ▼0.35
Add New Post /wp-admin/post-new.php1,547 ▲323.29 ▲5.10612.69 ▲3.6950.94 ▼4.01
Media Library /wp-admin/upload.php1,404 ▲164.22 ▲0.0393.02 ▼4.5540.98 ▼0.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wisepops-popups/wisepops.php

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

wisepops-popups/wisepops.php 92% from 13 tests

This is the main PHP file of "Wisepops - Popup plugin for WordPress" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wisepops-popups.php" instead of "wisepops.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin110 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22115110

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods450.00%
▷ Protected methods112.50%
▷ Private methods337.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin