Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.36MB] [CPU: ▲4.53ms] Passed 4 tests
An overview of server-side resources used by TinyPress - Shorten and Track your urls
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 46.07 ▲7.76 |
Dashboard /wp-admin | 3.66 ▲0.35 | 53.84 ▲9.17 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 53.10 ▲2.19 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 99.79 ▲0.01 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 38.33 ▲8.16 |
Settings /wp-admin/edit.php?post_type=tinypress_link&page=settings | 3.63 | 42.48 |
Add Link /wp-admin/post-new.php?post_type=tinypress_link | 3.75 | 54.39 |
All Links /wp-admin/edit.php?post_type=tinypress_link | 3.65 | 46.43 |
Categories /wp-admin/edit-tags.php?taxonomy=tinypress_link_cat&post_type=tinypress_link | 3.60 | 42.90 |
Logs /wp-admin/edit.php?post_type=tinypress_link&page=tinypress-logs | 3.62 | 37.28 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 108 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_tinypress_reports |
New WordPress options |
---|
tinypress |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for TinyPress - Shorten and Track your urls
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲104 | 13.81 ▼0.54 | 1.72 ▲0.11 | 38.05 ▼9.68 |
Dashboard /wp-admin | 2,262 ▲85 | 5.64 ▲0.01 | 101.10 ▲4.01 | 37.94 ▼4.89 |
Posts /wp-admin/edit.php | 2,385 ▲285 | 4.59 ▲2.65 | 92.46 ▲50.24 | 44.31 ▲4.22 |
Add New Post /wp-admin/post-new.php | 6,329 ▲4,803 | 19.88 ▼1.21 | 972.34 ▲312.01 | 48.90 ▼14.73 |
Media Library /wp-admin/upload.php | 1,461 ▲61 | 5.17 ▲0.98 | 91.41 ▼21.41 | 41.40 ▼1.81 |
Settings /wp-admin/edit.php?post_type=tinypress_link&page=settings | 1,451 | 4.58 | 70.91 | 53.30 |
Add Link /wp-admin/post-new.php?post_type=tinypress_link | 2,088 | 5.39 | 130.28 | 45.12 |
All Links /wp-admin/edit.php?post_type=tinypress_link | 1,309 | 4.35 | 64.37 | 29.72 |
Categories /wp-admin/edit-tags.php?taxonomy=tinypress_link_cat&post_type=tinypress_link | 1,536 | 4.34 | 60.65 | 32.57 |
Logs /wp-admin/edit.php?post_type=tinypress_link&page=tinypress-logs | 1,160 | 4.10 | 56.87 | 24.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_tinypress_reports
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- tinypress
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tinypress/templates/admin/settings/supports.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tinypress/templates/admin/settings/browsers.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/tinypress/templates/admin/analytics.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tinypress/templates/admin/qr-code.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPDK_Settings_Abstract' not found in wp-content/plugins/tinypress/includes/wpdk/settings/classes/admin-options.class.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tinypress/includes/classes/class-columns-link.php:16
- > PHP Fatal error
Uncaught Error: Class 'WPDK_Settings_Abstract' not found in wp-content/plugins/tinypress/includes/wpdk/settings/classes/fields.class.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in tinypress/assets to your readme.txt
tinypress/tinypress.php Passed 13 tests
The principal PHP file in "TinyPress - Shorten and Track your urls" v. 1.2.1 is loaded by WordPress automatically on each request
54 characters long description:
No more long URL, Shorten and track it with TinyPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin21,772 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 3,107 | 1,998 | 9,319 |
JavaScript | 8 | 1,353 | 561 | 6,860 |
CSS | 6 | 1,029 | 546 | 5,496 |
SVG | 3 | 0 | 1 | 84 |
Markdown | 1 | 8 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 24.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 5.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 73 | |
▷ Abstract classes | 2 | 2.74% |
▷ Concrete classes | 71 | 97.26% |
▷ Final classes | 0 | 0.00% |
Methods | 356 | |
▷ Static methods | 50 | 14.04% |
▷ Public methods | 338 | 94.94% |
▷ Protected methods | 1 | 0.28% |
▷ Private methods | 17 | 4.78% |
Functions | 34 | |
▷ Named functions | 30 | 88.24% |
▷ Anonymous functions | 4 | 11.76% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/wpdk/settings/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |