93% ipages-flipbook

Code Review | iPages Flipbook For WordPress

WordPress plugin iPages Flipbook For WordPress scored 93% from 54 tests.

About plugin

  • Plugin page: ipages-flipbook
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Aug 23, 2018
  • Latest release: Feb 11, 2022
  • Number of updates: 74
  • Update frequency: every 17.1 days
  • Top authors: avirtum (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active / 42,368 total downloads

Benchmarks

Plugin footprint Passed 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.20MB] [CPU: ▼293.24ms] Passed 4 tests

Server-side resources used by iPages Flipbook For WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.2858.10 ▲3.93
Dashboard /wp-admin3.64 ▲0.2335.67 ▲2.25
Posts /wp-admin/edit.php3.87 ▲0.2339.20 ▲1.73
Add New Post /wp-admin/post-new.php7.11 ▲0.13105.23 ▼1,177.66
Media Library /wp-admin/upload.php3.52 ▲0.2224.61 ▲0.73
Settings /wp-admin/admin.php?page=ipages_flipbook_settings3.5126.43
All Books /wp-admin/admin.php?page=ipages_flipbook3.7126.57
Add New /wp-admin/admin.php?page=ipages_flipbook_item3.9229.95

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 404 new files
Database: 1 new table, no new options
New tables
wp_ipages_flipbook

Browser metrics Passed 4 tests

A check of browser resources used by iPages Flipbook For WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲4816.18 ▲0.476.18 ▲0.582.13 ▼0.56
Dashboard /wp-admin2,928 ▲676.09 ▼0.15119.38 ▼13.75157.59 ▼5.27
Posts /wp-admin/edit.php2,731 ▲373.24 ▼0.0063.30 ▼3.52138.38 ▼3.98
Add New Post /wp-admin/post-new.php1,694 ▲5515.76 ▼4.76413.56 ▼25.70156.75 ▲4.27
Media Library /wp-admin/upload.php1,736 ▲415.55 ▲0.03145.40 ▲3.05184.58 ▲0.91
Settings /wp-admin/admin.php?page=ipages_flipbook_settings1,9193.1875.59171.12
All Books /wp-admin/admin.php?page=ipages_flipbook1,3962.7057.49143.67
Add New /wp-admin/admin.php?page=ipages_flipbook_item5,3697.49154.04228.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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 everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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=ipages_flipbook_item
    • > Javascript (warning) in unknown
    /wp-content/plugins/ipages-flipbook/assets/js/lib/ipages/pdf.min.js?ver=1.4.4 0 The provided value 'moz-chunked-arraybuffer' is not a valid enum value of type XMLHttpRequestResponseType.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: pdf viewer, responsive design, flipbook from images, book with markers

ipages-flipbook/ipages.php 77% from 13 tests

The main file in "iPages Flipbook For WordPress" v. 1.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ipages-flipbook.php" instead of "ipages.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 293 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
Good job! No executable or dangerous file extensions detected5,952 lines of code in 393 files:
LanguageFilesBlank linesComment linesLines of code
PHP154682212,819
SVG37002,779
JavaScript334110347
CSS70167

PHP code Passed 2 tests

An short overview of 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.25
Average class complexity68.00
▷ Minimum class complexity3.00
▷ Maximum class complexity173.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods68
▷ Static methods00.00%
▷ Public methods6798.53%
▷ Protected methods00.00%
▷ Private methods11.47%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected