89% really-simple-feedback

Code Review | Really Simple Feedback

WordPress plugin Really Simple Feedback scored89%from 54 tests.

About plugin

  • Plugin page: really-simple-fee...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 5, 2019
  • Latest release: Sep 5, 2019
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: pushlabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /483 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.67MB] [CPU: ▼16.10ms] Passed 4 tests

Analyzing server-side resources used by Really Simple Feedback
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.97 ▼0.77
Dashboard /wp-admin3.33 ▲0.0350.36 ▲4.49
Posts /wp-admin/edit.php3.38 ▲0.0244.84 ▲1.07
Add New Post /wp-admin/post-new.php3.14 ▼2.7435.63 ▼67.26
Media Library /wp-admin/upload.php3.25 ▲0.0236.43 ▲2.56
Feedback /wp-admin/edit.php?post_type=rsf3.3035.34
Add New /wp-admin/post-new.php?post_type=rsf3.2941.67

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Really Simple Feedback
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,021 ▲26014.37 ▲0.024.00 ▲2.5241.15 ▲2.41
Dashboard /wp-admin2,219 ▲425.64 ▼0.0384.09 ▼6.1139.45 ▼2.46
Posts /wp-admin/edit.php2,124 ▲242.04 ▲0.0233.90 ▼7.2633.88 ▲0.21
Add New Post /wp-admin/post-new.php1,546 ▲2023.16 ▲0.15610.83 ▼7.6155.03 ▼1.27
Media Library /wp-admin/upload.php1,424 ▲214.42 ▲0.2298.66 ▲0.5941.64 ▼0.39
Feedback /wp-admin/edit.php?post_type=rsf1,0961.9233.1331.31
Add New /wp-admin/post-new.php?post_type=rsf1,5162.4956.3575.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === really-simple-feedback === )
You can look at the official readme.txt

really-simple-feedback/really-simple-feedback.php 92% from 13 tests

Analyzing the main PHP file in "Really Simple Feedback" version 1.0.0
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
No dangerous file extensions were detected308 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP160157304
CSS2002
JavaScript2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions1178.57%
▷ Anonymous functions321.43%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 files were detected