Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.48ms] Passed 4 tests
An overview of server-side resources used by Sided
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.28 ▼0.05 |
Dashboard /wp-admin | 3.39 ▲0.05 | 46.24 ▼16.53 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.13 ▲5.73 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 91.29 ▲1.20 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.36 ▲5.46 |
Edit Poll /wp-admin/admin.php?page=dashboard&debate=&action=edit | 3.29 | 31.30 |
Create Poll /wp-admin/admin.php?page=create-debate | 3.41 | 32.46 |
Create Poll from Block /wp-admin/admin.php?page=create-debate-from-block | 3.40 | 31.46 |
Edit Draft /wp-admin/admin.php?page=edit-draft | 3.41 | 31.74 |
Settings /wp-admin/admin.php?page=settings | 3.31 | 31.55 |
Dashboard /wp-admin/admin.php?page=dashboard | 3.29 | 30.61 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Sided
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.28 ▲0.08 | 1.96 ▲0.31 | 41.81 ▼3.14 |
Dashboard /wp-admin | 2,233 ▲53 | 5.75 ▲0.10 | 90.03 ▼1.22 | 38.77 ▼4.93 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.32 ▲0.38 | 38.80 ▲4.97 | 38.64 ▲6.22 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 23.27 ▼0.24 | 587.81 ▼108.30 | 34.15 ▼24.53 |
Media Library /wp-admin/upload.php | 1,446 ▲49 | 4.52 ▲0.35 | 95.72 ▼1.55 | 42.18 ▲2.16 |
Edit Poll /wp-admin/admin.php?page=dashboard&debate=&action=edit | 873 | 1.86 | 25.42 | 48.02 |
Create Poll /wp-admin/admin.php?page=create-debate | 1,585 | 2.92 | 31.45 | 37.69 |
Create Poll from Block /wp-admin/admin.php?page=create-debate-from-block | 1,582 | 2.88 | 31.74 | 37.61 |
Edit Draft /wp-admin/admin.php?page=edit-draft | 1,579 | 2.77 | 30.01 | 37.43 |
Settings /wp-admin/admin.php?page=settings | 895 | 1.94 | 24.85 | 36.22 |
Dashboard /wp-admin/admin.php?page=dashboard | 876 | 1.89 | 24.26 | 37.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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 everything seems fine, this is not 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sided/partials/includes/sided-common-header.php
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sided/partials/includes/sided-authenticate-apikey.php:3
- > PHP Warning
Use of undefined constant SIDED_VERSION - assumed 'SIDED_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/sided/partials/includes/sided-common-header.php on line 45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sided/includes/block-editor/sided-block-editor.php:3
- > PHP Notice
Undefined variable: status_aat in wp-content/plugins/sided/partials/includes/sided-common-header.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/sided/sided.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sided/partials/includes/sided-settings-header.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sided/partials/includes/sided-authenticate-apikey.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sided/partials/includes/sided-authenticate-apikey.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sided/partials/includes/sided-authenticate-apikey.php:3
- > PHP Notice
Undefined variable: status_aat in wp-content/plugins/sided/partials/includes/sided-common-header.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: polls, polling, survey, comments, commenting
sided/sided.php Passed 13 tests
The entry point to "Sided" version 1.2.8 is a PHP file that has certain tags in its header comment area
72 characters long description:
It is a wordpress plugin to embed sided polls in your Wordpress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin6,483 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 263 | 163 | 3,253 |
CSS | 3 | 107 | 22 | 1,692 |
Sass | 1 | 7 | 0 | 836 |
JavaScript | 4 | 33 | 15 | 686 |
JSX | 1 | 1 | 0 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 22 | 88.00% |
▷ Anonymous functions | 3 | 12.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin