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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.52 ▼0.95 | 10.45 ▼30.09 |
Dashboard /wp-admin | 2.54 ▼0.81 | 7.32 ▼52.50 |
Posts /wp-admin/edit.php | 2.54 ▼0.82 | 7.33 ▼35.87 |
Add New Post /wp-admin/post-new.php | 2.54 ▼3.35 | 7.95 ▼86.79 |
Media Library /wp-admin/upload.php | 2.54 ▼0.69 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.28 ▼1.01 | 4.27 ▲2.44 | 37.39 ▼6.91 |
Dashboard /wp-admin | 2,203 ▲11 | 5.92 ▲1.03 | 108.20 ▲0.15 | 45.24 ▼6.17 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.02 | 40.43 ▲3.00 | 35.90 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,549 ▲13 | 18.53 ▼4.63 | 615.39 ▲9.39 | 67.77 ▲8.37 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.21 ▲0.01 | 98.00 ▲2.11 | 41.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
- > PHP Fatal error
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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 685 | 1,957 | 2,367 |
Markdown | 6 | 151 | 0 | 294 |
JavaScript | 3 | 44 | 3 | 187 |
JSON | 4 | 0 | 0 | 153 |
XML | 2 | 13 | 0 | 50 |
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 code | 0.51 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 277.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 136.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 32 | 26.02% |
▷ Public methods | 96 | 78.05% |
▷ Protected methods | 19 | 15.45% |
▷ Private methods | 8 | 6.50% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 4 | 14.81% |
▷ Class constants | 23 | 85.19% |
▷ Public constants | 23 | 100.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