90% hivepress-authentication

Code Review | HivePress Authentication

WordPress plugin HivePress Authentication scored90%from 54 tests.

About plugin

  • Plugin page: hivepress-authent...
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Oct 16, 2019
  • Latest release: Nov 28, 2021
  • Number of updates: 15
  • Update frequency: every 51.5 days
  • Top authors: hivepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /18,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.94ms] Passed 4 tests

An overview of server-side resources used by HivePress Authentication
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0032.40 ▼5.55
Dashboard /wp-admin3.31 ▲0.0140.32 ▼5.78
Posts /wp-admin/edit.php3.37 ▲0.0047.57 ▲0.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0079.21 ▼12.52
Media Library /wp-admin/upload.php3.24 ▲0.0034.70 ▲0.11

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

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

Browser metrics Passed 4 tests

HivePress Authentication: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.131.57 ▲0.0739.06 ▼1.13
Dashboard /wp-admin2,198 ▲205.62 ▲0.0396.59 ▼4.0042.53 ▲1.75
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0939.62 ▲2.6935.70 ▼3.25
Add New Post /wp-admin/post-new.php1,526 ▼022.91 ▼1.02684.99 ▲22.3758.85 ▲9.77
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0494.65 ▼4.4641.03 ▼4.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: hivepress, classifieds, listings, authentication, directory

hivepress-authentication/hivepress-authentication.php Passed 13 tests

The main PHP script in "HivePress Authentication" version 1.1.4 is automatically included on every request by WordPress
48 characters long description:
Allow users to sign in via third-party services.

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
Everything looks great! No dangerous files found in this plugin347 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP799171310
JavaScript25337

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity7.50
▷ Minimum class complexity4.00
▷ Maximum class complexity12.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes4100.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
PNG images were not found in this plugin