Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼2.60ms] Passed 4 tests
Analyzing server-side resources used by TLDR
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 47.14 ▲7.80 |
Dashboard /wp-admin | 3.53 ▲0.23 | 51.68 ▲2.82 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 57.58 ▲1.08 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 88.67 ▼12.48 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.22 ▼1.81 |
Server storage [IO: ▲2.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TLDR
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,052 ▲306 | 15.18 ▲0.77 | 5.96 ▲4.28 | 41.19 ▲0.96 |
Dashboard /wp-admin | 2,373 ▲192 | 6.39 ▲0.73 | 108.95 ▲10.36 | 38.16 ▼4.43 |
Posts /wp-admin/edit.php | 2,301 ▲201 | 3.56 ▲1.53 | 51.34 ▲9.67 | 30.83 ▼8.07 |
Add New Post /wp-admin/post-new.php | 1,773 ▲245 | 21.12 ▼1.92 | 667.09 ▼23.88 | 48.10 ▼5.31 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.30 ▲0.14 | 95.99 ▼5.34 | 45.83 ▲2.32 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- 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
Good news, no errors were detected
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tldr-cta/admin/partials/templates/post-summary-cta.tpl.php:7
- > PHP Notice
Undefined variable: cta_summary in wp-content/plugins/tldr-cta/admin/partials/templates/post-summary-cta.tpl.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tldr-cta/admin/partials/templates/admin-settings.tpl.php:3
- > PHP Notice
Undefined variable: do_not_display_summary in wp-content/plugins/tldr-cta/admin/partials/templates/post-summary.tpl.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tldr-cta/admin/partials/templates/post-summary.tpl.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (TLDR plugin in action on my blog.), #2 (Summary meta box that can be found below each of your blog posts within WordPress admin.), #3 (CTA meta box that can be found below each of your blog posts within WordPress admin.), #4 (TLDR being activated within a blog post to show a summary and relevant CTA.), #5 (Some of the customisation options within the plugin settings page.)
tldr-cta/post-summary.php 85% from 13 tests
The primary PHP file in "TLDR" version 1.1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tldr-cta.php" instead of "post-summary.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,038 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 1,602 |
PHP | 15 | 291 | 640 | 1,027 |
JavaScript | 3 | 41 | 66 | 219 |
CSS | 2 | 50 | 10 | 190 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 2 | 4.55% |
▷ Public methods | 39 | 88.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.36% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.93MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 334.61KB | 117.70KB | ▼ 64.83% |
assets/banner-772x250.png | 29.66KB | 5.69KB | ▼ 80.83% |
screenshot-3.png | 128.52KB | 38.75KB | ▼ 69.85% |
screenshot-4.png | 172.33KB | 68.66KB | ▼ 60.16% |
screenshot-5.png | 204.98KB | 60.94KB | ▼ 70.27% |