Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.55ms] Passed 4 tests
Analyzing server-side resources used by Pollfish for Wordpress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 35.03 ▼6.91 |
Dashboard /wp-admin | 3.46 ▲0.15 | 47.70 ▲0.06 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 51.62 ▲5.34 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 87.39 ▲2.78 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.44 ▼6.13 |
PollFish for Wordpress /wp-admin/options-general.php?page=pollfish-for-wordpress | 3.35 | 32.88 |
Server storage [IO: ▲0.07MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Pollfish for Wordpress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲184 | 14.29 ▲0.37 | 14.23 ▲12.40 | 40.83 ▼1.52 |
Dashboard /wp-admin | 2,213 ▲22 | 4.81 ▼1.04 | 107.99 ▲1.49 | 36.66 ▼4.07 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 1.97 ▼0.06 | 36.36 ▲0.59 | 30.91 ▼3.52 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.67 ▲0.17 | 669.73 ▼13.56 | 51.81 ▼8.37 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.06 | 100.22 ▼14.44 | 41.94 ▼6.24 |
PollFish for Wordpress /wp-admin/options-general.php?page=pollfish-for-wordpress | 1,043 | 2.05 | 26.40 | 36.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=pollfish-for-wordpress
- > Notice in wp-content/plugins/pollfish-for-wp/admin/class-pollfish-for-wordpress-admin.php+503
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pollfish-for-wp/public/partials/pollfish-for-wordpress-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/pollfish-for-wp/admin/partials/pollfish-for-wordpress-admin-display.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
5 plugin tags: survey, monetization, pollfish, surveys, wordpress
pollfish-for-wp/pollfish-for-wp.php 92% from 13 tests
The main PHP script in "Pollfish for Wordpress" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- 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
Good job! No executable or dangerous file extensions detected658 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 251 | 546 | 652 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 17.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 2 | 4.17% |
▷ Public methods | 43 | 89.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.42% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin