Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼140.20ms] Passed 4 tests
Analyzing server-side resources used by Loop Feedback
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 47.89 ▲24.75 |
Dashboard /wp-admin | 3.14 ▲0.08 | 57.00 ▲7.00 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 50.20 ▼3.69 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 93.92 ▼566.85 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 35.85 ▲2.75 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Loop Feedback
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,807 ▲211 | 16.28 ▲0.41 | 10.53 ▲2.29 | 50.47 ▼4.63 |
Dashboard /wp-admin | 2,992 ▲61 | 5.89 ▼0.07 | 142.23 ▼8.21 | 115.75 ▲2.84 |
Posts /wp-admin/edit.php | 2,758 ▲19 | 2.69 ▲0.00 | 73.73 ▲6.12 | 94.90 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,697 ▲14 | 18.73 ▼0.08 | 363.64 ▼28.22 | 111.43 ▼8.10 |
Media Library /wp-admin/upload.php | 1,826 ▲22 | 5.01 ▼0.02 | 149.61 ▼9.66 | 127.39 ▼7.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/loopfeedback/public/partials/loop-feedback-public-display.php
- > /wp-content/plugins/loopfeedback/loop-feedback/public/partials/loop-feedback-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/loopfeedback/admin/partials/loop-feedback-admin-display.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/loopfeedback/loop-feedback/admin/partials/loop-feedback-admin-display.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: feedback, website, loop, tool, have a suggestion...
loopfeedback/loop-feedback.php 77% from 13 tests
The principal PHP file in "Loop Feedback" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("loopfeedback.php" instead of "loop-feedback.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 330 characters long)
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
There were no executable files found in this plugin522 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 189 | 656 | 516 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 4 | 6.67% |
▷ Public methods | 50 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 16.67% |
Functions | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin