Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.69MB] [CPU: ▼16.81ms] Passed 4 tests
This is a short check of server-side resources used by Title Icons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.26 ▼3.26 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.67 ▼8.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.25 ▲0.75 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.79 | 37.26 ▼55.80 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.52 ▲0.97 |
Title Icons /wp-admin/options-general.php?page=titleicons | 3.18 | 30.30 |
Server storage [IO: ▲0.23MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 107 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Title Icons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.33 ▼1.43 | 1.71 ▲0.04 | 42.31 ▼3.41 |
Dashboard /wp-admin | 2,207 ▲19 | 4.85 ▼1.03 | 111.20 ▲6.95 | 39.73 ▼5.06 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.97 ▼0.04 | 40.28 ▲2.06 | 35.48 ▲0.37 |
Add New Post /wp-admin/post-new.php | 6,826 ▲5,312 | 29.21 ▲11.62 | 1,082.59 ▲389.04 | 43.07 ▼6.88 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.02 | 91.49 ▼18.31 | 40.56 ▼7.68 |
Title Icons /wp-admin/options-general.php?page=titleicons | 1,102 | 1.69 | 25.09 | 138.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=titleicons
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=titleicons
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/title-icons/titleicons.php:52
- > 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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: title, posts
title-icons/titleicons.php 92% from 13 tests
This is the main PHP file of "Title Icons" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("title-icons.php" instead of "titleicons.php")
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 detected176 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 30 | 125 |
CSS | 1 | 5 | 0 | 32 |
Markdown | 1 | 5 | 0 | 11 |
JavaScript | 1 | 0 | 0 | 8 |
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.42 |
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 | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
100 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/email.png | 0.95KB | 1.13KB | 0.00% |
icons/connected.png | 0.97KB | 1.10KB | 0.00% |
icons/search.png | 0.85KB | 0.88KB | 0.00% |
icons/happy-face.png | 1.06KB | 1.24KB | 0.00% |
icons/leaves.png | 0.99KB | 0.98KB | ▼ 1.09% |