Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/am-login-logo/index.php+240
Function create_function() is deprecated
Server metrics [RAM: ▼1.71MB] [CPU: ▼315.43ms] Passed 4 tests
Analyzing server-side resources used by WP Logo Changer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.92 ▼0.80 | 5.49 ▼15.22 |
Dashboard /wp-admin | 1.93 ▼1.12 | 5.86 ▼36.81 |
Posts /wp-admin/edit.php | 1.94 ▼1.17 | 7.08 ▼39.05 |
Add New Post /wp-admin/post-new.php | 1.93 ▼3.49 | 6.71 ▼1,155.31 |
Media Library /wp-admin/upload.php | 1.94 ▼1.07 | 5.94 ▼30.53 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Logo Changer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,699 ▲117 | 16.25 ▲0.40 | 8.69 ▲1.38 | 44.46 ▼6.76 |
Dashboard /wp-admin | 2,980 ▲130 | 6.54 ▲0.70 | 140.58 ▲4.21 | 110.21 ▲7.23 |
Posts /wp-admin/edit.php | 2,759 ▲53 | 2.98 ▲0.30 | 67.72 ▲1.92 | 105.93 ▲14.59 |
Add New Post /wp-admin/post-new.php | 1,685 ▲32 | 18.84 ▲0.04 | 351.16 ▼30.07 | 108.09 ▼1.29 |
Media Library /wp-admin/upload.php | 1,825 ▲50 | 5.41 ▲0.39 | 133.05 ▼33.53 | 108.89 ▼5.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/am-login-logo/index.php+240
Function create_function() is deprecated
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/am-login-logo/index.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
am-login-logo/index.php 92% from 13 tests
The principal PHP file in "WP Logo Changer" v. 1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("am-login-logo.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin615 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 101 | 112 | 594 |
CSS | 1 | 2 | 1 | 18 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis 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.31 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/hs.png | 2.62KB | 7.54KB | 0.00% |
images/hv.png | 2.80KB | 7.32KB | 0.00% |