Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▼8.52ms] Passed 4 tests
An overview of server-side resources used by TalkToMe - user inputs & polls
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 39.10 ▼1.22 |
Dashboard /wp-admin | 3.69 ▲0.35 | 45.70 ▼19.55 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 49.16 ▲6.87 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 93.00 ▼17.06 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 35.72 ▲3.75 |
Settings /wp-admin/admin.php?page=crowd_settings | 3.51 | 32.61 |
Cards /wp-admin/edit.php?post_type=card | 3.66 | 37.72 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for TalkToMe - user inputs & polls
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 13.23 ▼1.16 | 1.69 ▼0.04 | 42.07 ▼1.33 |
Dashboard /wp-admin | 2,249 ▲61 | 4.86 ▲0.04 | 99.82 ▼16.59 | 37.36 ▼8.06 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.01 ▼0.03 | 40.34 ▲0.25 | 35.01 ▼0.48 |
Add New Post /wp-admin/post-new.php | 6,306 ▲4,784 | 18.72 ▼4.70 | 897.70 ▲303.50 | 57.81 ▲2.47 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.20 ▲0.05 | 100.23 ▲2.69 | 42.47 ▲1.07 |
Settings /wp-admin/admin.php?page=crowd_settings | 807 | 2.16 | 26.31 | 23.98 |
Cards /wp-admin/edit.php?post_type=card | 1,166 | 2.00 | 30.34 | 30.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/crowd/templates/initiator.tpl.php
- > /wp-content/plugins/crowd/templates/cards.tpl.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/crowd/templates/card-htmlcard.tpl.php:7
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/crowd/templates/cards.tpl.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/crowd/templates/embed.php:3
- > PHP Fatal error
Uncaught Error: Class 'Crowd\\BaseCard' not found in wp-content/plugins/crowd/inc/card/html-card.php:6
- > PHP Fatal error
Uncaught Error: Class 'Crowd\\BaseCard' not found in wp-content/plugins/crowd/inc/card/poll-card.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/crowd/templates/card-pollcard.tpl.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/crowd/grid/templates/grid-box-crowd_cards.tpl.php:9
- > PHP Notice
Undefined variable: initiator in wp-content/plugins/crowd/templates/initiator.tpl.php on line 7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/crowd/templates/card-inputcard.tpl.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/crowd/inc/card-query.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: community
crowd/plugin.php 92% from 13 tests
The main PHP script in "TalkToMe - user inputs & polls" version 1.0.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("crowd.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,886 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 464 | 916 | 1,433 |
JavaScript | 4 | 68 | 100 | 254 |
PO File | 1 | 50 | 51 | 134 |
CSS | 2 | 2 | 1 | 57 |
Pascal | 1 | 5 | 13 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 1 | 4.35% |
▷ Concrete classes | 22 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 4 | 3.48% |
▷ Public methods | 109 | 94.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 5.22% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 52 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 52 | 100.00% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin