Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼133.32ms] Passed 4 tests
Server-side resources used by YOURLS: WordPress to Twitter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.08 | 35.65 ▲5.74 |
Dashboard /wp-admin | 3.20 ▲0.14 | 52.15 ▲6.58 |
Posts /wp-admin/edit.php | 3.31 ▲0.20 | 47.38 ▲5.18 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 95.87 ▼537.79 |
Media Library /wp-admin/upload.php | 3.14 ▲0.13 | 32.38 ▼6.41 |
YOURLS /wp-admin/options-general.php?page=ozh_yourls | 3.09 | 25.50 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for YOURLS: WordPress to Twitter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,724 ▲128 | 15.92 ▲0.10 | 8.34 ▼0.87 | 45.07 ▼5.92 |
Dashboard /wp-admin | 2,994 ▲60 | 5.89 ▼0.07 | 133.62 ▼8.78 | 114.16 ▼3.69 |
Posts /wp-admin/edit.php | 2,760 ▲21 | 2.70 ▲0.01 | 65.50 ▲2.65 | 92.87 ▲1.52 |
Add New Post /wp-admin/post-new.php | 1,628 ▼44 | 21.67 ▲2.80 | 265.01 ▼119.74 | 102.41 ▼8.58 |
Media Library /wp-admin/upload.php | 1,831 ▲21 | 5.04 ▲0.03 | 158.41 ▲10.29 | 115.80 ▼10.49 |
YOURLS /wp-admin/options-general.php?page=ozh_yourls | 1,390 | 2.48 | 62.15 | 87.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ozh_yourls
- > Notice in wp-content/plugins/yourls-wordpress-to-twitter/inc/options.php+190
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourls-wordpress-to-twitter/inc/buddypress/bp-groups.php:100
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourls-wordpress-to-twitter/inc/buddypress/bp-members.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourls-wordpress-to-twitter/inc/buddypress/bp-members.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourls-wordpress-to-twitter/inc/buddypress/bp-admin.php:108
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yourls-wordpress-to-twitter/plugin.php:145
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (on the Write screen, you can (re)generate short URLs) image required
yourls-wordpress-to-twitter/plugin.php 92% from 13 tests
"YOURLS: WordPress to Twitter" version 1.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yourls-wordpress-to-twitter.php" instead of "plugin.php")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin1,779 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 384 | 545 | 1,122 |
PO File | 2 | 202 | 237 | 434 |
JavaScript | 2 | 38 | 17 | 181 |
CSS | 2 | 13 | 0 | 42 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 67 | |
▷ Named functions | 67 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/collapse.png | 0.33KB | 0.21KB | ▼ 35.61% |
res/exclamation.png | 0.68KB | 0.72KB | 0.00% |
res/accept.png | 0.76KB | 0.81KB | 0.00% |
res/Sign-in-with-Twitter-lighter.png | 2.43KB | 1.77KB | ▼ 27.11% |
res/expand.png | 0.35KB | 0.22KB | ▼ 38.33% |