84% maxboxy

Code Review | MaxBoxy: Make WordPress Floating Content, Popup, Alert Bar

WordPress plugin MaxBoxy: Make WordPress Floating Content, Popup, Alert Bar scored84%from 54 tests.

About plugin

  • Plugin page: maxboxy
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.3.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Aug 21, 2020
  • Latest release: Nov 13, 2023
  • Number of updates: 87
  • Update frequency: every 13.6 days
  • Top authors: maxpressy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,983 total downloads

Benchmarks

Plugin footprint 83% 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.45MB] [CPU: ▼2.33ms] Passed 4 tests

Analyzing server-side resources used by MaxBoxy: Make WordPress Floating Content, Popup, Alert Bar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4948.57 ▲8.88
Dashboard /wp-admin3.77 ▲0.4253.86 ▼3.67
Posts /wp-admin/edit.php3.82 ▲0.4649.68 ▲2.17
Add New Post /wp-admin/post-new.php6.53 ▲0.6586.80 ▼13.15
Media Library /wp-admin/upload.php3.64 ▲0.4138.12 ▲5.33
Panels: InjectAny /wp-admin/edit.php?post_type=inject_any3.7743.52
Panels: FloatAny /wp-admin/edit.php?post_type=float_any3.7740.88
/wp-admin/admin.php?page=maxboxy-settings3.6336.13
Manage Tags /wp-admin/edit-tags.php?taxonomy=maxboxy_tag3.7937.96
/wp-admin/admin.php?page=maxboxy-settings&page=3.5129.35
Manage Categories /wp-admin/edit-tags.php?taxonomy=maxboxy_cat3.6334.00

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 239 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
_maxboxy_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by MaxBoxy: Make WordPress Floating Content, Popup, Alert Bar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲17213.46 ▼0.859.81 ▲8.1842.35 ▲0.40
Dashboard /wp-admin2,242 ▲625.70 ▲0.0591.82 ▼0.0539.66 ▲0.52
Posts /wp-admin/edit.php2,150 ▲472.05 ▲0.0836.05 ▼5.1334.41 ▼1.78
Add New Post /wp-admin/post-new.php1,568 ▲4223.80 ▲0.81685.08 ▲27.2853.33 ▼6.27
Media Library /wp-admin/upload.php1,450 ▲534.28 ▲0.0899.39 ▼2.2042.29 ▼2.00
Panels: InjectAny /wp-admin/edit.php?post_type=inject_any1,3253.8053.5428.64
Panels: FloatAny /wp-admin/edit.php?post_type=float_any1,3263.8054.1728.13
/wp-admin/admin.php?page=maxboxy-settings1,3893.9166.2948.26
Manage Tags /wp-admin/edit-tags.php?taxonomy=maxboxy_tag1,3142.2328.5528.69
/wp-admin/admin.php?page=maxboxy-settings&page=280.410.093.54
Manage Categories /wp-admin/edit-tags.php?taxonomy=maxboxy_cat1,3392.2328.9125.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • _maxboxy_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=maxboxy-settings&page=
    • > Network (severe)
    wp-admin/admin.php?page=maxboxy-settings&page= - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: content box, popup, floating menu, notifications, alerts...

maxboxy/maxboxy.php Passed 13 tests

The main PHP script in "MaxBoxy: Make WordPress Floating Content, Popup, Alert Bar" version 1.1.2 is automatically included on every request by WordPress
54 characters long description:
Conversion Boxes, Popups, Float and Inject Any Content

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin44,218 lines of code in 162 files:
LanguageFilesBlank linesComment linesLines of code
PHP1004,3282,37718,428
JavaScript141,9318297,615
PO File203,1983,5916,500
Sass201,180776,177
CSS64255555,496
SVG2002

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 202)
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity29.63
▷ Minimum class complexity1.00
▷ Maximum class complexity237.00
Average method complexity7.85
▷ Minimum method complexity1.00
▷ Maximum method complexity202.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes67
▷ Abstract classes22.99%
▷ Concrete classes6597.01%
▷ Final classes00.00%
Methods280
▷ Static methods7827.86%
▷ Public methods27698.57%
▷ Protected methods00.00%
▷ Private methods41.43%
Functions28
▷ Named functions2692.86%
▷ Anonymous functions27.14%
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
36 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/opt/img/pos-6.png0.28KB0.22KB▼ 22.57%
admin/opt/img/i-ham-5.png0.20KB0.11KB▼ 46.12%
admin/opt/img/pos-3.png0.29KB0.23KB▼ 22.33%
admin/opt/img/loc-3.png0.16KB0.11KB▼ 33.33%
admin/opt/img/i-point-up.png0.47KB0.28KB▼ 40.46%