77% studentsays-make-comment-or-feedback

Code Review | Student Feedback

WordPress plugin Student Feedback scored77%from 54 tests.

About plugin

  • Plugin page: studentsays-make-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 25, 2021
  • Latest release: Dec 25, 2021
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: jakirriaaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /287 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Student Feedback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0138.72 ▼7.80
Dashboard /wp-admin3.44 ▲0.1343.40 ▼13.61
Posts /wp-admin/edit.php3.49 ▼0.3648.01 ▼9.38
Add New Post /wp-admin/post-new.php6.04 ▲0.1592.54 ▼16.09
Media Library /wp-admin/upload.php3.36 ▲0.1332.22 ▼0.68
All StudentSays /wp-admin/edit.php?post_type=jr_student_feedback3.4033.82
Add New /wp-admin/post-new.php?post_type=jr_student_feedback3.8156.40

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

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

Browser metrics Passed 4 tests

Student Feedback: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲18113.58 ▼1.138.89 ▲7.1243.27 ▼8.75
Dashboard /wp-admin2,233 ▲565.69 ▲0.1692.02 ▼7.1741.34 ▼5.86
Posts /wp-admin/edit.php2,141 ▲412.04 ▲0.0440.27 ▲4.7234.81 ▼1.47
Add New Post /wp-admin/post-new.php1,556 ▲2023.06 ▲4.82653.29 ▼15.2656.63 ▼11.81
Media Library /wp-admin/upload.php1,435 ▲324.35 ▲0.1497.18 ▼9.2543.34 ▼1.00
All StudentSays /wp-admin/edit.php?post_type=jr_student_feedback1,1111.9833.8131.36
Add New /wp-admin/post-new.php?post_type=jr_student_feedback2,2557.24162.9084.98

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/studentsays-make-comment-or-feedback/init.php
  • 40× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/studentsays-make-comment-or-feedback/metabox/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/studentsays-make-comment-or-feedback/metabox/includes/types/CMB2_Type_Taxonomy_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/studentsays-make-comment-or-feedback/metabox/includes/rest-api/CMB2_REST.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/studentsays-make-comment-or-feedback/metabox/example-functions.php:105
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/studentsays-make-comment-or-feedback/metabox/includes/types/CMB2_Type_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/studentsays-make-comment-or-feedback/metabox/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/studentsays-make-comment-or-feedback/metabox/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/studentsays-make-comment-or-feedback/metabox/includes/types/CMB2_Type_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/studentsays-make-comment-or-feedback/metabox/includes/rest-api/CMB2_REST_Controller_Fields.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/studentsays-make-comment-or-feedback/metabox/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13

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 errors were detected

Optimizations

Plugin configuration 83% 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
4 plugin tags: education organization review, students comments, studentsays, students feedback

studentsays-make-comment-or-feedback/init.php 62% from 13 tests

The principal PHP file in "Student Feedback" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 245 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("studentsays-make-comment-or-feedback.php" instead of "init.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.2")
  • 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 a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin54,745 lines of code in 225 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP582,1996,3587,425
JSON4006,633
CSS142741,1924,716
JavaScript93625901,480
Sass17306291,411
Markdown32450757

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity19.10
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes69
▷ Abstract classes913.04%
▷ Concrete classes6086.96%
▷ Final classes00.00%
Methods547
▷ Static methods9116.64%
▷ Public methods45583.18%
▷ Protected methods8916.27%
▷ Private methods30.55%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
metabox/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
metabox/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
metabox/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
metabox/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
metabox/images/ico-delete.png0.70KB0.72KB0.00%