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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.04 | 43.22 ▼13.28 |
Dashboard /wp-admin | 3.60 ▼0.03 | 54.77 ▼18.25 |
Posts /wp-admin/edit.php | 3.71 ▲0.03 | 53.34 ▼6.56 |
Add New Post /wp-admin/post-new.php | 5.09 ▼1.06 | 54.93 ▼50.41 |
Media Library /wp-admin/upload.php | 3.52 ▲0.03 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 14.41 ▼0.22 | 1.87 ▼0.16 | 43.50 ▼10.53 |
Dashboard /wp-admin | 2,199 ▲22 | 5.60 ▼0.08 | 91.65 ▼21.83 | 41.22 ▼0.62 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.03 ▲0.00 | 42.91 ▲1.72 | 34.47 ▼5.18 |
Add New Post /wp-admin/post-new.php | 6,374 ▲4,838 | 29.14 ▲6.08 | 888.43 ▲214.81 | 58.31 ▲0.83 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.22 ▼0.03 | 99.42 ▼11.97 | 45.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 4,482 |
CSS | 14 | 663 | 44 | 1,887 |
PHP | 3 | 71 | 49 | 176 |
JSON | 1 | 13 | 0 | 114 |
Sass | 1 | 6 | 0 | 35 |
JavaScript | 2 | 4 | 29 | 21 |
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 code | 0.69 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 1 | 11.11% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/magic-content-box-img-mask-layout-19.png | 4.06KB | 1.93KB | ▼ 52.41% |
dist/images/style-6.png | 0.83KB | 0.48KB | ▼ 42.71% |
dist/images/magic-content-box-header-layout-7.png | 0.82KB | 0.47KB | ▼ 42.36% |
dist/images/style-5.png | 0.82KB | 0.49KB | ▼ 39.76% |
dist/images/magic-content-box-img-mask-layout-10.png | 4.42KB | 2.35KB | ▼ 46.73% |