78% epic-tap-widgets

Code Review | Epic Tap Widgets

WordPress plugin Epic Tap Widgets scored 78% from 54 tests.

About plugin

  • Plugin page: epic-tap-widgets
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.3
  • WordPress version: 5.8.1
  • First release: Nov 19, 2020
  • Latest release: May 4, 2021
  • Number of updates: 14
  • Update frequency: every 11.9 days
  • Top authors: mrbrazzi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 272 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.56MB] [CPU: ▼145.36ms] Passed 4 tests

Server-side resources used by Epic Tap Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.44 ▲0.7248.12 ▲14.21
Dashboard /wp-admin3.65 ▲0.6050.51 ▲4.82
Posts /wp-admin/edit.php3.70 ▲0.5955.41 ▲5.25
Add New Post /wp-admin/post-new.php5.95 ▲0.5199.67 ▼588.18
Media Library /wp-admin/upload.php3.53 ▲0.5339.12 ▼3.33

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 17 new options
New WordPress options
widget_widget_epic_concursos
widget_epic_twitter_timeline_widget
widget_widget_epic_bonos_sin_deposito
widget_widget_epic_search_form
widget_widget_epic_banner_promo
widget_widget_epic_articulos_relacionados
widget_widget_epic_tipsters_blog
widget_widget_epic_tags
widget_widget_epic_newsletter
widget_widget_epic_chat_slim
...

Browser metrics Passed 4 tests

Checking browser requirements for Epic Tap Widgets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,836 ▲26416.17 ▲0.6116.32 ▲6.4656.70 ▼1.24
Dashboard /wp-admin2,969 ▲355.92 ▼0.02153.49 ▼7.79118.96 ▼2.91
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0073.80 ▲4.3586.27 ▼17.13
Add New Post /wp-admin/post-new.php1,683 ▲10218.79 ▼1.78404.73 ▼14.87120.96 ▲0.71
Media Library /wp-admin/upload.php1,807 ▼05.05 ▲0.02160.01 ▼19.44126.75 ▼5.85

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
  • This plugin did not uninstall successfully, leaving 17 options in the database
    • widget_epic_fb_like_box_widget
    • widget_widget_epic_search_form
    • widget_widget_epic_tipsters_blog
    • widget_widget_epic_concursos
    • widget_widget_epic_contact_us
    • widget_widget_epic_random_news
    • widget_widget_epic_casas_apuestas
    • widget_widget_epic_tags
    • widget_widget_epic_chat_slim
    • widget_widget_epic_newsletter
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/epic-tap-widgets/admin/partials/epic-tap-widgets-admin-display.php
    • > /wp-content/plugins/epic-tap-widgets/public/partials/epic-tap-widgets-public-display.php
  • 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/epic-tap-widgets/includes/widgets/widget-enlaces.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/epic-tap-widgets/includes/widgets/widget-promociones-destacadas.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/epic-tap-widgets/includes/widgets/widget-recent-post.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/epic-tap-widgets/includes/widgets/widget-tipsters-blog.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/epic-tap-widgets/includes/widgets/widget-banner-promo.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/epic-tap-widgets/includes/widgets/widget-random-news.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/epic-tap-widgets/includes/widgets/widget-search-form.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/epic-tap-widgets/includes/widgets/widget-twitter-timeline.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/epic-tap-widgets/includes/widgets/widget-tags-cloud.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/epic-tap-widgets/includes/widgets/widget-casas-apuestas.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

epic-tap-widgets/epic-tap-widgets.php Passed 13 tests

The main PHP script in "Epic Tap Widgets" version 1.2.8 is automatically included on every request by WordPress
51 characters long description:
Widgets collection for TodoApuestas's blog network.

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
Good job! No executable or dangerous file extensions detected2,106 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP323131,1152,013
CSS3192087
JavaScript24546

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods107
▷ Static methods21.87%
▷ Public methods9891.59%
▷ Protected methods00.00%
▷ Private methods98.41%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/css/img/bg-last-news.png0.93KB0.09KB▼ 90.58%