Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▼10.08ms] Passed 4 tests
A check of server-side resources used by Different Home for Logged IN & Logged OUT
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.56 | 40.76 ▼9.81 |
Dashboard /wp-admin | 3.90 ▲0.60 | 53.41 ▼1.17 |
Posts /wp-admin/edit.php | 3.96 ▲0.11 | 49.59 ▼5.38 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 82.78 ▼23.96 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 35.84 ▲2.11 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.02 | 36.12 |
Server storage [IO: ▲3.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 187 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_debug_mode |
can_compress_scripts |
widget_theysaidso_widget |
fs_active_plugins |
db_upgraded |
theysaidso_admin_options |
fs_accounts |
page_for_logged_in |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Different Home for Logged IN & Logged OUT: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.72 ▲0.71 | 1.94 ▲0.41 | 35.85 ▼9.38 |
Dashboard /wp-admin | 2,224 ▲46 | 5.58 ▼0.09 | 82.58 ▼29.86 | 40.13 ▼1.87 |
Posts /wp-admin/edit.php | 2,139 ▲36 | 2.00 ▼0.01 | 32.48 ▼6.80 | 36.68 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,541 ▲10 | 23.34 ▲0.49 | 654.47 ▲35.38 | 66.48 ▲3.56 |
Media Library /wp-admin/upload.php | 1,432 ▲38 | 4.19 ▼0.01 | 96.92 ▼2.76 | 48.32 ▲7.05 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,063 | 1.70 | 25.37 | 25.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-posts
- fs_debug_mode
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- fs_accounts
- fs_active_plugins
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/different-home-for-logged-in-logged-out/inc/admin-menu-render.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/different-home-for-logged-in-logged-out/diff-home-functions.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (Admin View)
different-home-for-logged-in-logged-out/diff-home.php 85% from 13 tests
The main PHP script in "Different Home for Logged IN & Logged OUT" version 1.3.4 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("different-home-for-logged-in-logged-out.php" instead of "diff-home.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected33,514 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 8,013 | 17,225 | 33,077 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
XML | 1 | 3 | 0 | 16 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 93.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 198 | 15.73% |
▷ Public methods | 869 | 69.02% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 373 | 29.63% |
Functions | 104 | |
▷ Named functions | 103 | 99.04% |
▷ Anonymous functions | 1 | 0.96% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/vendor/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
inc/vendor/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |