Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function map_meta_cap was called incorrectly. The post type mabox_template is not registered, so it may not be reliable to check the capability edit_post against a post of that type. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)
Server metrics [RAM: ▲0.14MB] [CPU: ▼3.76ms] Passed 4 tests
Analyzing server-side resources used by Magic Author Box
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.39 ▲2.47 |
Dashboard /wp-admin | 3.46 ▲0.16 | 50.91 ▼2.31 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 51.31 ▲0.98 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 85.78 ▼16.17 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 39.86 ▲4.50 |
Add New /wp-admin/post-new.php?post_type=mabox_template | 3.78 | 62.52 |
All Template /wp-admin/edit.php?post_type=mabox_template | 3.48 | 49.68 |
Settings /wp-admin/edit.php?post_type=mabox_template&page=mabox-settings | 3.40 | 41.57 |
Server storage [IO: ▲0.43MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
MABox_Settings |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Magic Author Box
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.28 ▼1.40 | 1.71 ▼0.01 | 38.51 ▼2.01 |
Dashboard /wp-admin | 2,237 ▲102 | 5.88 ▲0.22 | 109.24 ▼12.42 | 39.43 ▼5.76 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.00 ▼0.04 | 38.16 ▼3.76 | 34.29 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 23.36 ▲0.27 | 665.02 ▼3.68 | 49.88 ▼3.37 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.24 ▼0.03 | 95.12 ▼2.90 | 42.15 ▼1.53 |
Add New /wp-admin/post-new.php?post_type=mabox_template | 11,792 | 3.70 | 177.46 | 70.47 |
All Template /wp-admin/edit.php?post_type=mabox_template | 1,854 | 2.05 | 34.43 | 28.31 |
Settings /wp-admin/edit.php?post_type=mabox_template&page=mabox-settings | 1,256 | 4.51 | 51.72 | 24.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- MABox_Settings
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/magic-author-box/includes/templates/template-mabox.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
9 plugin tags: author social icons, author bio, author profile fields, profile fields, author profile...
magic-author-box/magic-author-box.php Passed 13 tests
Analyzing the main PHP file in "Magic Author Box" version 1.0.1
85 characters long description:
Magic Author Box display a responsive author box with author information on frontend.
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
No dangerous file extensions were detected4,441 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 527 | 790 | 3,476 |
CSS | 2 | 82 | 24 | 504 |
JavaScript | 3 | 153 | 84 | 461 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 20 | 27.03% |
▷ Public methods | 65 | 87.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 12.16% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-icons_444444_256x240.png | 3.19KB | 3.49KB | 0.00% |
admin/css/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.12KB | 0.16KB | 0.00% |
admin/css/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
admin/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
admin/css/images/ui-icons_777777_256x240.png | 3.19KB | 3.49KB | 0.00% |