Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/tbm-google-url-shortener/tbm-google-url-shortener.php+41
Methods with the same name as their class will not be constructors in a future version of PHP; GoogleUrlApi has a deprecated constructor
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.75ms] Passed 4 tests
Server-side resources used by TBM Google URL Shortener
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.41 ▼2.30 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.31 ▼13.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.11 ▼11.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.50 ▼11.97 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 43.37 ▲6.20 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_tbmurlshortener |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
TBM Google URL Shortener: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.26 ▲0.12 | 1.73 ▲0.00 | 44.12 ▲1.38 |
Dashboard /wp-admin | 2,198 ▲18 | 5.65 ▼0.01 | 97.55 ▲10.08 | 75.84 ▲39.15 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.02 ▲0.01 | 34.30 ▼5.42 | 36.93 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,692 ▲166 | 22.17 ▼1.47 | 837.96 ▲118.05 | 55.24 ▼14.08 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.12 ▼0.07 | 96.14 ▼23.38 | 71.63 ▲21.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_tbmurlshortener
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (/assets/screenshot-1.png), #2 (/assets/screenshot-2.png), #3 (/assets/screenshot-3.png)
tbm-google-url-shortener/tbm-google-url-shortener.php 92% from 13 tests
This is the main PHP file of "TBM Google URL Shortener" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 258 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected138 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 11 | 16 | 138 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 0.39KB | 0.52KB | 0.00% |
assets/screenshot-2.png | 10.02KB | 6.47KB | ▼ 35.43% |
assets/screenshot-3.png | 23.38KB | 13.36KB | ▼ 42.87% |
assets/screenshot-1.png | 5.90KB | 3.86KB | ▼ 34.59% |