68% elvez-tap-animation

Code Review | Elvez Tap Animation

WordPress plugin Elvez Tap Animation scored68%from 54 tests.

About plugin

  • Plugin page: elvez-tap-animation
  • Plugin version: 1.0.27
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Nov 17, 2020
  • Latest release: Feb 1, 2022
  • Number of updates: 11
  • Update frequency: every 40.1 days
  • Top authors: elvezcojp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,243 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.97ms] Passed 4 tests

Analyzing server-side resources used by Elvez Tap Animation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.32 ▼1.55
Dashboard /wp-admin3.37 ▲0.0748.15 ▼10.70
Posts /wp-admin/edit.php3.49 ▲0.1353.27 ▲1.29
Add New Post /wp-admin/post-new.php5.97 ▲0.0996.71 ▼8.64
Media Library /wp-admin/upload.php3.30 ▲0.0735.10 ▲1.00
Tap Animation /wp-admin/admin.php?page=elvez-tap-animation3.2630.60

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: 1 new table, 12 new options
New tables
wp_elv_tap_position
New WordPress options
widget_theysaidso_widget
can_compress_scripts
elvez_tap_animation_subscription_id
elvez_tap_animation_plugin_version
widget_recent-comments
theysaidso_admin_options
elvez_tap_animation_tap_animation
elvez_tap_animation_record_tap_position
db_upgraded
widget_recent-posts
...

Browser metrics Passed 4 tests

Checking browser requirements for Elvez Tap Animation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲21014.53 ▼0.0311.77 ▲10.1037.93 ▼7.40
Dashboard /wp-admin2,259 ▲535.26 ▲0.34108.42 ▲5.7942.38 ▼1.99
Posts /wp-admin/edit.php2,145 ▲452.39 ▲0.3739.61 ▲3.8733.83 ▼4.79
Add New Post /wp-admin/post-new.php6,268 ▲4,72022.01 ▼1.32871.40 ▲261.4235.78 ▼13.43
Media Library /wp-admin/upload.php1,441 ▲414.54 ▲0.22101.93 ▼1.1742.07 ▼1.32
Tap Animation /wp-admin/admin.php?page=elvez-tap-animation1,0342.5541.7129.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_elv_tap_position
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • elvez_tap_animation_subscription_id
    • widget_recent-posts
    • db_upgraded
    • elvez_tap_animation_base_color
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • elvez_tap_animation_plugin_version
    • elvez_tap_animation_record_tap_position
    • elvez_tap_animation_subscribe_email
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/elvez-tap-animation/admin/partials/elvez-tap-animation-admin-display.php
    • > /wp-content/plugins/elvez-tap-animation/public/partials/elvez-tap-animation-public-display.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=elvez-tap-animation
    • > Javascript (severe) in unknown
    /wp-content/plugins/elvez-tap-animation/admin/js/elvez-tap-animation-admin.js?ver=1.0.27 4:11 Uncaught ReferenceError: ElvPostMixin is not defined

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Settings)
Please take inspiration from this readme.txt

elvez-tap-animation/elvez-tap-animation.php 85% from 13 tests

The main PHP file in "Elvez Tap Animation" ver. 1.0.27 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Requires PHP: Required version does not match the one declared in readme.txt ("7.4" instead of "7.2")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,229 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP213941,5621,811
JavaScript1180150964
CSS33641268
PO File4106163186

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity12.07
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods137
▷ Static methods4633.58%
▷ Public methods13296.35%
▷ Protected methods00.00%
▷ Private methods53.65%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants40
▷ Global constants37.50%
▷ Class constants3792.50%
▷ Public constants37100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin