10% edutrac-authentication

Code Review | eduTrac Authentication

WordPress plugin eduTrac Authentication scored 10% from 54 tests.

About plugin

  • Plugin page: edutrac-authentic...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2.2
  • WordPress version: 6.3.1
  • First release: Sep 13, 2013
  • Latest release: May 8, 2015
  • Number of updates: 10
  • Update frequency: every 60.2 days
  • Top authors: parkerj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,152 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.05ms] Passed 4 tests

This is a short check of server-side resources used by eduTrac Authentication
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0337.05 ▼5.50
Dashboard /wp-admin3.32 ▲0.0245.53 ▼2.23
Posts /wp-admin/edit.php3.37 ▲0.0248.01 ▲1.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.37 ▲5.38
Media Library /wp-admin/upload.php3.25 ▲0.0235.59 ▲1.74
eduTrac API Settings /wp-admin/options-general.php?page=edutrac-authentication/edutrac_authentication.php3.2130.15

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
et_url
et_auth_token
theysaidso_admin_options
can_compress_scripts
et_error_msg
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for eduTrac Authentication
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.74 ▲0.071.68 ▼0.5140.78 ▼2.90
Dashboard /wp-admin2,210 ▲185.83 ▲0.9299.42 ▼21.7039.26 ▼5.44
Posts /wp-admin/edit.php2,093 ▲252.02 ▼0.0239.74 ▲4.2134.42 ▼0.01
Add New Post /wp-admin/post-new.php1,536 ▲323.23 ▼0.27611.14 ▼17.2556.97 ▲3.57
Media Library /wp-admin/upload.php1,392 ▲74.16 ▼0.0394.34 ▼4.1842.49 ▲3.76
eduTrac API Settings /wp-admin/options-general.php?page=edutrac-authentication/edutrac_authentication.php8392.0325.5934.53

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
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • et_error_msg
    • can_compress_scripts
    • et_auth_token
    • et_url
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/edutrac-authentication/edutrac_authentication.php:210

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

edutrac-authentication/edutrac_authentication.php 85% from 13 tests

The main PHP script in "eduTrac Authentication" version 1.0.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("edutrac-authentication.php" instead of "edutrac_authentication.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected208 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13230163
PO File1162045

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
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
No PNG images were found in this plugin