83% flip-cards-module-divi

Code Review | Flip Cards Module For Divi

WordPress plugin Flip Cards Module For Divi scored 83% from 54 tests.

About plugin

  • Plugin page: flip-cards-module...
  • Plugin version: 0.9.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: May 20, 2020
  • Latest release: Jun 3, 2023
  • Number of updates: 21
  • Update frequency: every 52.8 days
  • Top authors: themeythemes (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

4,000+ active / 15,953 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.63ms] Passed 4 tests

This is a short check of server-side resources used by Flip Cards Module For Divi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.16 ▼0.43
Dashboard /wp-admin3.31 ▲0.0145.80 ▼2.24
Posts /wp-admin/edit.php3.37 ▲0.0145.53 ▼4.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.80 ▼2.89
Media Library /wp-admin/upload.php3.24 ▲0.0138.58 ▲5.96

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
lwp_flip_cards_activation_time
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flip Cards Module For Divi
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.63 ▼0.651.68 ▲0.0141.17 ▲0.30
Dashboard /wp-admin2,209 ▲185.90 ▲0.86105.64 ▲3.0142.35 ▲0.67
Posts /wp-admin/edit.php2,089 ▼32.05 ▼0.0039.73 ▲1.1235.41 ▼1.00
Add New Post /wp-admin/post-new.php1,533 ▼023.09 ▲0.09697.02 ▲2.4259.10 ▲5.48
Media Library /wp-admin/upload.php1,385 ▼64.26 ▲0.1196.87 ▲1.9441.89 ▼1.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • lwp_flip_cards_activation_time
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% 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 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/flip-cards-module-divi/includes/DiviFlipbox.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/flip-cards-module-divi/includes/modules/DiviFlipboxModule/DiviFlipboxModule.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flip-cards-module-divi/divi-flipbox.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: You can look at the official readme.txt

flip-cards-module-divi/divi-flipbox.php 85% from 13 tests

"Flip Cards Module For Divi" version 0.9.4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("flip-cards-module-divi.php" instead of "divi-flipbox.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,427 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP411565970
Markdown12120453
CSS2002
JavaScript2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin