Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.40ms] Passed 4 tests
Server-side resources used by Bitly URL Generator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.23 ▼6.20 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.56 ▼4.24 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.95 ▼1.76 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.17 ▼9.41 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.37 ▲6.97 |
Bitly /wp-admin/options-general.php?page=bitly-settings | 3.23 | 28.27 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Bitly URL Generator: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.07 | 1.57 ▼0.51 | 39.23 ▼5.01 |
Dashboard /wp-admin | 2,196 ▲19 | 5.62 ▼0.00 | 94.37 ▼3.68 | 42.87 ▼1.05 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▲0.05 | 37.81 ▼4.17 | 33.13 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.16 ▲4.99 | 673.10 ▼7.38 | 57.97 ▼20.35 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.20 ▲0.06 | 103.73 ▼4.67 | 43.47 ▲1.97 |
Bitly /wp-admin/options-general.php?page=bitly-settings | 806 | 2.03 | 27.13 | 28.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/bitly-url-generator/bitly-url-generator.php:110
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
bitly-url-generator/bitly-url-generator.php Passed 13 tests
The primary PHP file in "Bitly URL Generator" version 1.0 is used by WordPress to initiate all plugin functionality
85 characters long description:
Uses bitly API to get shortened url for a post on publish and saves url as meta data.
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
No dangerous file extensions were detected155 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 55 | 68 | 148 |
Markdown | 1 | 2 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin