Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/wp-vote/wp-vote.php+61
require_once(admin/class-import-logger.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.00MB] [CPU: ▼166.76ms] Passed 4 tests
Server-side resources used by WP Vote Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 37.25 ▲16.03 |
Dashboard /wp-admin | 3.06 ▲0.00 | 47.30 ▲2.37 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 45.50 ▲10.04 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 88.69 ▼680.99 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 34.75 ▲1.54 |
Server storage [IO: ▲5.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 376 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Vote Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.88 ▲0.18 | 9.72 ▲1.03 | 48.10 ▲1.23 |
Dashboard /wp-admin | 2,970 ▲36 | 5.95 ▼0.05 | 146.60 ▼19.15 | 105.98 ▼9.32 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.72 ▲0.00 | 61.86 ▼5.12 | 77.62 ▼11.47 |
Add New Post /wp-admin/post-new.php | 1,676 ▼2,011 | 18.91 ▲3.77 | 375.51 ▼60.21 | 107.64 ▼7.06 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▼0.00 | 139.04 ▼5.76 | 113.30 ▲3.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-vote/admin/partials/wp-vote-admin-display.php
- > /wp-content/plugins/wp-vote/public/partials/wp-vote-public-display.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-vote/third-party/cmb/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-vote/third-party/cmb/bootstrap.php:12
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-vote/third-party/cmb/tests/bootstrap.php on line 24
- > PHP Fatal error
require_once(): Failed opening required 'WPMU_PLUGIN_DIR/cmb2/init.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-vote/third-party/cmb2-attached-posts/example-field-setup.php on line 9
- > PHP Warning
require_once(WPMU_PLUGIN_DIR/cmb2/init.php): failed to open stream: No such file or directory in wp-content/plugins/wp-vote/third-party/cmb2-attached-posts/example-field-setup.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-vote/third-party/cmb/example-functions.php:68
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-vote/third-party/cmb/tests/cmb-tests-base.php:10
- > PHP Warning
Use of undefined constant WPMU_PLUGIN_DIR - assumed 'WPMU_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-vote/third-party/cmb2-attached-posts/example-field-setup.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function WP_Vote\\plugin_dir_path() in wp-content/plugins/wp-vote/includes/class-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-vote/third-party/cmb/init.php:119
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-vote ===
)
wp-vote/wp-vote.php Passed 13 tests
The main file in "WP Vote Lite" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
46 characters long description:
Manages voting on your site via email invites.
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
Everything looks great! No dangerous files found in this plugin93,160 lines of code in 218 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 0 | 47,741 |
PO File | 119 | 12,731 | 16,329 | 29,151 |
PHP | 60 | 2,943 | 4,179 | 8,731 |
CSS | 7 | 1,086 | 1,085 | 4,217 |
JavaScript | 7 | 345 | 374 | 1,323 |
Sass | 11 | 168 | 23 | 1,116 |
Markdown | 5 | 186 | 0 | 511 |
YAML | 2 | 9 | 0 | 152 |
JSON | 4 | 0 | 0 | 147 |
Bourne Shell | 1 | 19 | 7 | 71 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 22.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 4 | 8.70% |
▷ Concrete classes | 42 | 91.30% |
▷ Final classes | 0 | 0.00% |
Methods | 573 | |
▷ Static methods | 220 | 38.39% |
▷ Public methods | 527 | 91.97% |
▷ Protected methods | 13 | 2.27% |
▷ Private methods | 33 | 5.76% |
Functions | 32 | |
▷ Named functions | 29 | 90.62% |
▷ Anonymous functions | 3 | 9.38% |
Constants | 22 | |
▷ Global constants | 6 | 27.27% |
▷ Class constants | 16 | 72.73% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.21MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
third-party/cmb/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
third-party/cmb/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
third-party/cmb/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
third-party/cmb/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
third-party/cmb/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |