Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/phpsword-favicon-manager/index.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; PhpswFaviconManager has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼56.17ms] Passed 4 tests
Analyzing server-side resources used by Pk Favicon Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.07 ▼35.23 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.04 ▼49.08 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.10 ▼44.79 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.30 ▼95.59 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.43 ▼32.23 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
PhpswFaviconManagerOptions |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Pk Favicon Manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 13.26 ▼0.97 | 1.89 ▼0.43 | 41.84 ▼2.61 |
Dashboard /wp-admin | 2,226 ▲41 | 4.83 ▼1.02 | 98.78 ▼8.05 | 38.30 ▼1.64 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 2.03 ▲0.02 | 39.82 ▼1.12 | 34.90 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,555 ▲35 | 23.06 ▲0.01 | 699.76 ▲42.42 | 54.22 ▲2.10 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.22 ▲0.01 | 98.59 ▼5.72 | 44.57 ▼1.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/phpsword-favicon-manager/index.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; PhpswFaviconManager has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- PhpswFaviconManagerOptions
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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/phpsword-favicon-manager/index.php:162
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
phpsword-favicon-manager/index.php 85% from 13 tests
"Pk Favicon Manager" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 275 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("phpsword-favicon-manager.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected138 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 22 | 138 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/favicon.png | 1.39KB | 0.44KB | ▼ 68.11% |