90% flip-block

Code Review | Flip Block - Create Flipbox Overlays and Hovers

WordPress plugin Flip Block - Create Flipbox Overlays and Hovers scored90%from 54 tests.

About plugin

  • Plugin page: flip-block
  • Plugin version: 0.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3
  • WordPress version: 6.3.1
  • First release: Jun 1, 2023
  • Latest release: Sep 20, 2023
  • Number of updates: 9
  • Update frequency: every 12.3 days
  • Top authors: taskotr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /224 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 successfully, without throwing any errors or notices

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

Server-side resources used by Flip Block - Create Flipbox Overlays and Hovers
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.04 ▼0.32
Dashboard /wp-admin3.32 ▼0.0245.05 ▼15.95
Posts /wp-admin/edit.php3.37 ▲0.0248.85 ▲6.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.65 ▼32.06
Media Library /wp-admin/upload.php3.24 ▲0.0236.28 ▲1.41

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Flip Block - Create Flipbox Overlays and Hovers
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.26 ▼1.124.84 ▲2.7938.78 ▼8.81
Dashboard /wp-admin2,209 ▲305.85 ▼0.01106.48 ▼4.7541.79 ▲2.63
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0839.28 ▼0.0436.24 ▲2.35
Add New Post /wp-admin/post-new.php6,360 ▲4,83127.96 ▲9.87872.82 ▲263.0039.30 ▼14.26
Media Library /wp-admin/upload.php1,379 ▼94.18 ▼0.0398.59 ▲1.5741.14 ▼0.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Preview of Flip Block.), #2 (Preview of block container.), #3 (Preview of block front side.), #4 (Preview of block back side.)
The official readme.txt might help

flip-block/flip-block.php Passed 13 tests

"Flip Block - Create Flipbox Overlays and Hovers" version 0.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
61 characters long description:
A simple block that allows to create a flip box in WordPress.

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
There were no executable files found in this plugin120 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON20076
PHP383438
CSS4004
JavaScript2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin