68% red-eyes-froggy-buttons

Code Review | Red Eyes Froggy Buttons

WordPress plugin Red Eyes Froggy Buttons scored68%from 54 tests.

About plugin

  • Plugin page: red-eyes-froggy-b...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Feb 28, 2023
  • Latest release: Dec 2, 2023
  • Number of updates: 61
  • Update frequency: every 4.5 days
  • Top authors: codingfix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /633 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲5.44MB] [CPU: ▲26.72ms] 75% from 4 tests

Server-side resources used by Red Eyes Froggy Buttons
It is recommended to improve the following
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.44MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.25 ▲5.7964.65 ▲23.59
Dashboard /wp-admin9.27 ▲5.9772.04 ▲27.34
Posts /wp-admin/edit.php9.27 ▲5.9176.09 ▲29.58
Add New Post /wp-admin/post-new.php9.98 ▲4.09116.25 ▲26.37
Media Library /wp-admin/upload.php9.27 ▲6.0467.49 ▲32.26
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.2759.75

Server storage [IO: ▲4.41MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 251 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
fs_accounts
widget_recent-comments
db_upgraded
theysaidso_admin_options
fs_active_plugins
fs_debug_mode
refbuttons_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Red Eyes Froggy Buttons: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8614.22 ▼0.061.83 ▲0.1228.59 ▼14.45
Dashboard /wp-admin2,231 ▲515.49 ▼0.1495.86 ▲1.5144.97 ▲4.56
Posts /wp-admin/edit.php2,131 ▲312.01 ▲0.0436.37 ▼3.9937.30 ▼1.67
Add New Post /wp-admin/post-new.php1,544 ▲1823.10 ▲0.18677.29 ▲104.7548.44 ▼1.85
Media Library /wp-admin/upload.php1,433 ▲304.22 ▲0.0695.35 ▼6.2945.24 ▲2.26
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,0881.6626.2829.20

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
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/red-eyes-froggy-buttons/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • fs_active_plugins
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • fs_debug_mode
    • widget_recent-posts
    • fs_accounts

Smoke tests 50% 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)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-premium-effetcs.php
    • > /wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-free-effects.php
    • > /wp-content/plugins/red-eyes-froggy-buttons/public/partials/red-eyes-froggy-buttons-public-display.php
    • > /wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-special-effects.php
  • 60× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-free-effects.php on line 11
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-premium-effetcs.php on line 38
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-special-effects.php on line 34
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-special-effects.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/red-eyes-froggy-buttons/admin/partials/red-eyes-froggy-buttons-admin-effects-display.php:17
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-premium-effetcs.php on line 58
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-special-effects.php on line 59
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-special-effects.php on line 69
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-premium-effetcs.php on line 18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/red-eyes-froggy-buttons/admin/partials/fx-special-effects.php on line 59

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 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
3 plugin tags: hover effects, buttons, css3

red-eyes-froggy-buttons/red-eyes-froggy-buttons.php Passed 13 tests

The primary PHP file in "Red Eyes Froggy Buttons" version 1.2.8 is used by WordPress to initiate all plugin functionality
80 characters long description:
Apply stunning customized hover effects to all your WordPress links and buttons.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected43,826 lines of code in 192 files:
LanguageFilesBlank linesComment linesLines of code
PHP1358,29917,97335,178
CSS449372585,545
JavaScript134424843,103

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity79.19
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes58
▷ Abstract classes23.45%
▷ Concrete classes5696.55%
▷ Final classes00.00%
Methods1,316
▷ Static methods20115.27%
▷ Public methods91169.22%
▷ Protected methods171.29%
▷ Private methods38829.48%
Functions105
▷ Named functions105100.00%
▷ Anonymous functions00.00%
Constants153
▷ Global constants10669.28%
▷ Class constants4730.72%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.24MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner2-772x250.png67.14KB20.71KB▼ 69.15%
assets/icon-128x128.png16.32KB5.81KB▼ 64.42%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
admin/images/logo-plugin.png15.62KB7.16KB▼ 54.15%
assets/icon-256x256.png39.77KB13.02KB▼ 67.26%