10% wp-log-in-browser

Code Review | WP Log in Browser

WordPress plugin WP Log in Browser scored10%from 54 tests.

About plugin

  • Plugin page: wp-log-in-browser
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Dec 17, 2012
  • Latest release: Dec 17, 2012
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: MZAWeb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,506 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wp-log-in-browser/browsers/api/firephp/lib/FirePHPCore/FirePHP.class.php+1363
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.48MB] [CPU: ▼51.31ms] Passed 4 tests

This is a short check of server-side resources used by WP Log in Browser
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.52 ▼0.9510.45 ▼30.09
Dashboard /wp-admin2.54 ▼0.817.32 ▼52.50
Posts /wp-admin/edit.php2.54 ▼0.827.33 ▼35.87
Add New Post /wp-admin/post-new.php2.54 ▼3.357.95 ▼86.79
Media Library /wp-admin/upload.php2.54 ▼0.697.05 ▼26.11

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Log in Browser
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.014.27 ▲2.4437.39 ▼6.91
Dashboard /wp-admin2,203 ▲115.92 ▲1.03108.20 ▲0.1545.24 ▼6.17
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0240.43 ▲3.0035.90 ▲0.18
Add New Post /wp-admin/post-new.php1,549 ▲1318.53 ▼4.63615.39 ▲9.3967.77 ▲8.37
Media Library /wp-admin/upload.php1,385 ▼64.21 ▲0.0198.00 ▲2.1141.32 ▲1.36

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
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-log-in-browser/browsers/api/firephp/lib/FirePHPCore/FirePHP.class.php+1363
    Array and string offset access syntax with curly braces is deprecated
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-log-in-browser/browsers/api/firephp/examples/procedural.php
    • > /wp-content/plugins/wp-log-in-browser/browsers/api/firephp/examples/oo.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'iBrowser' not found in wp-content/plugins/wp-log-in-browser/browsers/WPFirePHP.class.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'iBrowser' not found in wp-content/plugins/wp-log-in-browser/classes/Browser.class.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-log-in-browser/classes/Browser.class.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'iBrowser' not found in wp-content/plugins/wp-log-in-browser/browsers/WPChromePHP.class.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-log-in-browser/browsers/api/firephp/tests/FirePHPCore/FirePHPTest.php:3

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-log-in-browser === )
The official readme.txt is a good inspiration

wp-log-in-browser/wp-log-in-browser.php Passed 13 tests

"WP Log in Browser" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Allows you to send debug info to your browser console.

Code Analysis 97% from 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
There were no executable files found in this plugin3,051 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP186851,9572,367
Markdown61510294
JavaScript3443187
JSON400153
XML213050

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 136)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity32.00
▷ Minimum class complexity1.00
▷ Maximum class complexity277.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity136.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods123
▷ Static methods3226.02%
▷ Public methods9678.05%
▷ Protected methods1915.45%
▷ Private methods86.50%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants27
▷ Global constants414.81%
▷ Class constants2385.19%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin