84% wheel-of-fortune-by-ywp

Code Review | Wheel Of Fortune By Ywp x NextWeb

WordPress plugin Wheel Of Fortune By Ywp x NextWeb scored84%from 54 tests.

About plugin

  • Plugin page: wheel-of-fortune-...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2022
  • Latest release: May 3, 2023
  • Number of updates: 11
  • Update frequency: every 23.0 days
  • Top authors: dmitrylitvinov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /791 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Wheel Of Fortune By Ywp x NextWeb
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.87 ▲5.92
Dashboard /wp-admin3.35 ▼0.0053.44 ▼10.87
Posts /wp-admin/edit.php3.40 ▲0.0451.83 ▼2.55
Add New Post /wp-admin/post-new.php5.95 ▲0.0592.27 ▼18.79
Media Library /wp-admin/upload.php3.27 ▲0.0439.57 ▲5.51

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Wheel Of Fortune By Ywp x NextWeb: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6914.38 ▲0.031.84 ▼0.0745.04 ▲4.10
Dashboard /wp-admin2,206 ▲265.60 ▼0.0585.55 ▼1.9880.14 ▲38.66
Posts /wp-admin/edit.php2,129 ▲292.02 ▲0.0737.54 ▲1.7834.03 ▼1.48
Add New Post /wp-admin/post-new.php1,550 ▲2423.61 ▼0.18626.18 ▼55.3352.71 ▲4.78
Media Library /wp-admin/upload.php1,417 ▲174.28 ▲0.1096.80 ▼1.0670.57 ▲25.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wheel-of-fortune-by-ywp/wheel-of-fortune-by-ywp.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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 your attention:
  • Tags: No tags were detected
You can take inspiration from this readme.txt

wheel-of-fortune-by-ywp/wheel-of-fortune-by-ywp.php 92% from 13 tests

The entry point to "Wheel Of Fortune By Ywp x NextWeb" version 2.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,854 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2501,695
CSS1190861
PHP13712153
SVG500145

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/image/menu.png2.37KB1.27KB▼ 46.47%
assets/image/ww-logo.png2.82KB2.29KB▼ 18.78%
assets/image/search.png0.40KB0.30KB▼ 25.36%