74% unreal-flipbook-addon-for-visual-composer

Code Review | PDF Flipbook, WPBakery Addon – Unreal FlipBook

WordPress plugin PDF Flipbook, WPBakery Addon – Unreal FlipBook scored74%from 54 tests.

About plugin

  • Plugin page: unreal-flipbook-a...
  • Plugin version: 1.15.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Mar 14, 2017
  • Latest release: Aug 10, 2023
  • Number of updates: 180
  • Update frequency: every 13.0 days
  • Top authors: iberezansky (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /65,904 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.45ms] Passed 4 tests

This is a short check of server-side resources used by PDF Flipbook, WPBakery Addon – Unreal FlipBook
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1240.57 ▼0.91
Dashboard /wp-admin3.40 ▲0.1048.42 ▼9.72
Posts /wp-admin/edit.php3.46 ▲0.1047.87 ▲3.08
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.57 ▼9.92
Media Library /wp-admin/upload.php3.33 ▲0.1034.73 ▲2.76
Shortcode Generator /wp-admin/edit.php?post_type=3d-flip-book&page=3d-flip-book-shortcode-generator3.3732.13
Add New /wp-admin/post-new.php?post_type=3d-flip-book3.4858.62
All Books /wp-admin/edit.php?post_type=3d-flip-book3.3738.30
Categories /wp-admin/edit-tags.php?taxonomy=3d-flip-book-category&post_type=3d-flip-book3.3235.49

Server storage [IO: ▲5.59MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 261 new files
Database: 1 new table, 7 new options
New tables
wp_fb3d_pages
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
wp_fb3d_pages_version
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for PDF Flipbook, WPBakery Addon – Unreal FlipBook
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲12313.25 ▼1.101.71 ▼0.1743.53 ▼0.95
Dashboard /wp-admin2,258 ▲705.83 ▲0.94103.56 ▼14.1844.04 ▼1.16
Posts /wp-admin/edit.php2,144 ▲552.03 ▼0.0237.52 ▲2.2736.32 ▲2.00
Add New Post /wp-admin/post-new.php1,586 ▲5218.12 ▼5.03599.38 ▼26.8148.67 ▼8.08
Media Library /wp-admin/upload.php1,440 ▲614.26 ▲0.0995.73 ▼6.4941.36 ▼4.02
Shortcode Generator /wp-admin/edit.php?post_type=3d-flip-book&page=3d-flip-book-shortcode-generator1,0642.9255.8533.15
Add New /wp-admin/post-new.php?post_type=3d-flip-book2,5796.32138.0242.96
All Books /wp-admin/edit.php?post_type=3d-flip-book1,1302.0130.7128.82
Categories /wp-admin/edit-tags.php?taxonomy=3d-flip-book-category&post_type=3d-flip-book1,3172.3127.9827.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_fb3d_pages
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • wp_fb3d_pages_version
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\add_action() in wp-content/plugins/unreal-flipbook-addon-for-visual-composer/inc/ajax-get.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\add_action() in wp-content/plugins/unreal-flipbook-addon-for-visual-composer/inc/edit-save.php:271
    • > PHP Warning
      require_once(INCquestions.php): failed to open stream: No such file or directory in wp-content/plugins/unreal-flipbook-addon-for-visual-composer/inc/question.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\plugin_dir_path() in wp-content/plugins/unreal-flipbook-addon-for-visual-composer/index.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\add_action() in wp-content/plugins/unreal-flipbook-addon-for-visual-composer/inc/shortcode.php:143
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\add_action() in wp-content/plugins/unreal-flipbook-addon-for-visual-composer/inc/post.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\add_action() in wp-content/plugins/unreal-flipbook-addon-for-visual-composer/inc/vc-integrate.php:5
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/unreal-flipbook-addon-for-visual-composer/index.php on line 43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\add_action() in wp-content/plugins/unreal-flipbook-addon-for-visual-composer/inc/dictionary.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\get_header() in wp-content/plugins/unreal-flipbook-addon-for-visual-composer/assets/templates/single-3d-flip-book.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: pdf flipbook, wpbakery extension, pdf viewer, flipbook, flip book

unreal-flipbook-addon-for-visual-composer/index.php 85% from 13 tests

This is the main PHP file of "PDF Flipbook, WPBakery Addon – Unreal FlipBook" version 1.15.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("unreal-flipbook-addon-for-visual-composer.php" instead of "index.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin8,887 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
JavaScript159822,144
PHP20220252,021
CSS8177311,936
HTML1140115

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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
Namespaces1
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%
Functions105
▷ Named functions10398.10%
▷ Anonymous functions21.90%
Constants28
▷ Global constants28100.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
27 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/select.png0.49KB0.33KB▼ 33.40%
assets/images/custom_hex.png0.55KB0.39KB▼ 28.11%
assets/images/colorpicker_overlay.png10.11KB8.24KB▼ 18.50%
assets/images/slider.png0.31KB1.51KB0.00%
assets/images/custom_rgb_g.png1.04KB0.80KB▼ 23.67%