10% jwt-ssolo

Code Review | JWT SSOLO plugin

WordPress plugin JWT SSOLO plugin scored10%from 54 tests.

About plugin

  • Plugin page: jwt-ssolo
  • Plugin version: 1.5.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Mar 27, 2020
  • Latest release: May 14, 2020
  • Number of updates: 12
  • Update frequency: every 4.7 days
  • Top authors: marcofrl1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /567 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/jwt-ssolo/jwtlogin.php+257
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼2.02MB] [CPU: ▼55.24ms] Passed 4 tests

Server-side resources used by JWT SSOLO plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0245.16 ▼10.14
Dashboard /wp-admin2.05 ▼1.265.62 ▼41.00
Posts /wp-admin/edit.php2.05 ▼1.805.87 ▼48.72
Add New Post /wp-admin/post-new.php2.05 ▼3.845.60 ▼103.73
Media Library /wp-admin/upload.php2.05 ▼1.185.94 ▼27.51

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for JWT SSOLO plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.33 ▼1.042.80 ▲0.7254.53 ▲6.07
Dashboard /wp-admin2,225 ▲375.79 ▲0.89114.33 ▼0.8446.04 ▲2.27
Posts /wp-admin/edit.php2,111 ▲221.96 ▼0.0237.20 ▲0.3538.44 ▲4.60
Add New Post /wp-admin/post-new.php1,435 ▼8422.60 ▼0.39625.96 ▼30.9895.13 ▲25.59
Media Library /wp-admin/upload.php1,410 ▲224.18 ▼0.00100.25 ▼13.7847.07 ▲3.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/jwt-ssolo/jwtlogin.php+257
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      include(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/jwt-ssolo/options.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/jwt-ssolo/options.php:139
    • > PHP Warning
      include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/jwt-ssolo/options.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/jwt-ssolo/options.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jwt-ssolo/jwtlogin.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === jwt-ssolo === )
  • Donate link: Invalid URI ("")
  • Screenshots: Please a description for screenshot #1 in jwt-ssolo/assets to your readme.txt
The official readme.txt is a good inspiration

jwt-ssolo/jwtlogin.php 92% from 13 tests

This is the main PHP file of "JWT SSOLO plugin" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("jwt-ssolo.php" instead of "jwtlogin.php")

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
Everything looks great! No dangerous files found in this plugin705 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5241165704
HTML1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity5.00
▷ Maximum class complexity9.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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