84% education-connect

Code Review | Education Connect

WordPress plugin Education Connect scored84%from 54 tests.

About plugin

  • Plugin page: education-connect
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-4.9
  • WordPress version: 6.3.1
  • First release: Feb 25, 2018
  • Latest release: Aug 13, 2018
  • Number of updates: 8
  • Update frequency: every 21.1 days
  • Top authors: thememattic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /8,029 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.78ms] Passed 4 tests

A check of server-side resources used by Education Connect
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1645.08 ▲0.44
Dashboard /wp-admin3.47 ▲0.1752.10 ▼1.61
Posts /wp-admin/edit.php3.52 ▲0.1747.45 ▼5.18
Add New Post /wp-admin/post-new.php6.08 ▲0.2098.21 ▲3.21
Media Library /wp-admin/upload.php3.40 ▲0.1744.18 ▲4.48
Testimonial Category /wp-admin/edit-tags.php?taxonomy=testimonials-category&post_type=testimonials3.3937.29
Course Category /wp-admin/edit-tags.php?taxonomy=course-category&post_type=courses3.3937.30
Add New /wp-admin/post-new.php?post_type=testimonials3.5656.91
Department /wp-admin/edit-tags.php?taxonomy=team-department&post_type=teams3.3942.54
Designation /wp-admin/edit-tags.php?taxonomy=team-designation&post_type=teams3.3938.36
All Testimonials /wp-admin/edit.php?post_type=testimonials3.4445.10
Education Connect Settings /wp-admin/options-general.php?page=education-connect-admin3.3633.51
Add New /wp-admin/post-new.php?post_type=events3.5457.66
Team Category /wp-admin/edit-tags.php?taxonomy=team-category&post_type=teams3.3940.83
All Events /wp-admin/edit.php?post_type=events3.4440.28

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
education_connect_setting_option

Browser metrics Passed 4 tests

Education Connect: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,077 ▲31613.59 ▼0.8210.85 ▲8.8345.10 ▲0.98
Dashboard /wp-admin2,358 ▲1555.85 ▲0.97104.07 ▼7.1740.78 ▼0.13
Posts /wp-admin/edit.php2,240 ▲1402.03 ▼0.0238.55 ▲0.8237.60 ▲2.99
Add New Post /wp-admin/post-new.php1,655 ▲12923.35 ▲5.79680.22 ▲16.9368.17 ▲3.48
Media Library /wp-admin/upload.php1,543 ▲1434.26 ▲0.09115.74 ▲5.0151.73 ▲2.85
Testimonial Category /wp-admin/edit-tags.php?taxonomy=testimonials-category&post_type=testimonials1,4112.1528.5530.50
Course Category /wp-admin/edit-tags.php?taxonomy=course-category&post_type=courses1,4172.1527.9332.18
Add New /wp-admin/post-new.php?post_type=testimonials2,7337.78200.7365.72
Department /wp-admin/edit-tags.php?taxonomy=team-department&post_type=teams1,4172.1528.7429.97
Designation /wp-admin/edit-tags.php?taxonomy=team-designation&post_type=teams1,4172.1532.3733.89
All Testimonials /wp-admin/edit.php?post_type=testimonials1,2632.0936.5034.93
Education Connect Settings /wp-admin/options-general.php?page=education-connect-admin9992.0726.6830.99
Add New /wp-admin/post-new.php?post_type=events2,8127.96191.5362.64
Team Category /wp-admin/edit-tags.php?taxonomy=team-category&post_type=teams1,4142.1531.4333.46
All Events /wp-admin/edit.php?post_type=events1,2632.0136.8634.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • education_connect_setting_option
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/education-connect/inc/template-parts/single-ec-courses.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/education-connect/inc/shortcodes/ec-shortcode-teams.php:157
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/education-connect/inc/shortcodes/ec-shortcode-testimonials.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/education-connect/inc/template-parts/single-ec-events.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/education-connect/inc/template-parts/archive-ec-courses.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/education-connect/inc/post-types/ec-teams.php:101
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/education-connect/inc/post-types/ec-courses.php:101
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/education-connect/inc/template-parts/archive-ec-teams.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/education-connect/inc/shortcodes/ec-shortcode-courses.php:162
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/education-connect/inc/template-parts/archive-ec-testimonials.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: meta data, custom post type

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

"Education Connect" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 268 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,829 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP212853201,765
CSS283501,393
PO File1177185405
JavaScript47496241
SVG10025

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.00
▷ Minimum class complexity9.00
▷ Maximum class complexity19.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin