10% catch-popup

Code Review | Catch Popup

WordPress plugin Catch Popup scored10%from 54 tests.

About plugin

  • Plugin page: catch-popup
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Sep 21, 2019
  • Latest release: Nov 15, 2023
  • Number of updates: 14
  • Update frequency: every 108.5 days
  • Top authors: catchthemes (92.86%)maheshmaharjan (14.29%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /5,762 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-includes/functions.php+650
    unserialize(): Error at offset 2944 of 2944 bytes

Server metrics [RAM: ▲0.58MB] [CPU: ▼1.12ms] Passed 4 tests

An overview of server-side resources used by Catch Popup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6656.45 ▲19.07
Dashboard /wp-admin3.85 ▲0.5445.88 ▼2.57
Posts /wp-admin/edit.php3.96 ▲0.6051.57 ▲2.46
Add New Post /wp-admin/post-new.php6.53 ▲0.6492.73 ▼8.69
Media Library /wp-admin/upload.php3.77 ▲0.5435.14 ▲4.34
All Popup /wp-admin/edit.php?post_type=catch_popup3.8136.35
All Popup Themes /wp-admin/edit.php?post_type=catch_popup_theme3.8842.96
Add New /wp-admin/post-new.php?post_type=catch_popup6.5788.39

Server storage [IO: ▲0.28MB] [DB: ▲0.02MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
_catch_popup_installed_themes
theysaidso_admin_options
widget_recent-comments
catch-popup-has-cached-css
catch-popup-has-cached-js
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Catch Popup: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲18013.83 ▼0.318.92 ▲7.1238.01 ▼6.32
Dashboard /wp-admin2,229 ▲495.63 ▼0.0190.50 ▼2.6143.14 ▲3.35
Posts /wp-admin/edit.php2,131 ▲312.02 ▲0.0040.25 ▲1.4536.17 ▼0.14
Add New Post /wp-admin/post-new.php6,400 ▲4,87427.63 ▲4.84929.42 ▲261.0572.41 ▲7.79
Media Library /wp-admin/upload.php1,434 ▲344.15 ▼0.1795.31 ▼16.4741.67 ▼6.25
All Popup /wp-admin/edit.php?post_type=catch_popup1,1571.9333.2132.71
All Popup Themes /wp-admin/edit.php?post_type=catch_popup_theme1,9961.9337.2932.99
Add New /wp-admin/post-new.php?post_type=catch_popup7,05420.01844.8875.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • _catch_popup_installed_themes
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • catch-popup-has-cached-js
    • catch-popup-has-cached-css
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catch-popup/inc/catch-popup-block/index.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in catch-popup/assets to your readme.txt
You can take inspiration from this readme.txt

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

The principal PHP file in "Catch Popup" v. 1.4.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,682 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP143332442,757
JavaScript6150211,660
CSS3252501,265

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions78
▷ Named functions78100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/chosen-sprite@2x.png0.72KB0.83KB0.00%
css/chosen-sprite.png0.53KB0.88KB0.00%