89% lucky-wheel-exit-intent-wheelio-popup-for-spin-a-sale-by-wheely-sales

Code Review | Lucky Wheel Exit Intent Wheelio Popup for Spin a Sale by Wheely Sales

WordPress plugin Lucky Wheel Exit Intent Wheelio Popup for Spin a Sale by Wheely Sales scored89%from 54 tests.

About plugin

  • Plugin page: lucky-wheel-exit-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2019
  • Latest release: Apr 11, 2019
  • Number of updates: 6
  • Update frequency: every 2.5 days
  • Top authors: joshwheelysales (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /3,494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.11ms] Passed 4 tests

This is a short check of server-side resources used by Lucky Wheel Exit Intent Wheelio Popup for Spin a Sale by Wheely Sales
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.73 ▼5.92
Dashboard /wp-admin3.35 ▲0.0450.32 ▲2.63
Posts /wp-admin/edit.php3.40 ▲0.0448.37 ▼2.36
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.74 ▼13.68
Media Library /wp-admin/upload.php3.27 ▲0.0436.42 ▲1.54
Wheely Sales /wp-admin/options-general.php?page=wheely-sales3.2433.35

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

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

Browser metrics Passed 4 tests

Lucky Wheel Exit Intent Wheelio Popup for Spin a Sale by Wheely Sales: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.121.80 ▲0.1040.76 ▼6.38
Dashboard /wp-admin2,199 ▲255.67 ▲0.0692.92 ▼31.4939.29 ▼11.17
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0134.79 ▼7.6233.93 ▼3.06
Add New Post /wp-admin/post-new.php1,529 ▼823.06 ▲4.67685.52 ▲52.0257.04 ▼8.80
Media Library /wp-admin/upload.php1,401 ▼24.17 ▲0.03101.25 ▲1.3246.66 ▲2.33
Wheely Sales /wp-admin/options-general.php?page=wheely-sales8502.0124.2228.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: exit intent, lucky wheel, wheelio, wheelysalescom, wheelysales...

lucky-wheel-exit-intent-wheelio-popup-for-spin-a-sale-by-wheely-sales/wheely-sales.php 77% from 13 tests

"Lucky Wheel Exit Intent Wheelio Popup for Spin a Sale by Wheely Sales" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 256 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lucky-wheel-exit-intent-wheelio-popup-for-spin-a-sale-by-wheely-sales.php" instead of "wheely-sales.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected198 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14434130
CSS115366
JavaScript1102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/banner.png215.07KB75.23KB▼ 65.02%