Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.55ms] Passed 4 tests
Server-side resources used by Site-settings
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.53 ▲3.89 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.75 ▼0.61 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 42.42 ▼5.35 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.97 ▼19.81 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.37 ▼0.41 |
Site Settings /wp-admin/options-general.php?page=site-settings | 3.35 | 33.84 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_recent-comments |
site_instagram |
site_phone |
sitesettings_active |
site_email |
site_facebook |
site_twitter |
widget_recent-posts |
site_logo |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Site-settings
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.24 ▼1.12 | 1.71 ▲0.21 | 48.38 ▲5.05 |
Dashboard /wp-admin | 2,210 ▲19 | 5.86 ▲0.84 | 111.47 ▲10.79 | 43.39 ▲1.93 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.01 | 35.86 ▼0.02 | 31.60 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,538 ▲4 | 23.39 ▲0.28 | 658.96 ▼6.89 | 57.40 ▲5.54 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.34 ▲0.09 | 95.10 ▼7.82 | 42.13 ▼7.91 |
Site Settings /wp-admin/options-general.php?page=site-settings | 1,329 | 3.57 | 52.84 | 91.94 |
Uninstaller [IO: ▲0.03MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 16 options in the database
- site_logo
- site_tags
- site_email
- sitesettings_deactive
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- site_facebook
- site_phone
- ...
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=site-settings
- > Notice in wp-content/plugins/sites-settings/settings-form.php+108
Trying to get property 'labels' of non-object
- > GET request to /wp-admin/options-general.php?page=site-settings
- > Notice in wp-content/plugins/sites-settings/settings-form.php+108
Trying to get property 'singular_name' of non-object
- > GET request to /wp-admin/options-general.php?page=site-settings
- > Warning in wp-content/plugins/sites-settings/settings-form.php+109
count(): Parameter must be an array or an object that implements Countable
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=site-settings
- > Notice in wp-content/plugins/sites-settings/settings-form.php+114
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=site-settings
- > Notice in wp-content/plugins/sites-settings/settings-form.php+114
Trying to get property 'name' of non-object
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
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
These attributes need your attention:
- Requires at least: Invalid plugin version format
sites-settings/site-settings.php 85% from 13 tests
This is the main PHP file of "Site-settings" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sites-settings.php" instead of "site-settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,844 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1,125 | 278 | 4,373 |
PHP | 2 | 117 | 62 | 429 |
CSS | 3 | 8 | 8 | 42 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 20.54KB | 9.69KB | ▼ 52.85% |