Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EasyPolls::my_plugin_create_db() should not be called statically
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.69ms] Passed 4 tests
This is a short check of server-side resources used by Easy Polls
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.95 ▼2.01 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.95 ▼5.17 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 51.53 ▼1.72 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.24 ▼9.84 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 38.48 ▲5.33 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_easypolls_results |
wp_easypolls_question |
wp_easypolls_option |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Polls
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲154 | 13.41 ▼0.94 | 8.40 ▲6.68 | 44.08 ▲4.45 |
Dashboard /wp-admin | 2,210 ▲30 | 5.56 ▲0.03 | 93.51 ▲5.30 | 40.21 ▼1.20 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 1.99 ▼0.02 | 34.42 ▼0.14 | 38.96 ▲1.55 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 23.38 ▲5.12 | 734.16 ▲49.79 | 54.86 ▼19.34 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.19 ▼0.04 | 96.06 ▼12.86 | 43.94 ▼2.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method EasyPolls::easypolls_deactivation_hook() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please describe screenshot #3 in easy-polls/assets to your readme.txt
easy-polls/easy-polls.php Passed 13 tests
Analyzing the main PHP file in "Easy Polls" version 1.0
42 characters long description:
Easy Polls create exit polls in your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin770 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 173 | 80 | 523 |
CSS | 1 | 21 | 4 | 217 |
JavaScript | 1 | 6 | 2 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
There were not PNG files found in your plugin