77% flipbox-builder

Code Review | Flipbox Builder

WordPress plugin Flipbox Builder scored77%from 54 tests.

About plugin

  • Plugin page: flipbox-builder
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2021
  • Latest release: Apr 21, 2023
  • Number of updates: 9
  • Update frequency: every 87.1 days
  • Top authors: wptexture (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /28,802 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.18ms] Passed 4 tests

Server-side resources used by Flipbox Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.38 ▼1.80
Dashboard /wp-admin3.40 ▲0.1047.97 ▼4.80
Posts /wp-admin/edit.php3.46 ▲0.1050.45 ▼1.85
Add New Post /wp-admin/post-new.php6.00 ▲0.1192.46 ▼16.28
Media Library /wp-admin/upload.php3.32 ▲0.1039.96 ▲4.84
Add New Flipbox /wp-admin/post-new.php?post_type=fb3.5853.22
All Flipbox /wp-admin/edit.php?post_type=fb3.3739.93

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 139 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
flipbox_builder_Flipbox_default_Settings
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics 75% from 4 tests

Flipbox Builder: an overview of browser usage
You may want to improve the following
  • Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 27,768 on /wp-admin/post-new.php?post_type=fb)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,974 ▲22814.75 ▲0.164.91 ▲3.2241.21 ▲0.15
Dashboard /wp-admin2,285 ▲1036.39 ▲1.54128.44 ▲23.3743.90 ▼5.58
Posts /wp-admin/edit.php2,184 ▲923.02 ▲1.0049.85 ▲10.2835.81 ▲2.65
Add New Post /wp-admin/post-new.php1,596 ▲6324.30 ▲0.89690.94 ▼1.9435.59 ▼24.52
Media Library /wp-admin/upload.php1,470 ▲795.51 ▲1.28114.20 ▲12.3644.95 ▼5.34
Add New Flipbox /wp-admin/post-new.php?post_type=fb27,7685.92384.15107.85
All Flipbox /wp-admin/edit.php?post_type=fb1,1622.9941.6231.57

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • flipbox_builder_Flipbox_default_Settings

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/flipbox-builder/admin/design.php
  • 27× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/flipbox-builder/template/design-3.php:21
    • > PHP Warning
      Use of undefined constant FLIPBOXBUILDER_URL - assumed 'FLIPBOXBUILDER_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/flipbox-builder/template/design-1.php on line 2
    • > PHP Warning
      Use of undefined constant FLIPBOXBUILDER_URL - assumed 'FLIPBOXBUILDER_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/flipbox-builder/template/design-8.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/flipbox-builder/template-front/design-2.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/flipbox-builder/template/design-1.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/flipbox-builder/template/design-8.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/flipbox-builder/template-front/design-5.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/flipbox-builder/template-front/design-1.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/flipbox-builder/template-front/design-10.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flipbox-builder/admin/reg_post.php:48

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in flipbox-builder/assets to your readme.txt
  • Donate link: Invalid url: "#"
Please take inspiration from this readme.txt

flipbox-builder/flipbox-builder.php 92% from 13 tests

The main file in "Flipbox Builder" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected32,745 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43,0902,11917,059
CSS272,2191058,323
PHP29296534,692
SVG1002,671

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 1.58MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
template/img/product-cap.png109.45KB34.08KB▼ 68.86%
template-front/img/product-glass-2.png43.11KB13.78KB▼ 68.04%
template/img/cover-pic-1.png554.29KB599.33KB0.00%
template-front/img/product-cap.png109.45KB34.08KB▼ 68.86%
template-front/img/cover-pic-1.png554.29KB599.33KB0.00%