83% collect-feedback-via-stria

Code Review | Collect Feedback via Stria

WordPress plugin Collect Feedback via Stria scored83%from 54 tests.

About plugin

  • Plugin page: collect-feedback-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.9.6
  • WordPress version: 6.3.1
  • First release: Jan 29, 2019
  • Latest release: Jan 29, 2019
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: ahmetanbar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /572 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.30ms] Passed 4 tests

An overview of server-side resources used by Collect Feedback via Stria
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.25 ▲0.14
Dashboard /wp-admin3.33 ▲0.0343.87 ▼8.83
Posts /wp-admin/edit.php3.38 ▲0.0341.76 ▼1.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.73 ▲2.93
Media Library /wp-admin/upload.php3.25 ▲0.0234.50 ▼2.51
Collect Feedback via Stria /wp-admin/options-general.php?page=collect-feedback-via-stria3.2230.23

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Collect Feedback via Stria
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.27 ▼0.001.49 ▼0.4038.08 ▼4.47
Dashboard /wp-admin2,196 ▲165.51 ▼0.1384.88 ▼12.2640.23 ▼2.25
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0736.81 ▲2.2536.43 ▼0.28
Add New Post /wp-admin/post-new.php1,531 ▼623.13 ▲4.99643.70 ▲45.3450.15 ▼19.13
Media Library /wp-admin/upload.php1,401 ▲14.22 ▲0.0395.25 ▼5.9943.07 ▼0.23
Collect Feedback via Stria /wp-admin/options-general.php?page=collect-feedback-via-stria8131.9924.0527.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/collect-feedback-via-stria/collectfeedback-stria.php:22
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/collect-feedback-via-stria/views/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

collect-feedback-via-stria/collectfeedback-stria.php 85% from 13 tests

The main file in "Collect Feedback via Stria" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("collect-feedback-via-stria.php" instead of "collectfeedback-stria.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin110 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22144110

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected