Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.61MB] [CPU: ▲6.00ms] Passed 4 tests
Server-side resources used by Keyring
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 46.61 ▲2.62 |
Dashboard /wp-admin | 3.94 ▲0.64 | 54.45 ▲3.96 |
Posts /wp-admin/edit.php | 3.99 ▲0.64 | 54.36 ▲10.51 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 98.99 ▲10.72 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 42.66 ▲6.92 |
Keyring /wp-admin/tools.php?page=keyring | 3.77 | 36.29 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Keyring
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.26 ▼1.39 | 2.16 ▲0.00 | 46.47 ▲0.02 |
Dashboard /wp-admin | 2,207 ▲16 | 4.85 ▼0.05 | 121.97 ▲6.46 | 47.63 ▲1.56 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.01 ▲0.04 | 44.05 ▲9.40 | 39.32 ▲2.26 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.40 ▼0.22 | 671.05 ▼17.54 | 101.68 ▲49.91 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▲0.05 | 108.66 ▲8.06 | 46.46 ▲2.59 |
Keyring /wp-admin/tools.php?page=keyring | 841 | 2.02 | 28.91 | 30.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 49× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Keyring_Service_OAuth2' not found in wp-content/plugins/keyring/includes/services/extended/runkeeper.php:8
- > PHP Fatal error
Uncaught Error: Class 'Keyring_Service_OAuth1' not found in wp-content/plugins/keyring/includes/services/extended/500px.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/keyring/store.php:53
- > PHP Fatal error
Uncaught Error: Class 'Keyring_Service_OAuth1' not found in wp-content/plugins/keyring/includes/services/extended/yahoo.php:7
- > PHP Fatal error
Uncaught Error: Class 'Keyring_Service_OAuth2' not found in wp-content/plugins/keyring/includes/services/extended/fitbit.php:8
- > PHP Fatal error
Uncaught Error: Class 'Keyring_Service_OAuth2' not found in wp-content/plugins/keyring/includes/services/extended/nest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/keyring/includes/oauth-php/tests/OAuthSignatureMethodRsaSha1Test.php:7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/keyring/admin-ui.php on line 270
- > PHP Fatal error
Uncaught Error: Class 'Keyring_Service_OAuth1' not found in wp-content/plugins/keyring/includes/services/extended/tumblr.php:7
- > PHP Fatal error
Uncaught Error: Class 'Keyring_Service_OAuth1' not found in wp-content/plugins/keyring/includes/services/extended/twitter.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: twitter, http basic, security, oauth, authentication...
keyring/keyring.php 92% from 13 tests
The main PHP script in "Keyring" version 3.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 320 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin6,297 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 1,277 | 1,084 | 5,796 |
PO File | 1 | 119 | 134 | 403 |
XML | 2 | 14 | 17 | 63 |
JSON | 1 | 0 | 0 | 19 |
Markdown | 1 | 1 | 0 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 4 | 5.88% |
▷ Concrete classes | 64 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 448 | |
▷ Static methods | 38 | 8.48% |
▷ Public methods | 436 | 97.32% |
▷ Protected methods | 2 | 0.45% |
▷ Private methods | 10 | 2.23% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 82 | |
▷ Global constants | 7 | 8.54% |
▷ Class constants | 75 | 91.46% |
▷ Public constants | 75 | 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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/pocket.png | 7.34KB | 3.54KB | ▼ 51.77% |