62% flipbook-catalog-with-woocommerce-link

Code Review | Flipbook Catalog with Woocommerce

WordPress plugin Flipbook Catalog with Woocommerce scored62%from 54 tests.

About plugin

  • Plugin page: flipbook-catalog-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 25, 2013
  • Latest release: Jul 25, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: xlibkind (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,633 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼1.71MB] [CPU: ▼53.01ms] Passed 4 tests

Analyzing server-side resources used by Flipbook Catalog with Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.196.47 ▼34.22
Dashboard /wp-admin2.29 ▼1.019.03 ▼49.76
Posts /wp-admin/edit.php2.29 ▼1.069.91 ▼38.68
Add New Post /wp-admin/post-new.php2.29 ▼3.596.96 ▼89.38
Media Library /wp-admin/upload.php2.29 ▼0.949.02 ▼28.78
Categories /wp-admin/edit-tags.php?taxonomy=genre&post_type=catalog2.298.95
Catalog /wp-admin/edit.php?post_type=catalog2.2911.82
Tags /wp-admin/edit-tags.php?taxonomy=writer&post_type=catalog2.298.11
Catalog settings /wp-admin/edit.php?post_type=catalog&page=flipbook-catalog-with-woocommerce-link/catalog.php2.2910.69
Add New /wp-admin/post-new.php?post_type=catalog2.299.95

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
recovery_mode_email_last_sent
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flipbook Catalog with Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,103 ▲34215.26 ▲0.524.98 ▲3.1548.12 ▲2.66
Dashboard /wp-admin2,420 ▲2236.27 ▲0.42133.32 ▲22.2941.09 ▲2.47
Posts /wp-admin/edit.php2,333 ▲2333.35 ▲1.3567.73 ▲29.0430.62 ▼7.02
Add New Post /wp-admin/post-new.php1,575 ▲2722.82 ▼0.17606.88 ▼6.4533.17 ▼46.35
Media Library /wp-admin/upload.php1,465 ▲654.31 ▲0.0792.56 ▼24.3446.62 ▼2.37
Categories /wp-admin/edit-tags.php?taxonomy=genre&post_type=catalog1,5423.2357.2531.33
Catalog /wp-admin/edit.php?post_type=catalog1,3113.3152.1831.30
Tags /wp-admin/edit-tags.php?taxonomy=writer&post_type=catalog1,5143.2244.9627.14
Catalog settings /wp-admin/edit.php?post_type=catalog&page=flipbook-catalog-with-woocommerce-link/catalog.php7281.537.6922.68
Add New /wp-admin/post-new.php?post_type=catalog1,4631.537.7932.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=catalog
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=catalog
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
    • > GET request to /wp-admin/edit.php?post_type=catalog&page=flipbook-catalog-with-woocommerce-link/catalog.php
    • > Warning in wp-content/plugins/flipbook-catalog-with-woocommerce-link/catalog.php+532
    require_once(wp-content/plugins/wp_catalog/templates/admin-catalog-settings.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/edit.php?post_type=catalog&page=flipbook-catalog-with-woocommerce-link/catalog.php
    • > Compile error in wp-content/plugins/flipbook-catalog-with-woocommerce-link/catalog.php+532
    require_once(): Failed opening required 'wp-content/plugins/wp_catalog/templates/admin-catalog-settings.php' (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/post-new.php?post_type=catalog
    • > Notice in wp-content/plugins/flipbook-catalog-with-woocommerce-link/catalog.php+234
    Undefined index: numbpage
    • > GET request to /wp-admin/post-new.php?post_type=catalog
    • > Warning in wp-content/plugins/flipbook-catalog-with-woocommerce-link/catalog.php+235
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/post-new.php?post_type=catalog
    • > Warning in wp-content/plugins/flipbook-catalog-with-woocommerce-link/catalog.php+230
    require_once(wp-content/plugins/wp_catalog/templates/admin-catalog.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/post-new.php?post_type=catalog
    • > Compile error in wp-content/plugins/flipbook-catalog-with-woocommerce-link/catalog.php+230
    require_once(): Failed opening required 'wp-content/plugins/wp_catalog/templates/admin-catalog.php' (include_path='.:/usr/share/php')

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/flipbook-catalog-with-woocommerce-link/templates/admin-catalog.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/flipbook-catalog-with-woocommerce-link/templates/catalog-list.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/flipbook-catalog-with-woocommerce-link/templates/admin-catalog-settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flipbook-catalog-with-woocommerce-link/catalog.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/flipbook-catalog-with-woocommerce-link/templates/single-catalog.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/flipbook-catalog-with-woocommerce-link/templates/wishlist.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/flipbook-catalog-with-woocommerce-link/templates/catalog-shortcode.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=catalog
    • > Network (severe)
    wp-content/plugins/wp_catalog/css/admin_catalogue.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=catalog
    • > Network (severe)
    wp-content/plugins/wp_catalog/css/jquery.crayonbox.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=catalog
    • > Network (severe)
    wp-content/plugins/wp_catalog/css/fontselector.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=catalog
    • > Network (severe)
    wp-content/plugins/wp_catalog/css/colorpicker.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=writer&post_type=catalog
    • > Network (severe)
    wp-content/plugins/wp_catalog/js/admin.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=writer&post_type=catalog
    • > Network (severe)
    wp-content/plugins/wp_catalog/js/jquery.fontselector.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=writer&post_type=catalog
    • > Network (severe)
    wp-content/plugins/wp_catalog/js/colorpicker.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("www.pluginjs.com")
  • Screenshots: Add an image for screenshot #1 (http://strikingtest.appsolutedev.com/catalog/4887/)
Please take inspiration from this readme.txt

flipbook-catalog-with-woocommerce-link/catalog.php 85% from 13 tests

The main PHP script in "Flipbook Catalog with Woocommerce" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 212 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flipbook-catalog-with-woocommerce-link.php" instead of "catalog.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected7,746 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP7186504,072
JavaScript4232943,237
CSS5191437

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions34
▷ Named functions34100.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
31 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/select.png0.49KB0.33KB▼ 33.40%
images/colorpicker_hsb_b.png0.95KB0.76KB▼ 19.48%
images/settings.png2.15KB1.44KB▼ 33.05%
images/colorpicker_hex.png0.52KB0.42KB▼ 19.92%
images/book-effect-right.png1.41KB0.37KB▼ 73.51%