90% flip-box-block

Code Review | Flip Box Block

WordPress plugin Flip Box Block scored90%from 54 tests.

About plugin

  • Plugin page: flip-box-block
  • Plugin version: 0.3.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.3-6.4
  • WordPress version: 6.3.1
  • First release: Feb 11, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 34
  • Update frequency: every 18.8 days
  • Top authors: shimotomoki (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /5,549 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Flip Box Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.33 ▼5.95
Dashboard /wp-admin3.34 ▼0.0147.03 ▼24.87
Posts /wp-admin/edit.php3.39 ▲0.0346.12 ▼2.91
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.75 ▼14.80
Media Library /wp-admin/upload.php3.26 ▲0.0336.20 ▲3.34

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Flip Box Block: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3114.24 ▼0.102.01 ▲0.0145.56 ▲3.49
Dashboard /wp-admin2,195 ▲245.62 ▼0.0093.23 ▼4.7539.55 ▼4.41
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0838.82 ▲2.3536.09 ▲4.37
Add New Post /wp-admin/post-new.php1,706 ▲18022.04 ▼1.78695.92 ▲38.3937.44 ▼20.28
Media Library /wp-admin/upload.php1,403 ▲64.24 ▲0.0496.86 ▼5.6943.89 ▲1.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: flipbox, gutenberg, block

flip-box-block/flipbox-block.php 92% from 13 tests

Analyzing the main PHP file in "Flip Box Block" version 0.3.0
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("flip-box-block.php" instead of "flipbox-block.php")

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
Everything looks great! No dangerous files found in this plugin126 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON30095
PHP421624
CSS4004
JavaScript3003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin