83% flowpaper-lite-pdf-flipbook

Code Review | flowpaper

WordPress plugin flowpaper scored83%from 54 tests.

About plugin

  • Plugin page: flowpaper-lite-pd...
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 23, 2016
  • Latest release: Sep 14, 2023
  • Number of updates: 99
  • Update frequency: every 26.0 days
  • Top authors: getflowpaper (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

20,000+ active /325,182 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by flowpaper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0843.98 ▲0.24
Dashboard /wp-admin3.39 ▲0.0855.87 ▲0.13
Posts /wp-admin/edit.php3.44 ▲0.0849.19 ▼3.37
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.56 ▼20.08
Media Library /wp-admin/upload.php3.31 ▲0.0839.93 ▲4.84

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for flowpaper
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲11013.81 ▼0.549.18 ▲7.1343.52 ▼3.53
Dashboard /wp-admin2,192 ▲215.55 ▼0.0688.00 ▼17.9741.96 ▼2.23
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0035.68 ▼4.6334.10 ▼2.18
Add New Post /wp-admin/post-new.php1,526 ▼223.56 ▲0.28643.97 ▼47.7757.80 ▼4.10
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0099.30 ▼9.7841.91 ▼4.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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)
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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/flowpaper-lite-pdf-flipbook/flowpaper.php:490

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (FlowPaper PDF flipbook)
You can look at the official readme.txt

flowpaper-lite-pdf-flipbook/flowpaper.php 85% from 13 tests

"flowpaper" version 2.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("flowpaper-lite-pdf-flipbook.php" instead of "flowpaper.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected398 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16945396
CSS1021
JavaScript1131

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.56
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
Namespaces0
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/flowpaper-logo.png2.15KB2.24KB0.00%