Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.46ms] Passed 4 tests
Analyzing server-side resources used by Magic Meta Box
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.57 ▼1.54 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.12 ▼7.33 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.62 ▼2.00 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.53 ▼26.27 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.60 ▼2.23 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 118 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Magic Meta Box: 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,814 ▲53 | 14.72 ▲0.44 | 2.32 ▲0.69 | 48.37 ▲2.61 |
Dashboard /wp-admin | 2,192 ▲12 | 5.63 ▼0.03 | 83.05 ▼17.08 | 38.89 ▼7.96 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.06 | 39.27 ▲3.43 | 37.23 ▼3.46 |
Add New Post /wp-admin/post-new.php | 1,537 ▼0 | 18.32 ▲0.30 | 639.37 ▼44.12 | 68.99 ▼19.79 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.29 ▲0.08 | 102.34 ▼15.68 | 41.19 ▼6.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 18× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/magic-meta-box/includes/repeated-fields/color.php
- > /wp-content/plugins/magic-meta-box/includes/repeated-fields/multicheckbox.php
- > /wp-content/plugins/magic-meta-box/includes/repeated-fields/gallery.php
- > /wp-content/plugins/magic-meta-box/includes/repeated-fields/date.php
- > /wp-content/plugins/magic-meta-box/includes/fields/time.php
- > /wp-content/plugins/magic-meta-box/includes/fields/gallery.php
- > /wp-content/plugins/magic-meta-box/includes/repeated-fields/time.php
- > /wp-content/plugins/magic-meta-box/includes/fields/color.php
- > /wp-content/plugins/magic-meta-box/includes/repeated-fields/editor.php
- > /wp-content/plugins/magic-meta-box/includes/fields/editor.php
- 395× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: id in wp-content/plugins/magic-meta-box/includes/fields/gallery.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/magic-meta-box/includes/repeated-fields/email.php on line 3
- > PHP Notice
Undefined variable: opt in wp-content/plugins/magic-meta-box/includes/repeated-fields/radio.php on line 6
- > PHP Notice
Undefined variable: time_zone in wp-content/plugins/magic-meta-box/includes/fields/time.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/magic-meta-box/includes/fields/url.php:1
- > PHP Notice
Undefined variable: opt in wp-content/plugins/magic-meta-box/includes/repeated-fields/time.php on line 7
- > PHP Notice
Undefined variable: value_field in wp-content/plugins/magic-meta-box/includes/repeated-fields/file.php on line 11
- > PHP Notice
Undefined variable: min in wp-content/plugins/magic-meta-box/includes/repeated-fields/slider.php on line 10
- > PHP Notice
Undefined variable: id in wp-content/plugins/magic-meta-box/includes/fields/image.php on line 7
- > PHP Notice
Undefined variable: field_id in wp-content/plugins/magic-meta-box/includes/repeated-fields/embed.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (register magic metabox), #2 (repeat Fields), #3 (tabs)
magic-meta-box/magic-metabox.php 92% from 13 tests
The primary PHP file in "Magic Meta Box" version 2.4.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("magic-meta-box.php" instead of "magic-metabox.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,834 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 67 | 183 | 1,589 |
PHP | 49 | 48 | 27 | 1,301 |
JavaScript | 11 | 67 | 134 | 1,170 |
SVG | 1 | 0 | 0 | 774 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.06 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 3 | 33.33% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
44 PNG files occupy 0.46MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_ef8c08_256x240.png | 4.49KB | 4.18KB | ▼ 6.89% |
images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
css/images/ui-bg_fine-grain_15_ffffff_60x60.png | 3.63KB | 1.56KB | ▼ 56.97% |