94% popup-anyway

Code Review | PopUp Anyway

WordPress plugin PopUp Anyway scored 94% from 54 tests.

About plugin

  • Plugin page: popup-anyway
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.6
  • WordPress version: 5.8.1
  • First release: Sep 13, 2015
  • Latest release: Aug 21, 2016
  • Number of updates: 9
  • Update frequency: every 38.2 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,487 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by PopUp Anyway
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0230.48 ▼4.59
Dashboard /wp-admin3.08 ▲0.0341.77 ▲1.57
Posts /wp-admin/edit.php3.13 ▲0.0344.54 ▼0.70
Add New Post /wp-admin/post-new.php5.44 ▲0.0186.58 ▼564.73
Media Library /wp-admin/upload.php3.03 ▲0.0240.90 ▲5.56

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
obi_popup_anyway_cookie

Browser metrics Passed 4 tests

Checking browser requirements for PopUp Anyway
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.93 ▲0.317.20 ▼1.3646.10 ▼0.84
Dashboard /wp-admin2,964 ▲305.83 ▼0.15141.68 ▼7.61129.86 ▲11.01
Posts /wp-admin/edit.php2,739 ▼02.68 ▲0.0068.16 ▼9.4783.73 ▼16.17
Add New Post /wp-admin/post-new.php1,683 ▼2,04116.22 ▲1.01419.65 ▼31.83123.76 ▲12.01
Media Library /wp-admin/upload.php1,810 ▼05.04 ▲0.03163.75 ▲2.98128.58 ▲3.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/popup-anyway/popup-anyway.php
    • > /wp-content/plugins/popup-anyway/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (33 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

popup-anyway/popup-anyway.php 92% from 13 tests

The primary PHP file in "PopUp Anyway" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin124 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35327124

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin