78% solpress-login

Code Review | SolPress Solana Login

WordPress plugin SolPress Solana Login scored78%from 54 tests.

About plugin

  • Plugin page: solpress-login
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2022
  • Latest release: Nov 28, 2022
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: solpressplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲0.48ms] Passed 4 tests

Analyzing server-side resources used by SolPress Solana Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.69 ▼2.86
Dashboard /wp-admin3.37 ▲0.0750.94 ▼0.35
Posts /wp-admin/edit.php3.42 ▲0.0649.14 ▲0.10
Add New Post /wp-admin/post-new.php5.97 ▲0.0893.67 ▲7.99
Media Library /wp-admin/upload.php3.29 ▲0.0636.39 ▲5.02

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

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

Browser metrics Passed 4 tests

SolPress Solana Login: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲25819.78 ▲5.5619.01 ▲16.8833.67 ▼13.16
Dashboard /wp-admin2,233 ▲457.24 ▲1.36116.75 ▲2.8939.87 ▼6.10
Posts /wp-admin/edit.php2,113 ▲214.44 ▲2.4748.54 ▲6.8831.76 ▼4.90
Add New Post /wp-admin/post-new.php1,536 ▲325.51 ▲2.49686.81 ▲7.7234.89 ▼28.69
Media Library /wp-admin/upload.php1,409 ▲216.30 ▲2.10114.16 ▲10.5842.94 ▼0.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • swl-auth-key
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/solpress-login/public/partials/solpress-wordpress-login-plugin-public-display.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/solpress-login/admin/partials/solpress-wordpress-login-plugin-admin-display-user-meta-fields.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/solpress-login/admin/partials/solpress-wordpress-login-plugin-admin-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/solpress-login/public/partials/solpress-wordpress-login-plugin-public-login-button.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 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
7 plugin tags: payment gateway, phantom, woocommerce, solana, payment...

solpress-login/solpress-wordpress-login-plugin.php 77% from 13 tests

The main PHP script in "SolPress Solana Login" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 209 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("solpress-login.php" instead of "solpress-wordpress-login-plugin.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin1,623 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP16361949949
TypeScript53928306
JSON400137
JavaScript161375110
CSS871161
Markdown132038
HTML232022

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.89
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods58
▷ Static methods23.45%
▷ Public methods5391.38%
▷ Protected methods00.00%
▷ Private methods58.62%
Functions7
▷ Named functions342.86%
▷ Anonymous functions457.14%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.03MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/front/build/logo512.png9.44KB10.35KB0.00%
public/front/public/logo512.png9.44KB10.35KB0.00%
public/front/public/logo192.png5.22KB5.57KB0.00%
public/front/build/logo192.png5.22KB5.57KB0.00%