Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.35ms] Passed 4 tests
This is a short check of server-side resources used by Blogmentor - Blog Layouts for Elementor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 45.53 ▲5.14 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.96 ▼8.26 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 53.40 ▲5.75 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.69 ▼8.07 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.95 ▲1.79 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Blogmentor - Blog Layouts for Elementor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲203 | 13.95 ▼0.24 | 11.59 ▲9.33 | 39.66 ▼2.16 |
Dashboard /wp-admin | 2,202 ▲22 | 5.57 ▼0.04 | 87.69 ▲0.88 | 40.90 ▼5.79 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 2.10 ▲0.11 | 39.28 ▼5.24 | 36.32 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.05 ▲0.03 | 628.35 ▼67.25 | 55.04 ▲2.78 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.21 ▲0.02 | 98.69 ▼12.26 | 44.71 ▼1.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: blog_posts in wp-content/plugins/blogmentor/includes/layouts/masonry/masonry-style-2.php on line 18
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/blogmentor/includes/layouts/masonry/masonry-style-2.php:18
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/blogmentor/includes/layouts/masonry/masonry-style-1.php:19
- > PHP Notice
Undefined variable: blog_posts in wp-content/plugins/blogmentor/includes/layouts/metro/metro-style-1.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/blogmentor/includes/layouts/grid/grid-style-1.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/blogmentor/includes/layouts/grid/grid-style-2.php:2
- > PHP Notice
Undefined variable: blog_posts in wp-content/plugins/blogmentor/includes/layouts/masonry/masonry-style-1.php on line 19
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/blogmentor/includes/layouts/metro/metro-style-1.php on line 3
- > PHP Notice
Trying to get property 'posts' of non-object in wp-content/plugins/blogmentor/includes/layouts/metro/metro-style-1.php on line 2
- > PHP Notice
Undefined variable: blog_posts in wp-content/plugins/blogmentor/includes/layouts/grid/grid-style-2.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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: metro layout, blog module, elementor addon, grid layout, elementor blog addon...
blogmentor/blogmentor.php Passed 13 tests
This is the main PHP file of "Blogmentor - Blog Layouts for Elementor" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
Showcase WordPress posts in beautiful ways with Elementor page builder.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,278 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 4 | 4,645 |
PHP | 9 | 218 | 154 | 1,905 |
CSS | 5 | 8 | 22 | 720 |
JavaScript | 1 | 1 | 3 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.70 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 6.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 66.67% |
▷ Protected methods | 2 | 33.33% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin