90% fancy-elementor-flipbox

Code Review | Fancy Elementor Flipbox

WordPress plugin Fancy Elementor Flipbox scored90%from 54 tests.

About plugin

  • Plugin page: fancy-elementor-f...
  • Plugin version: 2.4.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 9, 2018
  • Latest release: Feb 13, 2023
  • Number of updates: 39
  • Update frequency: every 43.7 days
  • Top authors: hosseinhashemi (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

5,000+ active /36,361 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.46ms] Passed 4 tests

Analyzing server-side resources used by Fancy Elementor Flipbox
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0248.99 ▲3.14
Dashboard /wp-admin3.33 ▲0.0251.97 ▼1.20
Posts /wp-admin/edit.php3.38 ▲0.0246.02 ▼1.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.13 ▼18.80
Media Library /wp-admin/upload.php3.25 ▲0.0236.95 ▼0.41

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fancy Elementor Flipbox
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲4113.17 ▼1.201.65 ▼0.3453.11 ▲12.56
Dashboard /wp-admin2,215 ▲246.04 ▲1.17136.77 ▲26.4440.31 ▼0.91
Posts /wp-admin/edit.php2,100 ▲112.02 ▼0.0537.12 ▼5.4138.93 ▼1.99
Add New Post /wp-admin/post-new.php1,545 ▲2623.39 ▲0.15631.14 ▼25.4966.71 ▲13.10
Media Library /wp-admin/upload.php1,397 ▲124.17 ▼0.05109.26 ▼4.5243.32 ▼2.20

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

fancy-elementor-flipbox/fancy-elementor-flipbox.php Passed 13 tests

The main PHP file in "Fancy Elementor Flipbox" ver. 2.4.2 adds more information about the plugin and also serves as the entry point for this plugin
117 characters long description:
This plugin adds an amazing and customizable flip box widget(with many options) to the Elementor page builder plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,052 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4169174664
CSS13155367
JavaScript18520
Markdown1101

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods650.00%
▷ Protected methods325.00%
▷ Private methods325.00%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/eff-icon-2.png4.58KB2.68KB▼ 41.42%
assets/images/eff-icon-1.png2.66KB1.92KB▼ 27.80%