78% votely-poll-vote-system-by-wpgens

Code Review | Votely by WPGens

WordPress plugin Votely by WPGens scored78%from 54 tests.

About plugin

  • Plugin page: votely-poll-vote-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jan 18, 2016
  • Latest release: Aug 9, 2023
  • Number of updates: 31
  • Update frequency: every 89.0 days
  • Top authors: Goran87 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /7,451 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼3.68ms] Passed 4 tests

Server-side resources used by Votely by WPGens
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1942.92 ▲2.47
Dashboard /wp-admin3.50 ▲0.2052.95 ▲1.73
Posts /wp-admin/edit.php3.61 ▲0.2646.94 ▲0.58
Add New Post /wp-admin/post-new.php6.08 ▲0.1990.17 ▼19.49
Media Library /wp-admin/upload.php3.42 ▲0.1940.09 ▲5.66
WPGens Votely /wp-admin/options-general.php?page=gens-votely3.4146.14

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Votely by WPGens
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.74 ▲0.371.72 ▼0.1244.01 ▲1.20
Dashboard /wp-admin2,213 ▲215.90 ▲0.9697.85 ▼16.8842.95 ▼2.76
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0534.54 ▼3.0933.05 ▼5.24
Add New Post /wp-admin/post-new.php6,320 ▲4,80026.21 ▲2.99925.14 ▲253.8966.42 ▲5.01
Media Library /wp-admin/upload.php1,392 ▲44.26 ▲0.01111.34 ▲6.5047.23 ▼3.20
WPGens Votely /wp-admin/options-general.php?page=gens-votely1,3733.2358.6825.54

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=gens-votely
    • > 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=gens-votely
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/votely-poll-vote-system-by-wpgens/public/partials/gens-votely-public-display.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'Gens_Votely_Admin' not found in wp-content/plugins/votely-poll-vote-system-by-wpgens/admin/settings/class-gens-votely-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title() in wp-content/plugins/votely-poll-vote-system-by-wpgens/public/partials/gens-votely-public-display.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function flush_rewrite_rules() in wp-content/plugins/votely-poll-vote-system-by-wpgens/admin/partials/gens-votely-admin-display.php:17
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/votely-poll-vote-system-by-wpgens/public/partials/gens-votely-public-display.php on line 9

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: question, poll, opinion, contest, share...

votely-poll-vote-system-by-wpgens/gens-votely.php 85% from 13 tests

This is the main PHP file of "Votely by WPGens" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("votely-poll-vote-system-by-wpgens.php" instead of "gens-votely.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,271 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP15247742916
CSS261220
JavaScript2228116
SVG10019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.89
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods51
▷ Static methods23.92%
▷ Public methods4588.24%
▷ Protected methods00.00%
▷ Private methods611.76%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.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