89% reve-dynamic-widget

Code Review | Reve Dynamic Widget

WordPress plugin Reve Dynamic Widget scored89%from 54 tests.

About plugin

  • Plugin page: reve-dynamic-widget
  • Plugin version: 1.7.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6.0
  • WordPress version: 6.3.1
  • First release: Apr 27, 2017
  • Latest release: Feb 2, 2021
  • Number of updates: 50
  • Update frequency: every 27.6 days
  • Top authors: promostudio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,233 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.06MB] [CPU: ▼9.62ms] Passed 4 tests

A check of server-side resources used by Reve Dynamic Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.96 ▼5.60
Dashboard /wp-admin3.37 ▲0.0345.39 ▼16.59
Posts /wp-admin/edit.php3.42 ▲0.0745.75 ▼3.92
Add New Post /wp-admin/post-new.php5.95 ▲0.0781.38 ▼12.36
Media Library /wp-admin/upload.php3.29 ▲0.0736.34 ▲1.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Reve Dynamic Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.55 ▼0.831.78 ▼0.0142.14 ▼1.84
Dashboard /wp-admin2,206 ▲184.86 ▼0.04108.24 ▼7.2038.76 ▼3.95
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0141.62 ▼5.8534.58 ▼3.08
Add New Post /wp-admin/post-new.php1,514 ▼517.63 ▼5.47702.14 ▲106.5346.43 ▼8.59
Media Library /wp-admin/upload.php1,379 ▼124.19 ▲0.0099.01 ▼5.8942.65 ▼2.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_theysaidso_widget
    • widget_revedw
    • widget_recent-comments
    • db_upgraded
    • widget_revedw_version
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: "https:promostudio.es/support-revedw"
The official readme.txt is a good inspiration

reve-dynamic-widget/reve-dynamic-widget.php 85% from 13 tests

The entry point to "Reve Dynamic Widget" version 1.7.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected357 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2157117302
PO File1182055

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity74.00
▷ Minimum class complexity74.00
▷ Maximum class complexity74.00
Average method complexity8.30
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods550.00%
▷ Protected methods00.00%
▷ Private methods550.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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 files were detected