Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.70ms] Passed 4 tests
An overview of server-side resources used by PegaPoll
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 43.20 ▼2.24 |
Dashboard /wp-admin | 3.48 ▲0.18 | 57.60 ▲4.98 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 56.25 ▲5.27 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 92.60 ▼14.82 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 46.08 ▲9.57 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by PegaPoll
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,008 ▲247 | 13.41 ▼1.06 | 9.34 ▲7.56 | 36.97 ▼6.45 |
Dashboard /wp-admin | 2,299 ▲122 | 5.53 ▼0.13 | 90.44 ▼1.64 | 43.08 ▲1.46 |
Posts /wp-admin/edit.php | 2,207 ▲107 | 2.14 ▲0.12 | 39.05 ▼0.72 | 33.32 ▼3.22 |
Add New Post /wp-admin/post-new.php | 6,383 ▲4,855 | 27.51 ▲4.32 | 953.02 ▲269.29 | 39.56 ▼24.07 |
Media Library /wp-admin/upload.php | 1,505 ▲105 | 4.40 ▲0.22 | 101.57 ▼9.00 | 47.60 ▲2.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pegapoll/public/public.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pegapoll/pegapoll.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pegapoll/admin/admin.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pegapoll/includes/settings/settings.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: embedded, pegapoll, iframe
pegapoll/pegapoll.php Passed 13 tests
The principal PHP file in "PegaPoll" v. 1.0.2 is loaded by WordPress automatically on each request
92 characters long description:
PegaPoll is an official PegaPoll plugin, which can embed PegaPolls easily using their URL's.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,671 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 70 | 97 | 726 |
PHP | 4 | 111 | 193 | 599 |
CSS | 2 | 26 | 23 | 101 |
PO File | 1 | 42 | 42 | 100 |
SVG | 2 | 0 | 2 | 82 |
JSON | 1 | 0 | 0 | 63 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG images were found in this plugin