Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.36MB] [CPU: ▼2.43ms] Passed 4 tests
A check of server-side resources used by WP Blog Post Layouts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 44.28 ▲0.30 |
Dashboard /wp-admin | 3.65 ▲0.34 | 53.28 ▲1.36 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 48.49 ▼4.79 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 98.21 ▼6.58 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 38.80 ▲3.02 |
Server storage [IO: ▲6.52MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 106 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wpblog_post_layouts_premium_prefix |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
wpblog_post_layouts_activated_time |
wpblog_post_layouts_upgrade_premium |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Blog Post Layouts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲224 | 13.67 ▼0.64 | 13.55 ▲11.90 | 82.50 ▲38.97 |
Dashboard /wp-admin | 2,237 ▲52 | 4.88 ▼0.94 | 106.34 ▲2.33 | 38.57 ▼4.80 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.02 ▲0.01 | 35.71 ▼1.06 | 30.62 ▼6.30 |
Add New Post /wp-admin/post-new.php | 6,203 ▲4,670 | 19.91 ▼3.29 | 855.16 ▲197.08 | 57.69 ▼4.34 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.21 ▼0.09 | 100.53 ▼4.64 | 43.25 ▼1.09 |
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 detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- wpblog_post_layouts_premium_prefix
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 29× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: postMargin in wp-content/plugins/wp-blog-post-layouts/includes/src/masonry/layout-two/layout-two.php on line 5
- > PHP Notice
Undefined variable: postMargin in wp-content/plugins/wp-blog-post-layouts/includes/src/grid/layout-three/layout-three.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-blog-post-layouts/includes/elementor.php:41
- > PHP Notice
Undefined variable: postMargin in wp-content/plugins/wp-blog-post-layouts/includes/src/masonry/layout-three/layout-three.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/wp-blog-post-layouts/includes/assets/elementor-custom-control/elements-radio-image-control/radio-image.php:6
- > PHP Notice
Undefined variable: postMargin in wp-content/plugins/wp-blog-post-layouts/includes/src/grid/layout-two/layout-two.php on line 5
- > PHP Notice
Undefined variable: postMargin in wp-content/plugins/wp-blog-post-layouts/includes/src/masonry/layout-one/layout-one.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wp-blog-post-layouts/includes/src/masonry/element.php:6
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wp-blog-post-layouts/includes/src/grid/element.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-blog-post-layouts/includes/src/grid/layout-three/layout-three.php:8
- > PHP Notice
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
wp-blog-post-layouts/wp-blog-post-layouts.php 92% from 13 tests
"WP Blog Post Layouts" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 214 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin59,034 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 34 | 4,359 | 5,768 | 23,883 |
JSON | 3 | 0 | 0 | 16,052 |
SVG | 4 | 0 | 12 | 9,078 |
PHP | 26 | 538 | 568 | 6,150 |
CSS | 8 | 1,621 | 43 | 3,871 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.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 | 77 | |
▷ Static methods | 7 | 9.09% |
▷ Public methods | 69 | 89.61% |
▷ Protected methods | 7 | 9.09% |
▷ Private methods | 1 | 1.30% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/images/list-layout-three.png | 0.37KB | 0.14KB | ▼ 61.90% |
includes/assets/images/list-layout-two.png | 0.80KB | 0.57KB | ▼ 28.38% |
includes/assets/images/grid-layout-two.png | 0.37KB | 0.16KB | ▼ 57.56% |
includes/assets/images/grid-layout-one.png | 0.29KB | 0.11KB | ▼ 64.12% |
includes/assets/images/grid-layout-three.png | 0.35KB | 0.13KB | ▼ 62.54% |