66% create-flipbook-from-pdf

Code Review | Creates 3D Flipbook, PDF Flipbook in WordPress

WordPress plugin Creates 3D Flipbook, PDF Flipbook in WordPress scored66%from 54 tests.

About plugin

  • Plugin page: create-flipbook-f...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 1.1-6.2
  • WordPress version: 6.3.1
  • First release: Feb 13, 2023
  • Latest release: Apr 1, 2023
  • Number of updates: 8
  • Update frequency: every 48.4 days
  • Top authors: fliperrr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /464 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.57ms] Passed 4 tests

A check of server-side resources used by Creates 3D Flipbook, PDF Flipbook in WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.21 ▼2.35
Dashboard /wp-admin3.34 ▲0.0343.44 ▼5.41
Posts /wp-admin/edit.php3.38 ▲0.0346.56 ▲1.55
Add New Post /wp-admin/post-new.php5.93 ▲0.0580.60 ▼4.08
Media Library /wp-admin/upload.php3.26 ▲0.0337.65 ▲4.50
Fliperrr /wp-admin/admin.php?page=fliperrrlisting3.2729.35
Create /wp-admin/admin.php?page=fliperrrsetting3.2028.61

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 99 new files
Database: 1 new table, 6 new options
New tables
wp_flip_book_setting
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Creates 3D Flipbook, PDF Flipbook in WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14814.37 ▲0.111.82 ▼0.0538.23 ▼13.15
Dashboard /wp-admin2,267 ▲766.30 ▲1.42128.62 ▲12.1477.30 ▲34.91
Posts /wp-admin/edit.php2,150 ▲612.86 ▲0.8655.34 ▲18.4231.81 ▼2.49
Add New Post /wp-admin/post-new.php1,721 ▲20724.52 ▲6.88678.09 ▼118.7724.87 ▼34.40
Media Library /wp-admin/upload.php1,512 ▲1215.64 ▲1.44124.34 ▲28.7457.34 ▲14.33
Fliperrr /wp-admin/admin.php?page=fliperrrlisting1,0252.7742.6656.09
Create /wp-admin/admin.php?page=fliperrrsetting1,0112.6944.3149.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=fliperrrsetting
    • > Warning in wp-content/plugins/create-flipbook-from-pdf/source/header.php+3
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/create-flipbook-from-pdf/source/copyright.php
    • > /wp-content/plugins/create-flipbook-from-pdf/source/footer.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/create-flipbook-from-pdf/fliperrr.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/create-flipbook-from-pdf/source/nav_step.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'fliperrr' not found in wp-content/plugins/create-flipbook-from-pdf/source/flipbook_admin_setting.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/create-flipbook-from-pdf/source/nav.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/create-flipbook-from-pdf/source/header.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=fliperrrsetting
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=fliperrrsetting 265:40 Uncaught TypeError: Cannot read properties of null (reading 'value')
    • > GET request to /wp-admin/admin.php?page=fliperrrsetting
    • > Javascript (severe) in unknown
    /wp-content/plugins/create-flipbook-from-pdf/webroot/js/flip_dropzone.js?v=1785834620&ver=6.3.1 1065:12 Uncaught Error: No URL provided.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === create-flipbook-from-pdf === )
The official readme.txt is a good inspiration

create-flipbook-from-pdf/fliperrr.php 92% from 13 tests

"Creates 3D Flipbook, PDF Flipbook in WordPress" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("create-flipbook-from-pdf.php" instead of "fliperrr.php")

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
There were no executable files found in this plugin33,266 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript74,6363,95820,775
CSS111673507,994
SVG2002,959
PHP71371391,538

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity76.00
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity10.00
▷ Minimum method complexity1.00
▷ Maximum method complexity84.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
webroot/images/flip_ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
webroot/images/flip_logo.png17.60KB13.43KB▼ 23.70%
webroot/images/flip_ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
webroot/images/flip_ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
webroot/images/flip_view.png0.58KB0.58KB▼ 1.01%