84% blogmentor

Code Review | Blogmentor - Blog Layouts for Elementor

WordPress plugin Blogmentor - Blog Layouts for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: blogmentor
  • Plugin version: 1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2019
  • Latest release: Oct 5, 2023
  • Number of updates: 12
  • Update frequency: every 121.8 days
  • Top authors: auburnforest (75%)techeshta (33.33%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10,000+ active /57,201 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.53 ▲5.14
Dashboard /wp-admin3.35 ▲0.0446.96 ▼8.26
Posts /wp-admin/edit.php3.40 ▲0.0453.40 ▲5.75
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.69 ▼8.07
Media Library /wp-admin/upload.php3.27 ▲0.0436.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲20313.95 ▼0.2411.59 ▲9.3339.66 ▼2.16
Dashboard /wp-admin2,202 ▲225.57 ▼0.0487.69 ▲0.8840.90 ▼5.79
Posts /wp-admin/edit.php2,110 ▲72.10 ▲0.1139.28 ▼5.2436.32 ▼2.04
Add New Post /wp-admin/post-new.php1,536 ▲1023.05 ▲0.03628.35 ▼67.2555.04 ▲2.78
Media Library /wp-admin/upload.php1,410 ▲104.21 ▲0.0298.69 ▼12.2644.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

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:
LanguageFilesBlank linesComment linesLines of code
SVG1044,645
PHP92181541,905
CSS5822720
JavaScript1138

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 code0.70
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity6.17
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods233.33%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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