10% credly-login

Code Review | Credly Login

WordPress plugin Credly Login scored10%from 54 tests.

About plugin

  • Plugin page: credly-login
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2013
  • Latest release: Sep 24, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: credly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,922 total downloads

Benchmarks

Plugin footprint 40% 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
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/credly-login/credly-login.php+57
    Function create_function() is deprecated

Server metrics [RAM: ▼1.90MB] [CPU: ▼57.72ms] Passed 4 tests

This is a short check of server-side resources used by Credly Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.03 ▼41.15
Dashboard /wp-admin2.11 ▼1.198.96 ▼52.66
Posts /wp-admin/edit.php2.11 ▼1.256.86 ▼48.18
Add New Post /wp-admin/post-new.php2.11 ▼3.786.02 ▼88.90
Media Library /wp-admin/upload.php2.11 ▼1.125.76 ▼32.74

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables
wp_credly_login_ids
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_credlyloginsidebar
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Credly Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲19913.50 ▼1.169.44 ▲7.7942.56 ▼2.57
Dashboard /wp-admin2,203 ▲235.65 ▲0.0597.87 ▼7.7041.24 ▼13.15
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0133.69 ▼4.2332.19 ▼2.23
Add New Post /wp-admin/post-new.php1,533 ▼223.43 ▲4.91593.48 ▼95.2751.66 ▼18.59
Media Library /wp-admin/upload.php1,399 ▲24.32 ▲0.1196.47 ▼5.0143.13 ▼2.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the credly-login-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_credlyloginsidebar
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/credly-login/credly-login.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/credly-login/widgets/credly-login-sidebar.php:8

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 Passed 29 tests

readme.txt Passed 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
8 plugin tags: login, badges, open badges, sso, openbadges...

credly-login/credly-login.php Passed 13 tests

The entry point to "Credly Login" version 1.0.0 is a PHP file that has certain tags in its header comment area
45 characters long description:
Log in to Wordpress with your Credly account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin715 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS32215413
PHP575173268
JavaScript16834

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.16
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/credly_logo_trans.png5.39KB2.05KB▼ 62.01%