10% citizens-feedbacks

Code Review | Citizens Feedbacks

WordPress plugin Citizens Feedbacks scored10%from 54 tests.

About plugin

  • Plugin page: citizens-feedbacks
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2016
  • Latest release: Jul 7, 2016
  • Number of updates: 27
  • Update frequency: every 2.2 days
  • Top authors: kryu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /936 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.625.17 ▼41.08
Dashboard /wp-admin2.13 ▼1.445.26 ▼51.85
Posts /wp-admin/edit.php2.13 ▼1.555.14 ▼49.47
Add New Post /wp-admin/post-new.php2.13 ▼4.027.23 ▼101.18
Media Library /wp-admin/upload.php2.13 ▼1.365.41 ▼31.44
About plugin /wp-admin/admin.php?page=plugin_info2.136.00
Citizens Feedbacks /wp-admin/admin.php?page=edit-cfeedbacks2.135.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.72 ▲0.401.88 ▼0.0943.28 ▲0.08
Dashboard /wp-admin2,222 ▲485.54 ▼0.1189.23 ▼9.4539.88 ▼4.04
Posts /wp-admin/edit.php2,130 ▲302.06 ▼0.1237.92 ▲0.6332.69 ▼6.16
Add New Post /wp-admin/post-new.php1,553 ▲723.38 ▲0.13654.63 ▼76.7561.91 ▲5.96
Media Library /wp-admin/upload.php1,427 ▲274.13 ▼0.0797.22 ▼7.5642.63 ▲0.06
About plugin /wp-admin/admin.php?page=plugin_info8002.0524.3029.80
Citizens Feedbacks /wp-admin/admin.php?page=edit-cfeedbacks8572.0227.9128.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:
LanguageFilesBlank linesComment linesLines of code
PHP75914388
CSS12012

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 code0.24
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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