68% popover-windows

Code Review | Popover Windows

WordPress plugin Popover Windows scored 68% from 54 tests.

About plugin

  • Plugin page: popover-windows
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Jan 29, 2016
  • Latest release: Feb 10, 2016
  • Number of updates: 6
  • Update frequency: every 2.2 days
  • Top authors: melodicmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 737 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼3.86ms] Passed 4 tests

This is a short check of server-side resources used by Popover Windows
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2940.88 ▼9.09
Dashboard /wp-admin3.59 ▲0.2948.64 ▲0.87
Posts /wp-admin/edit.php3.71 ▲0.3548.99 ▼2.53
Add New Post /wp-admin/post-new.php6.17 ▲0.2998.19 ▼4.70
Media Library /wp-admin/upload.php3.52 ▲0.2937.65 ▲3.63
/wp-admin/admin.php?page=preview_popover_window3.4631.00
Popover Windows /wp-admin/admin.php?page=pop_top3.4832.03
My Themes /wp-admin/admin.php?page=popover_themes3.4834.03
Daily Stats /wp-admin/admin.php?page=pop_daily_stat3.4632.56
Add New Popover Window /wp-admin/admin.php?page=new_popover_window3.4834.39
/wp-admin/admin.php?page=new_popover_theme3.4832.71

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 82 new files
Database: 1 new table, 7 new options
New tables
wp_daily_stats
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
pop_theme_default
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Popover Windows
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲16013.55 ▼0.808.32 ▲6.1951.97 ▲6.13
Dashboard /wp-admin2,240 ▲524.91 ▲0.0296.96 ▼5.4173.24 ▲30.45
Posts /wp-admin/edit.php2,123 ▲371.99 ▼0.0634.79 ▼5.0832.29 ▼1.90
Add New Post /wp-admin/post-new.php1,695 ▲17622.58 ▼0.10611.30 ▼11.2543.44 ▼14.43
Media Library /wp-admin/upload.php1,425 ▲404.21 ▼0.06112.37 ▲13.1763.99 ▲21.71
/wp-admin/admin.php?page=preview_popover_window8682.1430.0726.38
Popover Windows /wp-admin/admin.php?page=pop_top8582.0124.0230.63
My Themes /wp-admin/admin.php?page=popover_themes8822.0124.4330.22
Daily Stats /wp-admin/admin.php?page=pop_daily_stat8552.0223.8728.25
Add New Popover Window /wp-admin/admin.php?page=new_popover_window1,2802.3341.2353.47
/wp-admin/admin.php?page=new_popover_theme1,7502.3236.8936.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_daily_stats
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • pop_theme_default
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 41 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pop_daily_stat
    • > Notice in wp-content/plugins/popover-windows/popoveroptions.php+472
    Trying to access array offset on value of type bool

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=preview_popover_window
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=preview_popover_window 153:5 Uncaught SyntaxError: Unexpected token '='
    • > GET request to /wp-admin/admin.php?page=preview_popover_window
    • > Network (severe)
    img/closebig.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=preview_popover_window
    • > Network (severe)
    wp-admin/loading.html - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pop_daily_stat
    • > Network (severe)
    wp-content/plugins/popover-windows/img/wp_pop_buy_em.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=popover_themes
    • > Network (severe)
    wp-content/plugins/popover-windows/img/button.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: pop up ads, popover banners, popover windows, popover window, popup windows...

popover-windows/popoverwindow.php 92% from 13 tests

This is the main PHP file of "Popover Windows" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("popover-windows.php" instead of "popoverwindow.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,586 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34651103,297
PO File93,1976,0253,089
PHP2193301,133
HTML239047
CSS112220

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
48 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/closeblack.png1.78KB1.54KB▼ 13.39%
img/email.png0.64KB0.75KB0.00%
img/clipboard.png0.61KB0.67KB0.00%
img/browse.png0.60KB0.60KB0.00%
img/money.png0.72KB0.73KB0.00%