84% popup-dropping-box

Code Review | Popup dropping box

WordPress plugin Popup dropping box scored84%from 54 tests.

About plugin

  • Plugin page: popup-dropping-box
  • Plugin version: 1.5
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 2, 2020
  • Latest release: Dec 1, 2022
  • Number of updates: 11
  • Update frequency: every 96.8 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.53ms] Passed 4 tests

An overview of server-side resources used by Popup dropping box
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.71 ▼5.16
Dashboard /wp-admin3.38 ▲0.0751.13 ▼3.19
Posts /wp-admin/edit.php3.49 ▲0.1351.00 ▲1.79
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.39 ▲0.43
Media Library /wp-admin/upload.php3.30 ▲0.0739.67 ▲3.64
Popup dropping box /wp-admin/options-general.php?page=popup-dropping-box3.3134.33

Server storage [IO: ▲0.10MB] [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: 20 new files
Database: 1 new table, 7 new options
New tables
wp_popupdbox
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
popup-dropping-box
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Popup dropping box
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲9013.80 ▼0.458.19 ▲6.2340.17 ▼5.27
Dashboard /wp-admin2,202 ▲225.56 ▼0.1488.93 ▼10.0641.90 ▼9.09
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.1739.40 ▼0.2637.17 ▼2.03
Add New Post /wp-admin/post-new.php1,529 ▼623.25 ▲5.03678.32 ▲57.6263.57 ▼2.57
Media Library /wp-admin/upload.php1,404 ▲14.23 ▲0.0397.94 ▼2.8143.63 ▼2.56
Popup dropping box /wp-admin/options-general.php?page=popup-dropping-box9072.0026.1027.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/popup-dropping-box/pages/image-management-add.php
    • > /wp-content/plugins/popup-dropping-box/pages/image-management-edit.php
    • > /wp-content/plugins/popup-dropping-box/pages/image-management-show.php
    • > /wp-content/plugins/popup-dropping-box/popup-dropping-box.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: pop up, widget, popup, plugin, dropping

popup-dropping-box/popup-dropping-box.php 92% from 13 tests

"Popup dropping box" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 228 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,123 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4152871,046
PHP715221946
PO File15893131

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.67
▷ Minimum class complexity11.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods1995.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/color/hs.png2.62KB7.54KB0.00%
inc/color/hv.png2.80KB7.32KB0.00%