Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.39ms] Passed 4 tests
Server-side resources used by Format Media Titles
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.78 ▼7.70 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.18 ▼0.82 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 55.00 ▲0.95 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 92.98 ▼6.00 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.81 ▲1.56 |
Format Media Titles /wp-admin/options-general.php?page=format-media-titles/format-media-titles.php | 3.24 | 33.48 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
fmt_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Format Media Titles: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.48 ▲0.08 | 1.81 ▼0.40 | 43.12 ▼1.77 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼1.04 | 106.77 ▲1.00 | 41.43 ▼0.59 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▲0.01 | 35.93 ▼4.64 | 35.43 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.33 ▲4.91 | 691.29 ▲21.59 | 54.31 ▼13.71 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.16 ▼0.06 | 101.26 ▼0.90 | 47.38 ▲3.37 |
Format Media Titles /wp-admin/options-general.php?page=format-media-titles/format-media-titles.php | 1,034 | 2.07 | 27.88 | 53.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/format-media-titles/format-media-titles.php:31
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: media, image, tag, alt, format...
format-media-titles/format-media-titles.php Passed 13 tests
Analyzing the main PHP file in "Format Media Titles" version 1.0.0
129 characters long description:
Automatically formats the title for new media uploads. No need to manually edit the title anymore every time you upload an image!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin215 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 54 | 38 | 215 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/info.png | 0.52KB | 0.46KB | ▼ 10.55% |
images/wpgo_plugins_logo.png | 7.61KB | 3.85KB | ▼ 49.41% |
images/yt.png | 1.38KB | 1.10KB | ▼ 20.55% |
images/facebook.png | 1.89KB | 1.10KB | ▼ 41.73% |
images/twitter.png | 2.09KB | 1.30KB | ▼ 38.02% |