Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼2.63ms] Passed 4 tests
Analyzing server-side resources used by Custom Site Logo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.15 ▼1.31 |
Dashboard /wp-admin | 3.53 ▲0.18 | 55.19 ▼10.38 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 58.25 ▲4.09 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 108.43 ▲2.85 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.18 ▼1.67 |
Custom Site Logo /wp-admin/themes.php?page=custom-site-logo | 3.37 | 39.33 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Custom Site Logo: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,047 ▲261 | 15.21 ▲0.84 | 5.01 ▲3.00 | 42.12 ▼2.03 |
Dashboard /wp-admin | 2,371 ▲171 | 6.45 ▲0.55 | 136.68 ▲21.02 | 41.23 ▼5.96 |
Posts /wp-admin/edit.php | 2,269 ▲169 | 3.32 ▲1.32 | 56.20 ▲18.01 | 35.88 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,537 ▲6 | 17.69 ▼5.41 | 658.65 ▼25.17 | 37.87 ▼20.14 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.09 ▼0.15 | 83.96 ▼32.45 | 46.19 ▼2.08 |
Custom Site Logo /wp-admin/themes.php?page=custom-site-logo | 1,235 | 3.06 | 37.81 | 31.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% 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 0% 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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/custom-site-logo/admin/partials/custom-site-logo-admin-display.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-site-logo/admin/partials/custom-site-logo-admin-settings.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-site-logo/admin/partials/custom-site-logo-admin-menu.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-site-logo/public/partials/custom-site-logo-public-shortcodes.php:51
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #0 is required in custom-site-logo/assets to your readme.txt
custom-site-logo/custom-site-logo.php Passed 13 tests
Analyzing the main PHP file in "Custom Site Logo" version 1.0.1
72 characters long description:
This is a plugin to show the custom logo in the site header or anywhere.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin5,191 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 8 | 14 | 4,416 |
PHP | 14 | 192 | 784 | 545 |
Markdown | 1 | 82 | 0 | 184 |
JavaScript | 2 | 11 | 30 | 46 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 2 | 4.26% |
▷ Public methods | 42 | 89.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.64% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin