84% flippingbook

Code Review | FlippingBook

WordPress plugin FlippingBook scored84%from 54 tests.

About plugin

  • Plugin page: flippingbook
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.9.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2016
  • Latest release: Aug 29, 2022
  • Number of updates: 50
  • Update frequency: every 48.1 days
  • Top authors: Sergey Chernov (96%)eugenelin (6%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /48,316 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.29ms] Passed 4 tests

An overview of server-side resources used by FlippingBook
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.66 ▼1.94
Dashboard /wp-admin3.40 ▲0.0548.48 ▼11.88
Posts /wp-admin/edit.php3.52 ▲0.1651.04 ▲2.13
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.14 ▼13.47
Media Library /wp-admin/upload.php3.33 ▲0.0938.29 ▲4.44

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by FlippingBook
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.17 ▼0.181.73 ▲0.0644.23 ▲4.82
Dashboard /wp-admin2,195 ▲185.52 ▼0.1485.58 ▼1.8778.08 ▲33.71
Posts /wp-admin/edit.php2,118 ▲181.99 ▼0.0539.72 ▲3.5932.95 ▼3.32
Add New Post /wp-admin/post-new.php1,554 ▲2622.97 ▼0.29655.27 ▲73.92165.65 ▲119.35
Media Library /wp-admin/upload.php1,412 ▲154.21 ▲0.0594.99 ▼5.7673.69 ▲29.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/flippingbook/flippingbook.php:47

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

flippingbook/flippingbook.php Passed 13 tests

The main file in "FlippingBook" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
116 characters long description:
FlippingBook plugin allows you to easily embed flipbooks made with FlippingBook into your Wordpress posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected442 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings