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.25MB] [CPU: ▼3.11ms] Passed 4 tests
This is a short check of server-side resources used by Remember Me Controls
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 49.59 ▲7.72 |
Dashboard /wp-admin | 3.56 ▲0.26 | 49.58 ▼3.95 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 47.19 ▼2.11 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 81.62 ▼10.31 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 37.13 ▲3.92 |
Remember Me /wp-admin/options-general.php?page=remember-me-controls/remember-me-controls.php | 3.46 | 33.84 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Remember Me Controls: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▼0.08 | 1.79 ▲0.13 | 44.32 ▼0.16 |
Dashboard /wp-admin | 2,207 ▲19 | 4.84 ▼0.22 | 110.09 ▼8.94 | 48.37 ▲4.92 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.00 | 35.09 ▼0.36 | 35.03 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.27 ▲2.21 | 668.95 ▼11.00 | 56.09 ▼1.45 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.23 ▼0.01 | 95.80 ▼5.33 | 44.59 ▲4.67 |
Remember Me /wp-admin/options-general.php?page=remember-me-controls/remember-me-controls.php | 999 | 2.08 | 23.23 | 36.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/remember-me-controls/tests/phpunit/bootstrap.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/remember-me-controls/tests/phpunit/bootstrap.php on line 29
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/remember-me-controls/tests/phpunit/bootstrap.php on line 29
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: session, remember me, cookie, remember, login...
remember-me-controls/remember-me-controls.php Passed 13 tests
"Remember Me Controls" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
136 characters long description:
Have "Remember Me" checked by default on the login page and configure how long a login is remembered. Or disable the feature altogether.
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 plugin1,963 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 394 | 733 | 1,567 |
Markdown | 3 | 54 | 0 | 361 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 46.25 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 1 | 33.33% |
Methods | 155 | |
▷ Static methods | 7 | 4.52% |
▷ Public methods | 140 | 90.32% |
▷ Protected methods | 15 | 9.68% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
c2c_minilogo.png | 3.49KB | 1.91KB | ▼ 45.43% |