Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.91MB] [CPU: ▼30.86ms] Passed 4 tests
Analyzing server-side resources used by Website Logo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.75 ▼6.76 |
Dashboard /wp-admin | 3.03 ▼0.27 | 28.35 ▼21.12 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 23.71 ▼22.69 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 24.00 ▼70.29 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 23.21 ▼9.35 |
Logo /wp-admin/themes.php?page=website_logo | 3.03 | 22.23 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Website Logo: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.18 ▼1.14 | 1.90 ▲0.01 | 39.76 ▼2.28 |
Dashboard /wp-admin | 2,213 ▲28 | 5.90 ▲0.09 | 95.76 ▼13.25 | 38.90 ▼2.06 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.04 | 39.12 ▼1.29 | 34.57 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,536 ▼7 | 23.49 ▲5.42 | 639.27 ▲28.26 | 53.81 ▼2.85 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.17 ▼0.09 | 95.49 ▼5.23 | 43.35 ▲2.11 |
Logo /wp-admin/themes.php?page=website_logo | 820 | 2.16 | 27.13 | 23.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/simple-website-logo/website-logo.php+65
Undefined index: is_web_logo
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=website_logo
- > Notice in wp-content/plugins/simple-website-logo/website-logo.php+33
Undefined index: is_web_logo
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-website-logo/website-logo.php:83
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: website logo, logo
simple-website-logo/website-logo.php 92% from 13 tests
The principal PHP file in "Website Logo" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-website-logo.php" instead of "website-logo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin80 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 12 | 53 |
JavaScript | 1 | 17 | 1 | 27 |
PHP code Passed 2 tests
This is a short overview 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.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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin