90% flipbox

Code Review | Flipbox

WordPress plugin Flipbox scored 90% from 54 tests.

About plugin

  • Plugin page: flipbox
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Jul 23, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 20
  • Update frequency: every 49.0 days
  • Top authors: wpdevteam (50%)alam789 (30%)re_enter_rupok (20%)Asif2BD (15%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active / 16,737 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.39ms] Passed 4 tests

An overview of server-side resources used by Flipbox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0651.75 ▲15.02
Dashboard /wp-admin3.33 ▲0.0246.64 ▼0.56
Posts /wp-admin/edit.php3.45 ▲0.0948.01 ▲4.75
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.80 ▼11.67
Media Library /wp-admin/upload.php3.25 ▲0.0243.73 ▲9.03

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flipbox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲613.56 ▼0.892.23 ▲0.7047.11 ▲4.21
Dashboard /wp-admin2,206 ▼04.82 ▼0.01117.67 ▲13.3149.45 ▲12.16
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0445.54 ▲2.3436.65 ▲2.85
Add New Post /wp-admin/post-new.php1,658 ▲12425.60 ▲2.49706.66 ▲12.8036.72 ▼24.00
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.10117.89 ▲8.0852.27 ▲7.09

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: block, gutenberg, flipbox, blocks, flip box...

flipbox/flipbox.php Passed 13 tests

The primary PHP file in "Flipbox" version 1.2.5 is used by WordPress to initiate all plugin functionality
82 characters long description:
Deliver your content beautifully to grab attention with an animated Flipbox block.

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
Success! There were no dangerous files found in this plugin20,107 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
SVG50012,231
CSS61,502467,099
PHP10103164698
JavaScript511669
JSON10010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity32.20
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods33
▷ Static methods1236.36%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin