Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.19MB] [CPU: ▲3.00ms] Passed 4 tests
Server-side resources used by Blog Designer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.67 ▲1.20 | 45.57 ▲2.23 |
Dashboard /wp-admin | 4.50 ▲1.19 | 54.06 ▲4.00 |
Posts /wp-admin/edit.php | 4.61 ▲1.25 | 56.06 ▲4.84 |
Add New Post /wp-admin/post-new.php | 7.08 ▲1.19 | 95.26 ▲0.94 |
Media Library /wp-admin/upload.php | 4.42 ▲1.19 | 45.63 ▲9.18 |
Getting Started /wp-admin/admin.php?page=bd_getting_started | 4.47 | 44.02 |
Blog Designer Settings /wp-admin/admin.php?page=designer_settings | 4.40 | 39.95 |
Server storage [IO: ▲6.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 151 new files
Database: no new tables, 29 new options
New WordPress options |
---|
display_category |
bd_version |
can_compress_scripts |
display_comment_count |
widget_wp_blog_designer_scroll_widget |
is_user_subscribed_cancled |
widget_recent-posts |
twitter_link |
display_author |
read_more_on |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Blog Designer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,047 ▲285 | 13.95 ▼0.37 | 10.99 ▲9.34 | 36.49 ▼7.66 |
Dashboard /wp-admin | 2,358 ▲181 | 5.71 ▲0.12 | 94.41 ▼2.82 | 80.75 ▲30.80 |
Posts /wp-admin/edit.php | 2,270 ▲170 | 2.19 ▲0.23 | 37.00 ▼2.19 | 32.91 ▼2.38 |
Add New Post /wp-admin/post-new.php | 6,519 ▲4,993 | 27.76 ▲4.90 | 936.60 ▲294.60 | 41.76 ▼16.99 |
Media Library /wp-admin/upload.php | 1,568 ▲168 | 4.30 ▲0.10 | 103.29 ▲8.83 | 43.51 ▼1.33 |
Getting Started /wp-admin/admin.php?page=bd_getting_started | 1,339 | 3.74 | 85.66 | 78.63 |
Blog Designer Settings /wp-admin/admin.php?page=designer_settings | 1,008 | 3.70 | 83.66 | 23.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 30 options
- widget_wp_blog_designer_scroll_widget
- theysaidso_admin_options
- bd_is_optin
- template_alternativebackground
- bd_version
- widget_recent-posts
- content_fontsize
- wp_blog_designer_settings
- db_upgraded
- excerpt_length
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-designer/public/class-blog-designer-lite-public.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-designer/includes/blog_designer_block/index.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-designer/includes/promo-notice.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blog-designer/public/designer-css.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-designer/admin/class-blog-designer-lite-admin.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 29 tag instead of maximum 10
blog-designer/blog-designer.php Passed 13 tests
"Blog Designer" version 3.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
To make your blog design more pretty, attractive and colorful.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin24,530 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 1,282 | 224 | 8,323 |
PHP | 17 | 132 | 625 | 8,196 |
JavaScript | 9 | 176 | 36 | 4,252 |
SVG | 4 | 0 | 12 | 2,899 |
XML | 1 | 27 | 16 | 860 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 162)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 181.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 444.00 |
Average method complexity | 17.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 162.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 28 | 43.08% |
▷ Public methods | 65 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
33 PNG files occupy 0.59MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/glyphicons-halflings.png | 13.50KB | 10.35KB | ▼ 23.34% |
admin/images/navigation/navigation2.png | 0.25KB | 0.26KB | 0.00% |
admin/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
admin/images/blog-designer-vc.png | 2.03KB | 1.17KB | ▼ 42.53% |
admin/images/bdp-logo.png | 7.49KB | 4.24KB | ▼ 43.40% |