78% cs-popup-maker

Code Review | CS Popup Maker

WordPress plugin CS Popup Maker scored78%from 54 tests.

About plugin

  • Plugin page: cs-popup-maker
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2017
  • Latest release: Sep 15, 2022
  • Number of updates: 22
  • Update frequency: every 85.6 days
  • Top authors: catchsquare (100%)Otto42 (9.09%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,767 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.23MB] [CPU: ▼0.43ms] Passed 4 tests

A check of server-side resources used by CS Popup Maker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1525.53 ▼15.52
Dashboard /wp-admin3.62 ▲0.3160.66 ▲4.51
Posts /wp-admin/edit.php3.67 ▲0.3162.78 ▲10.45
Add New Post /wp-admin/post-new.php6.13 ▲0.24102.96 ▲6.59
Media Library /wp-admin/upload.php3.46 ▲0.2338.23 ▲2.71

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for CS Popup Maker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,203 ▲44215.60 ▲1.346.51 ▲4.6739.75 ▼7.17
Dashboard /wp-admin2,523 ▲3436.87 ▲1.30125.52 ▲32.1458.37 ▲17.67
Posts /wp-admin/edit.php2,484 ▲3843.50 ▲1.5059.30 ▲18.8450.66 ▲11.41
Add New Post /wp-admin/post-new.php1,718 ▲18323.36 ▲5.07662.62 ▼16.2762.27 ▼2.55
Media Library /wp-admin/upload.php1,617 ▲2174.63 ▲0.4494.26 ▼14.8458.70 ▲13.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • cs-popup-html
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • cs-popup
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cs-popup-maker/public/partials/cs-popup-maker-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cs-popup-maker/admin/partials/cs-popup-maker-admin-display.php:19

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

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Screenshots: These screenshots lack descriptions #1, #2 in cs-popup-maker/assets to your readme.txt
You can take inspiration from this readme.txt

cs-popup-maker/cs-popup-maker.php Passed 13 tests

The principal PHP file in "CS Popup Maker" v. 3.0.3 is loaded by WordPress automatically on each request
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected53,210 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.75
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods23.08%
▷ Public methods5686.15%
▷ Protected methods00.00%
▷ Private methods913.85%
▷ Named functions375.00%
▷ Anonymous functions125.00%
▷ Global constants3100.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
8 PNG files occupy 0.11MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/template-1.png2.36KB1.03KB▼ 56.36%
admin/images/template-5.png15.97KB0.93KB▼ 94.17%
admin/images/template-6.png15.73KB0.45KB▼ 97.16%
admin/images/template-2.png2.56KB1.07KB▼ 57.98%
admin/images/template-4.png15.62KB0.49KB▼ 96.87%