74% interactive-3d-flipbook-powered-physics-engine

Code Review | 3D FlipBook - PDF Flipbook WordPress

WordPress plugin 3D FlipBook - PDF Flipbook WordPress scored 74% from 54 tests.

About plugin

  • Plugin page: interactive-3d-fl...
  • 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 5, 2017
  • Latest release: Aug 10, 2023
  • Number of updates: 269
  • Update frequency: every 8.8 days
  • Top authors: iberezansky (100%)

Code review

54 tests

User reviews

130 reviews

Install metrics

70,000+ active / 1,437,049 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.57MB] [CPU: ▲0.90ms] Passed 4 tests

Analyzing server-side resources used by 3D FlipBook - PDF Flipbook WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5940.28 ▲0.09
Dashboard /wp-admin3.88 ▲0.5850.30 ▲3.35
Posts /wp-admin/edit.php3.94 ▲0.5854.54 ▲5.84
Add New Post /wp-admin/post-new.php6.49 ▲0.6189.56 ▼5.70
Media Library /wp-admin/upload.php3.74 ▲0.5242.91 ▲9.08
Add New /wp-admin/post-new.php?post_type=3d-flip-book3.9654.92
Categories /wp-admin/edit-tags.php?taxonomy=3d-flip-book-category&post_type=3d-flip-book3.7437.50
All Books /wp-admin/edit.php?post_type=3d-flip-book3.7938.08
Shortcode Generator /wp-admin/edit.php?post_type=3d-flip-book&page=3d-flip-book-shortcode-generator3.7936.76

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 257 new files
Database: 1 new table, 7 new options
New tables
wp_fb3d_pages
New WordPress options
widget_theysaidso_widget
wp_fb3d_pages_version
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for 3D FlipBook - PDF Flipbook WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲12813.25 ▼1.051.66 ▼0.3640.26 ▼10.68
Dashboard /wp-admin2,238 ▲505.82 ▼0.0499.76 ▼2.4738.58 ▲0.20
Posts /wp-admin/edit.php2,121 ▲322.07 ▲0.0638.61 ▼0.7535.15 ▼2.53
Add New Post /wp-admin/post-new.php1,557 ▲3721.32 ▼1.91761.39 ▲91.5855.40 ▼5.71
Media Library /wp-admin/upload.php1,423 ▲354.20 ▲0.0194.17 ▼3.3239.95 ▼9.39
Add New /wp-admin/post-new.php?post_type=3d-flip-book2,5596.39148.7945.09
Categories /wp-admin/edit-tags.php?taxonomy=3d-flip-book-category&post_type=3d-flip-book1,2942.1327.9027.66
All Books /wp-admin/edit.php?post_type=3d-flip-book1,1072.0030.3929.81
Shortcode Generator /wp-admin/edit.php?post_type=3d-flip-book&page=3d-flip-book-shortcode-generator1,0473.0349.5930.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_fb3d_pages
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • wp_fb3d_pages_version
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | 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
  • 19× 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/interactive-3d-flipbook-powered-physics-engine/inc/taxonomy.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\add_action() in wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/inc/shortcode.php:143
    • > PHP Fatal error
      require_once(): Failed opening required 'INCedit-save.php' (include_path='.:/usr/share/php') in wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/inc/edit.php on line 7
    • > PHP Warning
      Use of undefined constant INC - assumed 'INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/inc/question.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\add_action() in wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/inc/dictionary.php:22
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/index.php on line 43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\register_activation_hook() in wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/inc/install.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\plugin_dir_path() in wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/index.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\add_action() in wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/inc/shortcode-generator.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iberezansky\\fb3d\\add_action() in wp-content/plugins/interactive-3d-flipbook-powered-physics-engine/inc/insert.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: pdf flipbook, pdf to flip book, pdf viewer, flipbook, flip book

interactive-3d-flipbook-powered-physics-engine/index.php 85% from 13 tests

Analyzing the main PHP file in "3D FlipBook - PDF Flipbook WordPress" version 1.15.2
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("interactive-3d-flipbook-powered-physics-engine.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin8,508 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
JavaScript1416821,961
CSS7176311,929
PHP20218261,832
HTML1140115

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in 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%
Functions103
▷ Named functions10198.06%
▷ Anonymous functions21.94%
Constants28
▷ Global constants28100.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
25 PNG files occupy 0.21MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/custom_rgb_r.png0.99KB0.74KB▼ 25.34%
assets/images/colorpicker_overlay.png10.11KB8.24KB▼ 18.50%
assets/images/custom_submit.png0.97KB0.99KB0.00%
assets/images/colorpicker_rgb_r.png1.04KB0.77KB▼ 26.17%
assets/images/select2.png0.51KB0.33KB▼ 34.94%