57% fl3r-feelbox

Code Review | FL3R FeelBox

WordPress plugin FL3R FeelBox scored 57% from 54 tests.

About plugin

  • Plugin page: fl3r-feelbox
  • Plugin version: 8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-5.1.1
  • WordPress version: 5.9.2
  • First release: Aug 19, 2014
  • Latest release: Apr 27, 2019
  • Number of updates: 109
  • Update frequency: every 15.7 days
  • Top authors: armandofiore (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active / 16,203 total downloads

Benchmarks

Plugin footprint 48% 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.98MB] [CPU: ▼332.94ms] Passed 4 tests

Server-side resources used by FL3R FeelBox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.2858.64 ▲9.31
Dashboard /wp-admin3.35 ▼0.0621.28 ▼12.23
Posts /wp-admin/edit.php3.35 ▼0.2918.43 ▼18.20
Add New Post /wp-admin/post-new.php3.35 ▼3.6220.70 ▼1,293.35
Media Library /wp-admin/upload.php3.35 ▲0.0517.54 ▼7.99
FL3R FeelBox /wp-admin/options-general.php?page=feelbox3.3520.34
FL3R FeelBox /wp-admin/index.php?page=feelbox3.3519.08

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 87 new files
Database: 2 new tables, 3 new options
New tables
wp_lydl_poststimestamp
wp_lydl_posts
New WordPress options
feelbox_wp_options
widget_feelbox_widget
lydl_db_version

Browser metrics Passed 4 tests

A check of browser resources used by FL3R FeelBox
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,934 ▲18016.73 ▲1.049.16 ▲2.722.23 ▼0.91
Dashboard /wp-admin2,910 ▲496.24 ▲0.06118.85 ▼14.53156.05 ▼1.68
Posts /wp-admin/edit.php2,706 ▲153.24 ▲0.0268.73 ▲6.57138.60 ▼2.10
Add New Post /wp-admin/post-new.php1,675 ▼2316.60 ▼5.94425.49 ▼20.51206.25 ▲47.42
Media Library /wp-admin/upload.php1,713 ▲155.55 ▲0.00143.48 ▲5.15190.87 ▲7.50
FL3R FeelBox /wp-admin/options-general.php?page=feelbox1,7912.7456.81134.44
FL3R FeelBox /wp-admin/index.php?page=feelbox1,3922.7654.97125.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5768
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie tables detected upon uninstall: 2 tables
    • wp_lydl_poststimestamp
    • wp_lydl_posts
  • The uninstall procedure has failed, leaving 3 options in the database
    • feelbox_wp_options
    • widget_feelbox_widget
    • lydl_db_version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/index.php?page=feelbox
    • > User notice in wp-includes/functions.php+5768
    add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/options-general.php?page=feelbox
    • > Warning in wp-content/plugins/fl3r-feelbox/feelbox-admin.php+555
    file_get_contents(wp-content/uploads/feelbox-custom.css): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=feelbox
    • > Notice in wp-content/plugins/fl3r-feelbox/feelbox-admin.php+564
    Undefined index: bypasscss

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 items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/fl3r-feelbox/feelbox-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/fl3r-feelbox/feelbox.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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: These screenshots require images: #1 (FL3R FeelBox in a post.), #2 (Share options after voting.), #3 (Example stats.), #4 (Settings.), #5 (Credits.), #6 (Widget options.), #7 (Classic style.), #8 (Emoji One style.), #9 (Korosensei style.), #10 (Minions style.), #11 (Manga style.)
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt might help

fl3r-feelbox/feelbox.php 92% from 13 tests

This is the main PHP file of "FL3R FeelBox" version 8.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fl3r-feelbox.php" instead of "feelbox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,292 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP2179641,192
PO File2170178518
CSS95519347
JavaScript362133220
SVG10015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions2295.65%
▷ Anonymous functions14.35%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
57 PNG files occupy 1.02MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png14.94KB5.86KB▼ 60.80%
images/donate-paypal-frontend.png0.85KB1.01KB0.00%
images/manga-2/angry.png16.47KB7.25KB▼ 55.98%
images/manga-2/happy.png13.99KB6.88KB▼ 50.81%
images/minions/afraid.png11.67KB4.23KB▼ 63.78%