84% post-block

Code Review | FancyPost - Best Ultimate Post Block, Post Grid, Layouts, Carousel, Slider For Gutenberg & Elementor

WordPress plugin FancyPost - Best Ultimate Post Block, Post Grid, Layouts, Carousel, Slider For Gutenberg & Elementor scored84%from 54 tests.

About plugin

  • Plugin page: post-block
  • Plugin version: 5.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Jan 20, 2022
  • Latest release: Jun 19, 2023
  • Number of updates: 72
  • Update frequency: every 7.2 days
  • Top authors: frohadpro (84.72%)wpqode (16.67%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active /5,876 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼5.52ms] Passed 4 tests

Analyzing server-side resources used by FancyPost - Best Ultimate Post Block, Post Grid, Layouts, Carousel, Slider For Gutenberg & Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1746.67 ▲4.85
Dashboard /wp-admin3.47 ▲0.1646.94 ▼4.36
Posts /wp-admin/edit.php3.58 ▲0.2246.18 ▼5.04
Add New Post /wp-admin/post-new.php6.07 ▲0.1886.00 ▼10.99
Media Library /wp-admin/upload.php3.39 ▲0.1637.66 ▼1.67
Getting Started /wp-admin/admin.php?page=fancypost-init3.3634.95
Settings /wp-admin/admin.php?page=fancypost_settings3.3641.90

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
frhd-pb-plugin-settings
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for FancyPost - Best Ultimate Post Block, Post Grid, Layouts, Carousel, Slider For Gutenberg & Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲19313.52 ▼1.0511.01 ▲9.1843.78 ▲4.25
Dashboard /wp-admin2,247 ▲705.61 ▼0.0782.99 ▼10.1838.16 ▼2.60
Posts /wp-admin/edit.php2,150 ▲502.04 ▲0.0936.58 ▼2.2932.82 ▼5.10
Add New Post /wp-admin/post-new.php6,234 ▲4,70818.96 ▼4.04910.95 ▲263.1566.15 ▲16.53
Media Library /wp-admin/upload.php1,449 ▲524.18 ▼0.0297.07 ▼6.7243.52 ▼1.96
Getting Started /wp-admin/admin.php?page=fancypost-init1,7469.17327.12528.55
Settings /wp-admin/admin.php?page=fancypost_settings1,0412.0425.2947.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • frhd-pb-plugin-settings
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/post-block/src/block-post-cat/index.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/post-block/src/block-post-slider/index.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/post-block/src/block-post-trisec/index.php:6

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

post-block/post-block.php Passed 13 tests

"FancyPost - Best Ultimate Post Block, Post Grid, Layouts, Carousel, Slider For Gutenberg & Elementor" version 5.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
115 characters long description:
A beautiful post layouts block to showcase your posts in grid and list layout with multiple templates availability.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,650 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
CSS16103551,919
PHP173242581,576
JavaScript5332379
JSON40076

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/img/wp-youtube-128.png2.26KB1.46KB▼ 35.51%
src/img/faq-schema-128.png4.65KB3.30KB▼ 29.05%
src/img/icon-128x128.png6.71KB4.24KB▼ 36.84%
src/img/editorial-rating-128.png4.51KB3.12KB▼ 30.90%