89% quick-box-popup

Code Review | Quick Box - Onclick Popup Notification Box

WordPress plugin Quick Box - Onclick Popup Notification Box scored89%from 54 tests.

About plugin

  • Plugin page: quick-box-popup
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.9.4
  • WordPress version: 6.3.1
  • First release: Sep 13, 2012
  • Latest release: Jul 5, 2018
  • Number of updates: 25
  • Update frequency: every 84.9 days
  • Top authors: f1logic (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active /32,801 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼5.38ms] Passed 4 tests

Server-side resources used by Quick Box - Onclick Popup Notification Box
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2134.28 ▼6.10
Dashboard /wp-admin3.48 ▲0.1843.38 ▼6.58
Posts /wp-admin/edit.php3.58 ▲0.2346.60 ▼2.37
Add New Post /wp-admin/post-new.php6.19 ▲0.3185.80 ▼6.47
Media Library /wp-admin/upload.php3.42 ▲0.1940.11 ▲4.69
Basic Settings /wp-admin/admin.php?page=quickbox-basic-settings3.3630.41
About /wp-admin/admin.php?page=quickbox-about3.4035.28
Quick Box /wp-admin/admin.php?page=quickbox-settings3.5036.29

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 38 new options
New WordPress options
xyz_qbx_page_count
xyz_qbx_display_position
xyz_qbx_font
xyz_qbx_height
widget_recent-posts
xyz_qbx_border_width
xyz_qbx_title_color
widget_recent-comments
xyz_qbx_width_dim
xyz_qbx_adds_enable
...

Browser metrics Passed 4 tests

Quick Box - Onclick Popup Notification Box: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,959 ▲20213.55 ▼0.4511.75 ▲9.7738.97 ▼3.77
Dashboard /wp-admin2,240 ▲525.84 ▼0.2296.35 ▼12.4790.76 ▲48.69
Posts /wp-admin/edit.php2,129 ▲402.05 ▲0.0542.10 ▲1.0933.42 ▼2.05
Add New Post /wp-admin/post-new.php1,696 ▲17522.48 ▼0.57668.37 ▲8.9551.60 ▲1.77
Media Library /wp-admin/upload.php1,410 ▲224.17 ▼0.0995.38 ▼17.0173.30 ▲25.88
Basic Settings /wp-admin/admin.php?page=quickbox-basic-settings1,2461.6925.1754.11
About /wp-admin/admin.php?page=quickbox-about1,7791.7925.0054.09
Quick Box /wp-admin/admin.php?page=quickbox-settings2,6326.96145.13133.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 11 options in the database
    • xyz_credit_link
    • xyz_qbx_title
    • widget_theysaidso_widget
    • widget_recent-comments
    • xyz_qbx_title_color
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • xyz_qbx_font
    • ...

Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The main PHP script in "Quick Box - Onclick Popup Notification Box" version 1.2.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 412 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,446 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP16347571,967
CSS11103441
JavaScript210138

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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

All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/tick.png0.91KB0.87KB▼ 4.30%
images/facebook.png0.65KB0.65KB▼ 0.75%
images/xyz_logo.png9.26KB3.02KB▼ 67.36%
images/gplus.png1.06KB0.91KB▼ 13.85%
images/twitter.png0.98KB0.85KB▼ 13.70%