84% anything-popup

Code Review | Anything Popup

WordPress plugin Anything Popup scored84%from 54 tests.

About plugin

  • Plugin page: anything-popup
  • Plugin version: 7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: May 26, 2012
  • Latest release: Dec 1, 2022
  • Number of updates: 47
  • Update frequency: every 81.8 days
  • Top authors: gopiplus@hotmail.com (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

5,000+ active /187,655 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Anything Popup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.88 ▼1.20
Dashboard /wp-admin3.32 ▲0.0145.90 ▼4.13
Posts /wp-admin/edit.php3.37 ▲0.0150.36 ▼0.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.51 ▼1.70
Media Library /wp-admin/upload.php3.24 ▲0.0134.04 ▲1.92
Anything Popup /wp-admin/options-general.php?page=anything-popup3.2933.19

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: 1 new table, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Anything Popup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.82 ▲0.241.80 ▲0.0443.89 ▼2.62
Dashboard /wp-admin2,210 ▲254.80 ▼1.06107.90 ▼11.5539.82 ▼3.89
Posts /wp-admin/edit.php2,096 ▲72.00 ▲0.0039.89 ▲1.0335.90 ▲1.18
Add New Post /wp-admin/post-new.php1,536 ▲1723.48 ▲0.21680.34 ▲63.8957.72 ▲2.60
Media Library /wp-admin/upload.php1,389 ▼24.39 ▲0.1794.71 ▼2.9543.00 ▼2.03
Anything Popup /wp-admin/options-general.php?page=anything-popup8972.0624.4424.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/anything-popup/pages/content-management-show.php
    • > /wp-content/plugins/anything-popup/anything-popup.php
    • > /wp-content/plugins/anything-popup/pages/content-management-add.php
    • > /wp-content/plugins/anything-popup/pages/content-management-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)
Everything seems fine on the user side


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
2 plugin tags: contact, popup

anything-popup/anything-popup.php Passed 13 tests

This is the main PHP file of "Anything Popup" version 7.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
This is a simple plugin to display the entered content in to unblockable popup window. popup will open by clicking the text or image button.

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
Success! There were no dangerous files found in this plugin2,054 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File2113216251

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions12100.00%
▷ Anonymous functions00.00%
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
button.png3.12KB2.08KB▼ 33.15%