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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 42.92 ▲2.47 |
Dashboard /wp-admin | 3.50 ▲0.20 | 52.95 ▲1.73 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 46.94 ▲0.58 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 90.17 ▼19.49 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 40.09 ▲5.66 |
WPGens Votely /wp-admin/options-general.php?page=gens-votely | 3.41 | 46.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.74 ▲0.37 | 1.72 ▼0.12 | 44.01 ▲1.20 |
Dashboard /wp-admin | 2,213 ▲21 | 5.90 ▲0.96 | 97.85 ▼16.88 | 42.95 ▼2.76 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.05 | 34.54 ▼3.09 | 33.05 ▼5.24 |
Add New Post /wp-admin/post-new.php | 6,320 ▲4,800 | 26.21 ▲2.99 | 925.14 ▲253.89 | 66.42 ▲5.01 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.26 ▲0.01 | 111.34 ▲6.50 | 47.23 ▼3.20 |
WPGens Votely /wp-admin/options-general.php?page=gens-votely | 1,373 | 3.23 | 58.68 | 25.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 247 | 742 | 916 |
CSS | 2 | 6 | 1 | 220 |
JavaScript | 2 | 22 | 8 | 116 |
SVG | 1 | 0 | 0 | 19 |
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 code | 0.35 |
Average class complexity | 9.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 2 | 3.92% |
▷ Public methods | 45 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 11.76% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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