84% magic-content-box-lite

Code Review | Magic Content Box Lite - Page Content Builder Gutenberg Block for WordPress

WordPress plugin Magic Content Box Lite - Page Content Builder Gutenberg Block for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: magic-content-box...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 16, 2020
  • Latest release: Sep 4, 2023
  • Number of updates: 18
  • Update frequency: every 60.2 days
  • Top authors: afthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /148,564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.26MB] [CPU: ▼22.13ms] Passed 4 tests

An overview of server-side resources used by Magic Content Box Lite - Page Content Builder Gutenberg Block for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.0443.22 ▼13.28
Dashboard /wp-admin3.60 ▼0.0354.77 ▼18.25
Posts /wp-admin/edit.php3.71 ▲0.0353.34 ▼6.56
Add New Post /wp-admin/post-new.php5.09 ▼1.0654.93 ▼50.41
Media Library /wp-admin/upload.php3.52 ▲0.0339.84 ▼0.48

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 102 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Magic Content Box Lite - Page Content Builder Gutenberg Block for WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5514.41 ▼0.221.87 ▼0.1643.50 ▼10.53
Dashboard /wp-admin2,199 ▲225.60 ▼0.0891.65 ▼21.8341.22 ▼0.62
Posts /wp-admin/edit.php2,107 ▲42.03 ▲0.0042.91 ▲1.7234.47 ▼5.18
Add New Post /wp-admin/post-new.php6,374 ▲4,83829.14 ▲6.08888.43 ▲214.8158.31 ▲0.83
Media Library /wp-admin/upload.php1,401 ▲14.22 ▼0.0399.42 ▼11.9745.62 ▼6.13

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/magic-content-box-lite/magic-content-box-lite.php
    • > /wp-content/plugins/magic-content-box-lite/src/init.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt might help

magic-content-box-lite/magic-content-box-lite.php 92% from 13 tests

The main PHP script in "Magic Content Box Lite - Page Content Builder Gutenberg Block for WordPress" version 1.0.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected6,715 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
SVG30124,482
CSS14663441,887
PHP37149176
JSON1130114
Sass16035
JavaScript242921

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity15.50
▷ Minimum class complexity8.00
▷ Maximum class complexity23.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
64 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/images/magic-content-box-img-mask-layout-19.png4.06KB1.93KB▼ 52.41%
dist/images/style-6.png0.83KB0.48KB▼ 42.71%
dist/images/magic-content-box-header-layout-7.png0.82KB0.47KB▼ 42.36%
dist/images/style-5.png0.82KB0.49KB▼ 39.76%
dist/images/magic-content-box-img-mask-layout-10.png4.42KB2.35KB▼ 46.73%