63% peer-feedback

Code Review | Peer Feedback

WordPress plugin Peer Feedback scored63%from 54 tests.

About plugin

  • Plugin page: peer-feedback
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 9, 2017
  • Latest release: Sep 11, 2018
  • Number of updates: 19
  • Update frequency: every 32.0 days
  • Top authors: alexfurr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /659 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.27MB] [CPU: ▲27.69ms] Passed 4 tests

A check of server-side resources used by Peer Feedback
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4472.12 ▲30.79
Dashboard /wp-admin3.65 ▲0.2784.64 ▲21.18
Posts /wp-admin/edit.php3.70 ▲0.3181.53 ▲29.91
Add New Post /wp-admin/post-new.php6.19 ▲0.26134.32 ▲28.88
Media Library /wp-admin/upload.php3.51 ▲0.2472.94 ▲33.20
All Projects /wp-admin/edit.php?post_type=peer_projects3.5665.18
/wp-admin/admin.php?page=as-pfeedack-student-feedback3.4760.37
Help /wp-admin/edit.php?post_type=peer_projects&page=as-pfeedack-help3.4864.51
/wp-admin/admin.php?page=as-pfeedack-project-criteria3.5058.58
/wp-admin/admin.php?page=as-pfeedack-project-groups3.5760.46
Add New Project /wp-admin/post-new.php?post_type=peer_projects3.7075.91

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 24 new files
Database: 6 new tables, 7 new options
New tables
wp_as_peer_feedback_response_options
wp_as_peer_feedback
wp_as_peer_feedback_criteria
wp_as_peer_feedback_users
wp_as_peer_feedback_groups
wp_as_peer_feedback_criteria_descriptors
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
as_peer_feedback_ops
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Peer Feedback
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲20614.11 ▼0.245.73 ▲3.6842.41 ▲2.67
Dashboard /wp-admin2,249 ▲696.06 ▲0.4495.18 ▲12.0642.41 ▼0.90
Posts /wp-admin/edit.php2,175 ▲752.52 ▲0.5043.81 ▲7.9035.69 ▼3.90
Add New Post /wp-admin/post-new.php1,580 ▲5422.07 ▼0.91673.23 ▲15.2462.64 ▲8.71
Media Library /wp-admin/upload.php1,465 ▲684.60 ▲0.40109.90 ▲4.2745.72 ▼1.80
All Projects /wp-admin/edit.php?post_type=peer_projects1,1742.3836.5728.60
/wp-admin/admin.php?page=as-pfeedack-student-feedback7051.126.5417.29
Help /wp-admin/edit.php?post_type=peer_projects&page=as-pfeedack-help9302.1327.8428.75
/wp-admin/admin.php?page=as-pfeedack-project-criteria7051.516.2811.98
/wp-admin/admin.php?page=as-pfeedack-project-groups7051.516.8818.30
Add New Project /wp-admin/post-new.php?post_type=peer_projects2,3417.98172.0467.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 6 tables
    • wp_as_peer_feedback
    • wp_as_peer_feedback_criteria
    • wp_as_peer_feedback_criteria_descriptors
    • wp_as_peer_feedback_response_options
    • wp_as_peer_feedback_groups
    • wp_as_peer_feedback_users
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • as_peer_feedback_ops
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=as-pfeedack-student-feedback
    • > Notice in wp-content/plugins/peer-feedback/admin/student_feedback.php+9
    Undefined index: projectID
    • > GET request to /wp-admin/admin.php?page=as-pfeedack-student-feedback
    • > Notice in wp-content/plugins/peer-feedback/admin/student_feedback.php+10
    Undefined index: userID

SRP 0% 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/peer-feedback/admin/help.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'peerFeedback_utils' not found in wp-content/plugins/peer-feedback/admin/criteria.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'peerFeedback_utils' not found in wp-content/plugins/peer-feedback/admin/groups.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: peer, feedback, academic

peer-feedback/peer-feedback.php Passed 13 tests

"Peer Feedback" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
77 characters long description:
Create project groups and allow students to give feedback on peer performance

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
Good job! No executable or dangerous file extensions detected2,639 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP161,0073242,262
JavaScript311628203
CSS3609174

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity19.12
▷ Minimum class complexity4.00
▷ Maximum class complexity51.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods63
▷ Static methods2539.68%
▷ Public methods63100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin