68% dn-popup

Code Review | DN Popup

WordPress plugin DN Popup scored68%from 54 tests.

About plugin

  • Plugin page: dn-popup
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 18, 2021
  • Latest release: Jan 4, 2023
  • Number of updates: 7
  • Update frequency: every 102.6 days
  • Top authors: digireturn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /441 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.82MB] [CPU: ▼35.15ms] Passed 4 tests

An overview of server-side resources used by DN Popup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1537.97 ▲1.99
Dashboard /wp-admin3.14 ▼0.2128.54 ▼29.17
Posts /wp-admin/edit.php3.14 ▼0.2224.07 ▼23.94
Add New Post /wp-admin/post-new.php3.14 ▼2.7526.01 ▼77.26
Media Library /wp-admin/upload.php3.14 ▼0.0922.78 ▼10.24
DN Popup /wp-admin/options-general.php?page=dn_popup_manage3.1423.70

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for DN Popup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.19 ▼0.991.49 ▼0.2537.88 ▼5.04
Dashboard /wp-admin2,207 ▲195.77 ▲0.87100.99 ▼12.8340.31 ▼1.02
Posts /wp-admin/edit.php2,090 ▼22.14 ▲0.0934.42 ▼5.1434.34 ▲1.02
Add New Post /wp-admin/post-new.php1,545 ▲3118.22 ▲0.63612.26 ▼64.4650.43 ▼3.39
Media Library /wp-admin/upload.php1,386 ▼54.27 ▲0.0796.84 ▼3.6441.11 ▼4.58
DN Popup /wp-admin/options-general.php?page=dn_popup_manage1,6016.55125.5761.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=dn_popup_manage
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/options-general.php?page=dn_popup_manage
    • > User deprecated in wp-includes/functions.php+5453
    Function the_editor is deprecated since version 3.3.0! Use wp_editor() instead.

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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/dn-popup/dn-popup.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Semplice/Simple popup), #2 (Personalizza/Customize popup), #3 (Principale/Main), #4 (Form), #5 (Impostazioni/Settings), #6 (Archivio/Archive)
The official readme.txt might help

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

The entry point to "DN Popup" version 1.2.2 is a PHP file that has certain tags in its header comment area
102 characters long description:
Un semplice popup personalizzabile. Simple popup customizable. Integration with DN Languages Multilang

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin626 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11432469
PO File1174302157

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png2.14KB1.11KB▼ 48.38%