10% popup-tb

Code Review | Popup TB

WordPress plugin Popup TB scored10%from 54 tests.

About plugin

  • Plugin page: popup-tb
  • Plugin version: 1.1
  • PHP compatiblity: 5.8+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 19, 2020
  • Latest release: Aug 22, 2021
  • Number of updates: 5
  • Update frequency: every 49.4 days
  • Top authors: nhomcaodem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /619 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/popup-tb/inc/popuptb-content.php+3
    Trying to access array offset on value of type null

Server metrics [RAM: ▼1.94MB] [CPU: ▼51.86ms] Passed 4 tests

Analyzing server-side resources used by Popup TB
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.415.36 ▼35.44
Dashboard /wp-admin2.07 ▼1.236.83 ▼43.23
Posts /wp-admin/edit.php2.08 ▼1.288.50 ▼37.72
Add New Post /wp-admin/post-new.php2.07 ▼3.826.60 ▼89.04
Media Library /wp-admin/upload.php2.07 ▼1.166.91 ▼37.43
Popup TB /wp-admin/options-general.php?page=popuptb-options2.087.29

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Popup TB: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.21 ▼1.172.35 ▲0.3542.82 ▼1.85
Dashboard /wp-admin2,210 ▲225.84 ▼0.0596.00 ▼9.5441.64 ▲2.14
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0339.15 ▲4.1835.85 ▼0.71
Add New Post /wp-admin/post-new.php1,545 ▲3118.36 ▲0.80631.58 ▼70.6862.37 ▲5.04
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0494.32 ▼12.1642.63 ▼0.33
Popup TB /wp-admin/options-general.php?page=popuptb-options9682.0223.0442.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/popup-tb/inc/popuptb-content.php+3
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=popuptb-options
    • > Notice in wp-content/plugins/popup-tb/inc/popuptb-admin.php+55
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-tb/inc/popuptb-admin.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-tb/popup-tb.php:19
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/popup-tb/inc/popuptb-content.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=popuptb-options
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=popuptb-options 187 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=popuptb-options
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=popuptb-options 189 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=popuptb-options
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=popuptb-options 191 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in popup-tb/assets to your readme.txt
Please take inspiration from this readme.txt

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

This is the main PHP file of "Popup TB" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
31 characters long description:
Pop-up notification for website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected262 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3218106
PO File24285101
CSS13251
JavaScript1104

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin