79% free-education-helper

Code Review | Free Education Helper

WordPress plugin Free Education Helper scored 79% from 54 tests.

About plugin

  • Plugin page: free-education-he...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.6
  • WordPress version: 6.3.1
  • First release: Aug 3, 2018
  • Latest release: Aug 6, 2018
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: scorpionthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 9,561 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.97ms] Passed 4 tests

Server-side resources used by Free Education Helper
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.48 ▼5.67
Dashboard /wp-admin3.39 ▲0.0947.72 ▲1.82
Posts /wp-admin/edit.php3.44 ▲0.0950.26 ▲4.38
Add New Post /wp-admin/post-new.php5.97 ▲0.0985.13 ▼3.45
Media Library /wp-admin/upload.php3.32 ▲0.0934.87 ▼0.58
Category /wp-admin/edit-tags.php?taxonomy=event_categories&post_type=event3.3134.02
Category /wp-admin/edit-tags.php?taxonomy=testimonials_categories&post_type=testimonial3.3134.33
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=service3.3133.27
Add New /wp-admin/post-new.php?post_type=event3.4452.83
Testimonial /wp-admin/edit.php?post_type=testimonial3.3634.92
Free Education Helper /wp-admin/themes.php?page=free_education_helper3.3130.50
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=event3.3132.80
Events /wp-admin/edit.php?post_type=event3.3635.92
Category /wp-admin/edit-tags.php?taxonomy=service_categories&post_type=service3.3135.59
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=testimonial3.3134.13

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Free Education Helper: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲18313.30 ▼1.341.53 ▼0.2241.32 ▼7.33
Dashboard /wp-admin2,318 ▲1304.85 ▼1.02108.19 ▲1.1136.95 ▼5.11
Posts /wp-admin/edit.php2,198 ▲1092.01 ▼0.0939.63 ▲5.0335.21 ▲4.63
Add New Post /wp-admin/post-new.php1,623 ▲9022.95 ▼0.17659.49 ▼26.6851.90 ▼16.93
Media Library /wp-admin/upload.php1,488 ▲1004.18 ▼0.0494.93 ▼13.7244.36 ▼3.33
Category /wp-admin/edit-tags.php?taxonomy=event_categories&post_type=event1,3682.1426.5127.76
Category /wp-admin/edit-tags.php?taxonomy=testimonials_categories&post_type=testimonial1,3742.1426.0928.45
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=service1,4132.1428.2827.61
Add New /wp-admin/post-new.php?post_type=event2,4367.85173.5867.41
Testimonial /wp-admin/edit.php?post_type=testimonial1,1761.9329.4925.47
Free Education Helper /wp-admin/themes.php?page=free_education_helper8632.1923.7825.93
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=event1,4132.1426.9529.73
Events /wp-admin/edit.php?post_type=event1,1791.9330.0228.77
Category /wp-admin/edit-tags.php?taxonomy=service_categories&post_type=service1,3742.1425.7927.00
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=testimonial1,4162.1426.4030.11

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/free-education-helper/free-education-helper.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/free-education-helper/inc/Api/Callbacks/AdminCallbacks.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/free-education-helper/inc/Base/FreeEducationRepeaterController.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/free-education-helper/templates/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/free-education-helper/inc/Pages/Admin.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/free-education-helper/inc/Base/SettingsLinks.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/free-education-helper/inc/user-avatar-class.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-education-helper/inc/custom-post-types.php:107

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: themes

free-education-helper/free-education-helper.php Passed 13 tests

The main file in "Free Education Helper" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
30 characters long description:
Used for Free Education theme.

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
Good job! No executable or dangerous file extensions detected1,237 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP221753061,219
JSON20018

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods48
▷ Static methods816.67%
▷ Public methods4695.83%
▷ Protected methods00.00%
▷ Private methods24.17%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin