Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼141.00ms] Passed 4 tests
An overview of server-side resources used by Site Settings
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 45.47 ▲18.57 |
Dashboard /wp-admin | 3.11 ▲0.05 | 52.10 ▲4.11 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 44.97 ▼0.62 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 91.77 ▼569.91 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 37.42 ▲2.43 |
Site Settings /wp-admin/options-general.php?page=site-settings | 3.02 | 30.76 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Site Settings
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲102 | 15.85 ▲0.32 | 8.50 ▼1.58 | 54.28 ▲9.94 |
Dashboard /wp-admin | 2,972 ▲38 | 5.93 ▼0.07 | 143.98 ▼10.03 | 127.41 ▲5.73 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.74 ▲0.02 | 66.17 ▼4.69 | 92.94 ▼10.35 |
Add New Post /wp-admin/post-new.php | 1,503 ▼88 | 18.61 ▲0.07 | 376.17 ▼7.94 | 121.25 ▼0.46 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.03 ▼0.07 | 156.71 ▼6.41 | 130.74 ▲4.40 |
Site Settings /wp-admin/options-general.php?page=site-settings | 1,032 | 2.05 | 57.19 | 69.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/site-settings/includes/admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/site-settings/site-settings.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-settings/includes/admin/settings-screen.php:9
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: settings, admin
site-settings/site-settings.php Passed 13 tests
The entry point to "Site Settings" version 0.2 is a PHP file that has certain tags in its header comment area
54 characters long description:
Manage custom site settings and global content fields.
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
Success! There were no dangerous files found in this plugin228 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 149 | 158 | 228 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 18 | 78.26% |
▷ Public methods | 16 | 69.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 30.43% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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