84% blogsqode-posts

Code Review | WP Blog Layout Plugin and News Post Design - Blogsqode

WordPress plugin WP Blog Layout Plugin and News Post Design - Blogsqode scored84%from 54 tests.

About plugin

  • Plugin page: blogsqode-posts
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Jan 18, 2023
  • Latest release: Jan 18, 2023
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: thekrishna (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /644 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0933.45 ▼1.93
Dashboard /wp-admin3.45 ▲0.1153.00 ▼12.72
Posts /wp-admin/edit.php3.50 ▲0.1552.18 ▼3.75
Add New Post /wp-admin/post-new.php5.96 ▲0.0892.94 ▼4.75
Media Library /wp-admin/upload.php3.31 ▲0.0838.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,093 ▲34715.50 ▲0.926.60 ▲4.9338.27 ▼0.05
Dashboard /wp-admin2,368 ▲1806.67 ▲0.79119.70 ▲19.99108.27 ▲68.20
Posts /wp-admin/edit.php2,292 ▲2033.60 ▲1.5852.94 ▲12.4772.10 ▲36.47
Add New Post /wp-admin/post-new.php1,705 ▲17722.61 ▲4.52639.42 ▲26.1128.73 ▼21.51
Media Library /wp-admin/upload.php1,425 ▲374.32 ▲0.1392.30 ▼1.1386.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

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:
LanguageFilesBlank linesComment linesLines of code
CSS2880995,614
PHP194104442,129
JavaScript219079
SVG140051
PO File10015

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 code0.41
Average class complexity18.75
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity4.28
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods65
▷ Static methods1421.54%
▷ Public methods5381.54%
▷ Protected methods1218.46%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/blog-layout-3.png193.06KB65.56KB▼ 66.04%
images/pagination-4.png2.37KB1.37KB▼ 42.20%
images/pagination-17.png2.38KB1.43KB▼ 39.88%
images/read-more-4.png1.14KB0.58KB▼ 49.27%
images/blog-layout-21.png197.65KB68.00KB▼ 65.59%