78% aspl-feedback-system

Code Review | ASPL Feedback System

WordPress plugin ASPL Feedback System scored78%from 54 tests.

About plugin

  • Plugin page: aspl-feedback-system
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2020
  • Latest release: Apr 6, 2020
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: acespritech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /517 total downloads

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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.02ms] Passed 4 tests

Server-side resources used by ASPL Feedback System
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.03 ▲1.23
Dashboard /wp-admin3.31 ▲0.0045.84 ▼8.03
Posts /wp-admin/edit.php3.36 ▲0.0047.09 ▼2.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.89 ▼13.21
Media Library /wp-admin/upload.php3.23 ▲0.0037.03 ▼0.25
Customer Feedback Report /wp-admin/admin.php?page=customer-feedback3.0024.04
Update Question /wp-admin/admin.php?page=update-question3.0024.84
Add New /wp-admin/admin.php?page=template-configuration3.0023.14
Seeting /wp-admin/admin.php?page=feedback_setting3.0023.32
Feedback /wp-admin/admin.php?page=asplfs_feedback_page3.0019.56

Server storage [IO: ▲0.78MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for ASPL Feedback System
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▲0.001.85 ▼0.2441.26 ▼3.76
Dashboard /wp-admin2,195 ▲215.62 ▲0.0887.43 ▼9.2138.58 ▼3.34
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0238.64 ▲2.9835.99 ▼0.26
Add New Post /wp-admin/post-new.php1,526 ▼1123.32 ▲5.21640.44 ▲17.1667.07 ▲3.83
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0298.08 ▲0.7946.02 ▲1.74
Customer Feedback Report /wp-admin/admin.php?page=customer-feedback280.420.084.59
Update Question /wp-admin/admin.php?page=update-question280.420.094.72
Add New /wp-admin/admin.php?page=template-configuration280.420.094.07
Seeting /wp-admin/admin.php?page=feedback_setting280.420.154.34
Feedback /wp-admin/admin.php?page=asplfs_feedback_page280.420.073.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=update-question
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=customer-feedback
    • > Network (severe)
    wp-admin/admin.php?page=customer-feedback - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=update-question
    • > Network (severe)
    wp-admin/admin.php?page=update-question - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=template-configuration
    • > Network (severe)
    wp-admin/admin.php?page=template-configuration - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=feedback_setting
    • > Network (severe)
    wp-admin/admin.php?page=feedback_setting - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/admin.php?page=asplfs_feedback_page
    • > Network (severe)
    wp-admin/admin.php?page=asplfs_feedback_page - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% 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
3 plugin tags: review, feed, feedback

aspl-feedback-system/index.php 77% from 13 tests

"ASPL Feedback System" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aspl-feedback-system.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/i18n/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,993 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP13433581,574
JavaScript310315300
CSS3911119

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity17.33
▷ Minimum class complexity16.00
▷ Maximum class complexity19.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods39
▷ Static methods615.38%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin