68% education-addon

Code Review | Education Addon for Elementor

WordPress plugin Education Addon for Elementor scored68%from 54 tests.

About plugin

  • Plugin page: education-addon
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: May 11, 2021
  • Latest release: Jun 27, 2022
  • Number of updates: 7
  • Update frequency: every 59.0 days
  • Top authors: nicheaddons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /5,313 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: ▲4.80MB] [CPU: ▼25.42ms] Passed 4 tests

Server-side resources used by Education Addon for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.78 ▲5.3233.96 ▼7.35
Dashboard /wp-admin8.80 ▲5.5037.49 ▼11.56
Posts /wp-admin/edit.php8.80 ▲5.4542.83 ▼10.82
Add New Post /wp-admin/post-new.php8.80 ▲2.9237.76 ▼71.93
Media Library /wp-admin/upload.php8.80 ▲5.5844.06 ▲7.33
Education Addon /wp-admin/admin.php?page=naedu_admin_page8.8040.44
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.8038.63
Enable & Disable /wp-admin/admin.php?page=naedu_admin_sub_page8.8036.71

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 302 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
fs_accounts
widget_theysaidso_widget
fs_active_plugins
db_upgraded
fs_debug_mode
widget_recent-posts
fs_gdpr
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Education Addon for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,021 ▲27513.72 ▼0.667.48 ▲5.5232.86 ▼8.24
Dashboard /wp-admin2,286 ▲1105.84 ▲0.95117.51 ▲2.1748.23 ▲4.67
Posts /wp-admin/edit.php2,169 ▲802.02 ▼0.0338.62 ▼4.2934.36 ▼0.78
Add New Post /wp-admin/post-new.php1,568 ▲2623.26 ▲4.90654.41 ▲33.2149.77 ▼10.04
Media Library /wp-admin/upload.php1,465 ▲774.25 ▼0.01100.83 ▼10.0749.23 ▲2.71
Education Addon /wp-admin/admin.php?page=naedu_admin_page1,2481.8033.9553.41
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,0761.6926.8825.57
Enable & Disable /wp-admin/admin.php?page=naedu_admin_sub_page1,2872.0726.1030.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/education-addon/elementor/em-setup.php+58
    Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 10 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • fs_debug_mode
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • fs_accounts
    • fs_gdpr
    • theysaidso_admin_options
    • fs_active_plugins

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=naedu_admin_sub_page
    • > Warning in wp-content/plugins/education-addon/elementor/em-setup.php+58
    Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP)

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
The following issues need your attention
  • 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/education-addon/elementor/widgets/basic/nabasic-events.php:9
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/education-addon/education-addon.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/education-addon/elementor/widgets/basic/nabasic-sensei-category.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/education-addon/elementor/widgets/basic/nabasic-pricing-table.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/education-addon/elementor/widgets/basic/nabasic-courses-carousel.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/education-addon/elementor/widgets/basic/nabasic-process.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/education-addon/elementor/widgets/basic/nabasic-instructor.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/education-addon/elementor/widgets/basic/nabasic-appointment.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/education-addon/elementor/widgets/basic/nabasic-step-flow.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\get_option() in wp-content/plugins/education-addon/elementor/widgets/basic/nabasic-blog.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% 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
9 plugin tags: student, education, online courses, school, learning management system...

education-addon/education-addon.php 92% from 13 tests

The main PHP file in "Education Addon for Elementor" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)

Code Analysis 97% from 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 plugin85,918 lines of code in 206 files:
LanguageFilesBlank linesComment linesLines of code
PHP1448,24517,14749,933
CSS302,99323620,970
SVG1581310,884
JavaScript127911,3213,887
Markdown1680214
JSON40030

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity67.34
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes76
▷ Abstract classes22.63%
▷ Concrete classes7497.37%
▷ Final classes00.00%
Methods1,315
▷ Static methods18113.76%
▷ Public methods91969.89%
▷ Protected methods715.40%
▷ Private methods32524.71%
Functions151
▷ Named functions14998.68%
▷ Anonymous functions21.32%
Constants125
▷ Global constants9878.40%
▷ Class constants2721.60%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png8.46KB4.21KB▼ 50.21%
assets/images/process2.png2.45KB1.93KB▼ 21.00%
assets/images/mc4wp-ico.png0.94KB0.17KB▼ 81.59%
freemius/assets/img/theme-icon.png8.46KB4.21KB▼ 50.21%
assets/images/product-bg.png0.95KB0.11KB▼ 88.89%