79% blog-layout-design

Code Review | Blog Layout Design by Themes Awesome

WordPress plugin Blog Layout Design by Themes Awesome scored79%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-6.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2020
  • Latest release: Dec 16, 2022
  • Number of updates: 14
  • Update frequency: every 53.7 days
  • Top authors: themesawesome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,595 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲2.29MB] [CPU: ▲14.42ms] Passed 4 tests

A check of server-side resources used by Blog Layout Design by Themes Awesome
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /6.01 ▲2.5561.23 ▲19.07
Dashboard /wp-admin5.86 ▲2.5674.20 ▲26.39
Posts /wp-admin/edit.php5.95 ▲2.5978.66 ▲28.07
Add New Post /wp-admin/post-new.php7.39 ▲1.5075.59 ▼15.87
Media Library /wp-admin/upload.php5.77 ▲2.5560.28 ▲28.33
Blog Showcase /wp-admin/edit.php?post_type=blogshowcase-design5.8261.22
Add New Blog Showcase /wp-admin/post-new.php?post_type=blogshowcase-design6.30110.44

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 623 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Blog Layout Design by Themes Awesome
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,217 ▲47119.23 ▲4.858.00 ▲6.1439.66 ▼7.94
Dashboard /wp-admin2,518 ▲3309.29 ▲3.44190.54 ▲79.2542.40 ▼0.83
Posts /wp-admin/edit.php2,488 ▲3996.30 ▲4.2477.34 ▲38.2434.19 ▼0.85
Add New Post /wp-admin/post-new.php6,267 ▲4,73422.01 ▼1.17904.16 ▲219.1049.72 ▼4.92
Media Library /wp-admin/upload.php1,576 ▲1856.66 ▲2.49110.53 ▲8.5441.96 ▼5.40
Blog Showcase /wp-admin/edit.php?post_type=blogshowcase-design1,4196.3376.4226.48
Add New Blog Showcase /wp-admin/post-new.php?post_type=blogshowcase-design3,97910.79558.6643.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /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
    • > /wp-content/plugins/blog-layout-design/public/partials/wrap-start.php
  • 145× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > 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_Format_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/blog-layout-design/vendor/ynacorp/carbon-field-uniqid/core/UniqID_Field.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/core/Field/Sidebar_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/Text_Field.php:10
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/templates/Container/user_meta.php:1
    • > 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_ID_Condition.php:8
    • > 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/User_Capability_Condition.php:10
    • > 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/Term_Level_Condition.php:10
    • > 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/Date_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/blog-layout-design/vendor/htmlburger/carbon-fields/templates/Container/term_meta.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: post gallery, blog, post loop, blog showcase

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 an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected57,168 lines of code in 510 files:
LanguageFilesBlank linesComment linesLines of code
CSS193,8211,75019,779
PHP1983,9057,75216,618
JavaScript1955,5329,15015,526
PO File278231,0242,223
Sass5137201,959
JSON1200811
Markdown6520162
SVG20090

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
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
Namespaces28
Interfaces6
Traits0
Classes141
▷ Abstract classes117.80%
▷ Concrete classes13092.20%
▷ Final classes10.77%
Methods1,003
▷ Static methods11611.57%
▷ Public methods82081.75%
▷ Protected methods16916.85%
▷ Private methods141.40%
Functions222
▷ Named functions13058.56%
▷ Anonymous functions9241.44%
Constants39
▷ 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.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/timeline-vertical-bg.png0.91KB0.10KB▼ 89.19%
public/img/displacement/5.png58.92KB75.10KB0.00%
assets/masonry.png7.17KB3.13KB▼ 56.39%
assets/justified.png6.92KB3.03KB▼ 56.15%
assets/carousel.png6.71KB2.85KB▼ 57.54%