68% mamurjor-student-result

Code Review | mamurjor student result

WordPress plugin mamurjor student result scored68%from 54 tests.

About plugin

  • Plugin page: mamurjor-student-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Apr 29, 2020
  • Latest release: May 6, 2020
  • Number of updates: 9
  • Update frequency: every 0.8 days
  • Top authors: mamurjor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /998 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲5.44ms] Passed 4 tests

An overview of server-side resources used by mamurjor student result
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0346.78 ▲6.48
Dashboard /wp-admin3.34 ▲0.0352.15 ▲2.06
Posts /wp-admin/edit.php3.39 ▲0.0357.17 ▲10.07
Add New Post /wp-admin/post-new.php5.92 ▲0.03102.68 ▲3.14
Media Library /wp-admin/upload.php3.26 ▲0.0344.79 ▲12.27
student department /wp-admin/admin.php?page=studentdepartment3.2239.19
student salary Print /wp-admin/admin.php?page=studentsalaryprint3.0733.41
student salary /wp-admin/admin.php?page=studentsalary3.2241.53
Last studenteducation Info /wp-admin/admin.php?page=studentedu3.2237.89
Student Info /wp-admin/admin.php?page=student3.2238.90
student section /wp-admin/admin.php?page=studentsection3.2238.73
student fees /wp-admin/admin.php?page=studentfees3.2237.49

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: 7 new tables, 6 new options
New tables
wp_mamurjor_student_department
wp_result
wp_mamurjor_student_education
wp_mamurjor_student_fees
wp_mamurjor_student_info
wp_student_monthly_salary
wp_mamurjor_student_section
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

mamurjor student result: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,001 ▲24413.56 ▼0.838.59 ▲6.5543.12 ▼5.60
Dashboard /wp-admin2,299 ▲1114.87 ▼1.04108.48 ▼1.4740.70 ▼2.99
Posts /wp-admin/edit.php2,182 ▲932.03 ▼0.0138.70 ▼3.2239.24 ▲3.58
Add New Post /wp-admin/post-new.php1,745 ▲20722.64 ▲4.30612.83 ▼8.3141.13 ▼16.00
Media Library /wp-admin/upload.php1,481 ▲964.16 ▼0.0297.41 ▼15.4947.84 ▼1.22
student department /wp-admin/admin.php?page=studentdepartment9122.0624.9229.80
student salary Print /wp-admin/admin.php?page=studentsalaryprint280.440.134.01
student salary /wp-admin/admin.php?page=studentsalary1,0192.0324.1125.78
Last studenteducation Info /wp-admin/admin.php?page=studentedu9332.0423.6429.32
Student Info /wp-admin/admin.php?page=student1,0172.0623.9630.73
student section /wp-admin/admin.php?page=studentsection9122.0424.3228.78
student fees /wp-admin/admin.php?page=studentfees9242.0623.9729.55

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
It is recommended to fix the following
  • The uninstall procedure failed, leaving 7 tables in the database
    • wp_mamurjor_student_education
    • wp_mamurjor_student_department
    • wp_mamurjor_student_info
    • wp_mamurjor_student_fees
    • wp_result
    • wp_mamurjor_student_section
    • wp_student_monthly_salary
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 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)
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mamurjor-student-result/admin/partials/mamurjor_student_result-admin-display.php
    • > /wp-content/plugins/mamurjor-student-result/public/partials/mamurjor_student_result-public-display.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=studentsalaryprint
    • > Network (severe)
    wp-admin/admin.php?page=studentsalaryprint - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: student result, roll, class

mamurjor-student-result/mamurjor_student_result.php 85% from 13 tests

This is the main PHP file of "mamurjor student result" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("mamurjor-student-result.php" instead of "mamurjor_student_result.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin10,361 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,2715,9405,310
CSS113762413,581
PHP197125741,470

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/details_open.png0.86KB0.80KB▼ 6.92%