84% ibryl-switch-user

Code Review | Plugin Name: iBryl Switch User

WordPress plugin Plugin Name: iBryl Switch Userscored84%from 54 tests.

About plugin

  • Plugin page: ibryl-switch-user
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jul 16, 2022
  • Latest release: Jul 16, 2022
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: brilik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /204 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.01MB] [CPU: ▼9.65ms] Passed 4 tests

This is a short check of server-side resources used by Plugin Name: iBryl Switch User
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.49 ▼18.10
Dashboard /wp-admin3.31 ▲0.0138.37 ▼26.55
Posts /wp-admin/edit.php3.36 ▲0.0149.86 ▼5.99
Add New Post /wp-admin/post-new.php5.89 ▲0.01103.57 ▲16.63
Media Library /wp-admin/upload.php3.23 ▲0.0148.78 ▲12.05

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Name: iBryl Switch User
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲17313.95 ▼0.2910.84 ▲8.7665.92 ▲7.37
Dashboard /wp-admin2,203 ▲124.82 ▼0.07145.37 ▲16.9538.70 ▼14.83
Posts /wp-admin/edit.php2,092 ▲62.02 ▲0.0244.31 ▲5.2543.23 ▲6.99
Add New Post /wp-admin/post-new.php1,514 ▼517.78 ▼5.39671.22 ▼23.6556.43 ▼8.69
Media Library /wp-admin/upload.php1,385 ▼34.23 ▼0.03112.33 ▼15.9656.21 ▲0.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% 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 50% 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ISWU_Core\\plugin_dir_url() in wp-content/plugins/ibryl-switch-user/ibryl-switch-user.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Plugin Name: iBryl Switch User=== )
Please take inspiration from this readme.txt

ibryl-switch-user/ibryl-switch-user.php Passed 13 tests

The principal PHP file in "Plugin Name: iBryl Switch User" v. 1.0.1 is loaded by WordPress automatically on each request
42 characters long description:
Its mini tips for quickly switch by users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected100 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4253398
CSS1011
JavaScript1011

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.24
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin