84% wavy-divider

Code Review | Wavy Divider

WordPress plugin Wavy Divider scored84%from 54 tests.

About plugin

  • Plugin page: wavy-divider
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Feb 2, 2022
  • Latest release: Nov 18, 2023
  • Number of updates: 25
  • Update frequency: every 26.2 days
  • Top authors: kbat82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /6,159 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: ▼1.75ms] Passed 4 tests

An overview of server-side resources used by Wavy Divider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.97 ▼0.10
Dashboard /wp-admin3.35 ▲0.0448.63 ▲0.90
Posts /wp-admin/edit.php3.40 ▲0.0447.32 ▼0.95
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.22 ▼6.84
Media Library /wp-admin/upload.php3.27 ▲0.0441.65 ▲4.56

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Wavy Divider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3114.17 ▲0.001.68 ▼0.1343.91 ▼1.06
Dashboard /wp-admin2,195 ▲185.60 ▼0.0582.79 ▼20.1138.62 ▼4.00
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0639.03 ▼4.2135.25 ▼2.70
Add New Post /wp-admin/post-new.php1,680 ▲15423.71 ▲0.08599.96 ▼95.1857.70 ▲3.61
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.0499.85 ▼11.7339.46 ▼8.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wavy-divider/wavy-divider.php:14

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #2, #4 in wavy-divider/assets to your readme.txt
Please take inspiration from this readme.txt

wavy-divider/wavy-divider.php Passed 13 tests

"Wavy Divider" version 1.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
102 characters long description:
A creative, fun, lightweight wavy svg divider block to energize your website with character and pizazz

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin863 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7256633
JSON200109
PHP361249
Markdown113028
HTML662426
Sass10017
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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 functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin