72% educare

Code Review | Educare - Students & Result Management System

WordPress plugin Educare - Students & Result Management System scored72%from 54 tests.

About plugin

  • Plugin page: educare
  • Plugin version: 1.4.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2021
  • Latest release: Sep 9, 2023
  • Number of updates: 57
  • Update frequency: every 12.0 days
  • Top authors: fixbd (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

800+ active /9,452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.85MB] [CPU: ▲2.44ms] Passed 4 tests

This is a short check of server-side resources used by Educare - Students & Result Management System
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.29 ▲0.8346.77 ▲8.15
Dashboard /wp-admin4.15 ▲0.8557.84 ▲10.11
Posts /wp-admin/edit.php4.27 ▲0.9154.28 ▲0.42
Add New Post /wp-admin/post-new.php6.75 ▲0.8687.45 ▼8.92
Media Library /wp-admin/upload.php4.08 ▲0.8547.24 ▲10.58
About Us /wp-admin/admin.php?page=educare-about-us4.0847.47
Settings /wp-admin/admin.php?page=educare-settings4.0858.64
All Students /wp-admin/admin.php?page=educare-all-students4.0857.64
Performance /wp-admin/admin.php?page=educare-performance4.0643.90
All Results /wp-admin/admin.php?page=educare-all-results4.0852.87
Mark Sheed /wp-admin/admin.php?page=educare-mark-sheed4.0853.47
Management /wp-admin/admin.php?page=educare-management4.0847.09

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 39 new files
Database: 4 new tables, 6 new options
New tables
wp_educare_results
wp_educare_marks
wp_educare_settings
wp_educare_students
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Educare - Students & Result Management System
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲18514.61 ▲0.3319.21 ▲17.0141.42 ▲1.57
Dashboard /wp-admin2,263 ▲895.62 ▼0.0389.86 ▼10.6742.18 ▲1.60
Posts /wp-admin/edit.php2,168 ▲652.05 ▲0.0937.40 ▼2.3834.96 ▼2.36
Add New Post /wp-admin/post-new.php1,574 ▲4818.19 ▼4.83673.77 ▲7.1871.11 ▲15.13
Media Library /wp-admin/upload.php1,465 ▲684.20 ▲0.0398.07 ▼7.7043.73 ▼2.14
About Us /wp-admin/admin.php?page=educare-about-us1,8083.1450.1575.31
Settings /wp-admin/admin.php?page=educare-settings1,9673.4745.3853.45
All Students /wp-admin/admin.php?page=educare-all-students1,6893.2747.7241.41
Performance /wp-admin/admin.php?page=educare-performance1,6213.3144.7359.29
All Results /wp-admin/admin.php?page=educare-all-results1,6913.2646.5728.78
Mark Sheed /wp-admin/admin.php?page=educare-mark-sheed1,5543.3241.6556.32
Management /wp-admin/admin.php?page=educare-management1,6093.5343.4969.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • 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 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=educare-performance
    • > Notice in wp-content/plugins/educare/includes/functions.php+7023
    Undefined variable: Class
    • > GET request to /wp-admin/admin.php?page=educare-performance
    • > Notice in wp-content/plugins/educare/includes/functions.php+7027
    Undefined variable: Year
    • > GET request to /wp-admin/admin.php?page=educare-performance
    • > Notice in wp-content/plugins/educare/includes/functions.php+7032
    Undefined variable: Group
    • > GET request to /wp-admin/admin.php?page=educare-performance
    • > Notice in wp-content/plugins/educare/includes/functions.php+7045
    Undefined variable: Promoted_Class
    • > GET request to /wp-admin/admin.php?page=educare-performance
    • > Notice in wp-content/plugins/educare/includes/functions.php+7050
    Undefined variable: Promoted_Year
    • > GET request to /wp-admin/admin.php?page=educare-performance
    • > Notice in wp-content/plugins/educare/includes/functions.php+7055
    Undefined variable: Promoted_Group
    • > GET request to /wp-admin/admin.php?page=educare-performance
    • > Notice in wp-content/plugins/educare/includes/functions.php+7061
    Undefined variable: Promoted_Exam

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'EDUCARE_INCdatabase/default-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/educare/includes/database/educare-database.php on line 3
    • > PHP Warning
      require_once(EDUCARE_INCdatabase/default-settings.php): failed to open stream: No such file or directory in wp-content/plugins/educare/includes/database/educare-database.php on line 3
    • > PHP Warning
      Use of undefined constant EDUCARE_INC - assumed 'EDUCARE_INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/educare/includes/database/educare-database.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=educare-management
    • > Javascript (severe) in unknown
    /wp-content/plugins/educare/assets/js/educare.js?ver=1.0 1052:53 Uncaught TypeError: Cannot read properties of null (reading 'value')
    • > GET request to /wp-admin/admin.php?page=educare-mark-sheed
    • > Javascript (severe) in unknown
    /wp-content/plugins/educare/assets/js/paginate.js?ver=6.3.1 162:22 Uncaught Error: Element .view_results no exits

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

educare/Educare.php 77% from 13 tests

The primary PHP file in "Educare - Students & Result Management System" version 1.4.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: The description should be shorter than 140 characters (currently 434 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("educare.php" instead of "Educare.php")

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
Success! There were no dangerous files found in this plugin8,566 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP181,5942,1015,454
CSS3169771,441
JavaScript42012721,244
SVG8172278
Markdown1580149

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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
Namespaces0
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%
Functions90
▷ Named functions8998.89%
▷ Anonymous functions11.11%
Constants11
▷ Global constants11100.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
No PNG images were found in this plugin