84% vibrate

Code Review | vibrate

WordPress plugin vibrate scored84%from 54 tests.

About plugin

  • Plugin page: vibrate
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2016
  • Latest release: Dec 2, 2022
  • Number of updates: 5
  • Update frequency: every 474.0 days
  • Top authors: pranavpathakjaora (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /600 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.01MB] [CPU: ▼2.92ms] Passed 4 tests

This is a short check of server-side resources used by vibrate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.69 ▲0.63
Dashboard /wp-admin3.32 ▲0.0243.25 ▼2.90
Posts /wp-admin/edit.php3.37 ▲0.0145.83 ▼1.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.55 ▼6.26
Media Library /wp-admin/upload.php3.24 ▲0.0133.93 ▼1.33
Vibrate /wp-admin/options-general.php?page=vibrate-setting-admin3.1829.48

Server storage [IO: ▲0.03MB] [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, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for vibrate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,008 ▲26213.64 ▼0.5911.53 ▲9.9344.39 ▲4.68
Dashboard /wp-admin2,213 ▲254.84 ▼1.0998.59 ▼2.2636.74 ▼5.10
Posts /wp-admin/edit.php2,090 ▲42.02 ▲0.0134.02 ▼2.9631.64 ▲1.75
Add New Post /wp-admin/post-new.php1,545 ▲1222.80 ▼0.39668.01 ▼14.0451.27 ▼1.21
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0096.37 ▼7.9443.05 ▼4.15
Vibrate /wp-admin/options-general.php?page=vibrate-setting-admin8022.0523.1325.90

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=vibrate-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=vibrate-setting-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

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)
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (This is how popup will look in mobile with default theme and mobile will vibrate.)
You can look at the official readme.txt

vibrate/vibrate.php Passed 13 tests

The primary PHP file in "vibrate" version 1.0 is used by WordPress to initiate all plugin functionality
83 characters long description:
The vibrate plugin helps you to vibrate mobile user's screen with cusotmized popup.

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
There were no executable files found in this plugin139 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2122997
CSS10022
JavaScript222112
HTML1208

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.04KB8.08KB▼ 42.49%