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
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.79ms] Passed 4 tests
A check of server-side resources used by WP Blog Layout Plugin and News Post Design - Blogsqode
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 33.45 ▼1.93 |
Dashboard /wp-admin | 3.45 ▲0.11 | 53.00 ▼12.72 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 52.18 ▼3.75 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 92.94 ▼4.75 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.63 ▲5.63 |
Server storage [IO: ▲6.93MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 111 new files
Database: no new tables, 43 new options
New WordPress options |
---|
blogsqode_singlepage_layout |
blogsqode_single_pagination_allow |
whatsapp_social_icon |
blogsqode_single_blog_date_allow |
blogsqode_pagination_layout |
blogsqode_blog_pagination_option |
blogsqode_category_allow |
blogsqode_single_sharebutton_allow |
snapchat_social_icon |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP Blog Layout Plugin and News Post Design - Blogsqode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,093 ▲347 | 15.50 ▲0.92 | 6.60 ▲4.93 | 38.27 ▼0.05 |
Dashboard /wp-admin | 2,368 ▲180 | 6.67 ▲0.79 | 119.70 ▲19.99 | 108.27 ▲68.20 |
Posts /wp-admin/edit.php | 2,292 ▲203 | 3.60 ▲1.58 | 52.94 ▲12.47 | 72.10 ▲36.47 |
Add New Post /wp-admin/post-new.php | 1,705 ▲177 | 22.61 ▲4.52 | 639.42 ▲26.11 | 28.73 ▼21.51 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.32 ▲0.13 | 92.30 ▼1.13 | 86.20 ▲45.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 43 options in the database
- blogsqode_blogs_per_page
- db_upgraded
- blogsqode_single_pagination_allow
- blogsqode_author_name_allow
- blogsqode_single_blog_date_allow
- theysaidso_admin_options
- blogsqode_category_allow
- blogsqode_short_desc_allow
- blogsqode_read_more_fill_allow
- blogsqode_single_tags_allow
- ...
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)
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
The following issues need your attention
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Blogsqode_Public_Templates' not found in wp-content/plugins/blogsqode-posts/public/class-blogsqode-blog-public.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blogsqode-posts/admin/settings/elementor/blogsqode-widgets.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\is_plugin_active() in wp-content/plugins/blogsqode-posts/admin/settings/elementor/blogsqode-shortcode-widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blogsqode-posts/admin/blogsqode-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/blogsqode-posts/public/single/template-parts/content-single.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\is_plugin_active() in wp-content/plugins/blogsqode-posts/admin/settings/elementor/blogsqode-blockquote-widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/blogsqode-posts/public/single/single-blogsqode.php:2
- > PHP Fatal error
Uncaught Error: Class 'Blogsqode_Admin_Settings' not found in wp-content/plugins/blogsqode-posts/admin/main-blogsqode.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: blog, blog grid, layout, blog layout, post...
blogsqode-posts/blogsqode-posts.php 92% from 13 tests
The primary PHP file in "WP Blog Layout Plugin and News Post Design - Blogsqode" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected7,888 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 880 | 99 | 5,614 |
PHP | 19 | 410 | 444 | 2,129 |
JavaScript | 2 | 19 | 0 | 79 |
SVG | 14 | 0 | 0 | 51 |
PO File | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This is a short overview 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.41 |
Average class complexity | 18.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 14 | 21.54% |
▷ Public methods | 53 | 81.54% |
▷ Protected methods | 12 | 18.46% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
70 PNG files occupy 6.61MB with 3.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blog-layout-3.png | 193.06KB | 65.56KB | ▼ 66.04% |
images/pagination-4.png | 2.37KB | 1.37KB | ▼ 42.20% |
images/pagination-17.png | 2.38KB | 1.43KB | ▼ 39.88% |
images/read-more-4.png | 1.14KB | 0.58KB | ▼ 49.27% |
images/blog-layout-21.png | 197.65KB | 68.00KB | ▼ 65.59% |