Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/citizens-feedbacks/citizens-feedbacks.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; CitizensFeedbacks has a deprecated constructor
Server metrics [RAM: ▼2.16MB] [CPU: ▼60.90ms] Passed 4 tests
This is a short check of server-side resources used by Citizens Feedbacks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.62 | 5.17 ▼41.08 |
Dashboard /wp-admin | 2.13 ▼1.44 | 5.26 ▼51.85 |
Posts /wp-admin/edit.php | 2.13 ▼1.55 | 5.14 ▼49.47 |
Add New Post /wp-admin/post-new.php | 2.13 ▼4.02 | 7.23 ▼101.18 |
Media Library /wp-admin/upload.php | 2.13 ▼1.36 | 5.41 ▼31.44 |
About plugin /wp-admin/admin.php?page=plugin_info | 2.13 | 6.00 |
Citizens Feedbacks /wp-admin/admin.php?page=edit-cfeedbacks | 2.13 | 5.50 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cfeedbacks |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Citizens Feedbacks: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.72 ▲0.40 | 1.88 ▼0.09 | 43.28 ▲0.08 |
Dashboard /wp-admin | 2,222 ▲48 | 5.54 ▼0.11 | 89.23 ▼9.45 | 39.88 ▼4.04 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.06 ▼0.12 | 37.92 ▲0.63 | 32.69 ▼6.16 |
Add New Post /wp-admin/post-new.php | 1,553 ▲7 | 23.38 ▲0.13 | 654.63 ▼76.75 | 61.91 ▲5.96 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.13 ▼0.07 | 97.22 ▼7.56 | 42.63 ▲0.06 |
About plugin /wp-admin/admin.php?page=plugin_info | 800 | 2.05 | 24.30 | 29.80 |
Citizens Feedbacks /wp-admin/admin.php?page=edit-cfeedbacks | 857 | 2.02 | 27.91 | 28.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/citizens-feedbacks/citizens-feedbacks.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; CitizensFeedbacks has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit-cfeedbacks
- > Deprecated in wp-content/plugins/citizens-feedbacks/citizens-feedbacks.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; CitizensFeedbacks has a deprecated constructor
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: citizens appeals, citizens, citizens feedback, feedback, feedback form...
citizens-feedbacks/citizens-feedbacks.php 92% from 13 tests
The primary PHP file in "Citizens Feedbacks" version 1.1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin400 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 59 | 14 | 388 |
CSS | 1 | 2 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 9 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin