Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.57ms] Passed 4 tests
This is a short check of server-side resources used by My Favicon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.63 ▲1.79 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.12 ▼4.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.09 ▼0.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.68 ▼18.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.57 ▲2.47 |
My Favicon * (BlueT) /wp-admin/themes.php?page=bluet-favicon | 3.17 | 32.20 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Favicon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.32 ▼1.43 | 4.44 ▲2.85 | 45.10 ▲1.26 |
Dashboard /wp-admin | 2,210 ▲25 | 5.97 ▲1.08 | 97.86 ▼13.27 | 39.27 ▼4.21 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.01 | 40.86 ▲1.57 | 36.83 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,536 ▲13 | 23.23 ▼0.03 | 664.50 ▼25.44 | 56.76 ▼6.51 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.22 ▲0.02 | 95.91 ▼7.47 | 41.42 ▼2.19 |
My Favicon * (BlueT) /wp-admin/themes.php?page=bluet-favicon | 817 | 2.17 | 28.55 | 36.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% 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/themes.php?page=bluet-favicon
- > Notice in wp-content/plugins/my-favicon/admin-page.php+23
Undefined index: favicon_file
- > GET request to /wp-admin/themes.php?page=bluet-favicon
- > Notice in wp-content/plugins/my-favicon/admin-page.php+23
Trying to access array offset on value of type null
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 take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/my-favicon/index.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-favicon/admin-page.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/themes.php?page=bluet-favicon
- > Network (severe)
wp-content/uploads/my-favicon/favicon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: images, customise, favicon
my-favicon/index.php 92% from 13 tests
Analyzing the main PHP file in "My Favicon" version 1.0
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-favicon.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin62 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 26 | 21 | 62 |
PHP code Passed 2 tests
This is a short overview 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.35 |
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 | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
There were not PNG files found in your plugin