89% blog-layout-design

Code Review | Blog Layout Design by Themes Awesome

WordPress plugin Blog Layout Design by Themes Awesome scored 89% from 54 tests.

About plugin

  • Plugin page: blog-layout-design
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 5.8.1
  • First release: Nov 25, 2020
  • Latest release: Feb 7, 2022
  • Number of updates: 13
  • Update frequency: every 33.9 days
  • Top authors: themesawesome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 830 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲2.45MB] [CPU: ▼136.94ms] Passed 4 tests

An overview of server-side resources used by Blog Layout Design by Themes Awesome
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.36 ▲2.5346.80 ▲16.63
Dashboard /wp-admin5.68 ▲2.6154.87 ▲14.09
Posts /wp-admin/edit.php5.72 ▲2.6153.35 ▲18.02
Add New Post /wp-admin/post-new.php7.55 ▲2.1162.58 ▼593.70
Media Library /wp-admin/upload.php5.56 ▲2.5640.70 ▲15.23
Blog Showcase /wp-admin/edit.php?post_type=blogshowcase-design5.6147.07
Add New Blog Showcase /wp-admin/post-new.php?post_type=blogshowcase-design6.0792.27

Server storage [IO: ▲12.23MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 623 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Blog Layout Design by Themes Awesome
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,219 ▲56821.42 ▲5.8410.98 ▲5.1476.67 ▼1.27
Dashboard /wp-admin3,350 ▲45710.60 ▲4.27193.40 ▲56.60170.89 ▼6.59
Posts /wp-admin/edit.php3,231 ▲4918.03 ▲4.80109.24 ▲44.11138.62 ▲2.15
Add New Post /wp-admin/post-new.php1,760 ▼1,98320.29 ▲1.56402.60 ▼16.02162.20 ▼8.07
Media Library /wp-admin/upload.php1,951 ▲2028.12 ▲2.60163.07 ▲20.60197.86 ▲9.16
Blog Showcase /wp-admin/edit.php?post_type=blogshowcase-design1,8547.76109.27113.91
Add New Blog Showcase /wp-admin/post-new.php?post_type=blogshowcase-design5,34016.00505.92176.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/blog-layout-design/public/partials/wrap-start.php
    • > /wp-content/plugins/blog-layout-design/public/partials/wrap-end.php
    • > /wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 145× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: plural in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 40
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Ancestor_ID_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/core/Field/Rich_Text_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Any_Contain_Comparer.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Parent_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-field-number/core/Number_Field.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/core/Field/Hidden_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/core/Container/Theme_Options_Container.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/blog-layout-design/public/blog-layout-styles/masonry-full-image-1.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Carbon_Fields\\Provider\\add_filter() in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/core/Provider/Container_Condition_Provider.php:254

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: post gallery, blog, blog showcase, post loop

blog-layout-design/blog-layout-design.php Passed 13 tests

The main PHP file in "Blog Layout Design by Themes Awesome" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
Create stunning blog layout without headache

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
Success! There were no dangerous files found in this plugin57,168 lines of code in 510 files:
LanguageFilesBlank linesComment linesLines of code
PO File278231,0242,223

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.40
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes117.80%
▷ Concrete classes13092.20%
▷ Final classes10.77%
▷ Static methods11611.57%
▷ Public methods82081.75%
▷ Protected methods16916.85%
▷ Private methods141.40%
▷ Named functions13058.56%
▷ Anonymous functions9241.44%
▷ Global constants1435.90%
▷ Class constants2564.10%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/grid.png6.45KB2.93KB▼ 54.61%
assets/slide.png6.15KB2.64KB▼ 57.01%
assets/carousel.png6.71KB2.85KB▼ 57.54%
public/img/vertical-8.png0.11KB0.11KB▼ 0.85%
assets/justified.png6.92KB3.03KB▼ 56.15%