Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼11.56ms] Passed 4 tests
This is a short check of server-side resources used by Pinpoll
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.42 ▼4.78 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.24 ▼11.16 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.26 ▼4.34 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.00 ▼25.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.65 ▼1.62 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Pinpoll: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.37 ▲0.00 | 1.60 ▼0.45 | 39.70 ▼5.59 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▼0.07 | 92.97 ▲5.95 | 43.93 ▼1.57 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.14 ▲0.07 | 40.82 ▲2.56 | 38.05 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,547 ▲6 | 23.21 ▼0.13 | 627.63 ▼45.47 | 58.38 ▼5.15 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.24 ▼0.00 | 98.88 ▼4.09 | 42.31 ▼1.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pinpoll/admin/resources/gtm.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/pinpoll/admin/functions/pinpoll-functions.php:13
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 35 tag instead of maximum 10
pinpoll/pinpoll.php Passed 13 tests
The main PHP file in "Pinpoll" ver. 4.0.0 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
Create fun polls & understand your audience!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected4,153 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 463 | 1,149 | 3,271 |
JavaScript | 7 | 128 | 365 | 881 |
Markdown | 1 | 0 | 0 | 1 |
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.30 |
Average class complexity | 27.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 1 | 0.90% |
▷ Public methods | 89 | 80.18% |
▷ Protected methods | 21 | 18.92% |
▷ Private methods | 1 | 0.90% |
Functions | 20 | |
▷ Named functions | 14 | 70.00% |
▷ Anonymous functions | 6 | 30.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pinpoll_wp-icon_alpha.png | 2.98KB | 0.47KB | ▼ 84.15% |
images/pinpoll_logo_sw_101x26.png | 2.05KB | 1.41KB | ▼ 31.24% |
admin/images/pinpoll_wp-icon.png | 1.32KB | 0.42KB | ▼ 67.98% |
admin/images/pinpoll_header_black.png | 2.05KB | 1.41KB | ▼ 31.24% |