Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/general-options/general-options.php+59
Undefined index: page
Server metrics [RAM: ▼1.96MB] [CPU: ▼49.76ms] Passed 4 tests
Server-side resources used by General Options
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.60 ▼33.61 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.55 ▼40.69 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.46 ▼41.94 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.12 ▼82.80 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.08 ▼26.83 |
General Options Settings /wp-admin/admin.php?page=ad_general_options_setting | 2.99 | 22.66 |
Shortcode List /wp-admin/admin.php?page=shortcode_list | 2.99 | 24.32 |
/wp-admin/admin.php?page=ad_general_option_request&page=ad_general_option_request | 2.99 | 24.24 |
Server storage [IO: ▲1.07MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by General Options
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲91 | 13.29 ▼1.34 | 1.70 ▼0.16 | 43.48 ▲1.05 |
Dashboard /wp-admin | 2,232 ▲41 | 6.01 ▲0.13 | 96.55 ▼13.31 | 72.00 ▲27.87 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.00 ▼0.12 | 38.04 ▲1.21 | 34.23 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,690 ▲156 | 22.44 ▼0.69 | 683.39 ▲29.34 | 44.56 ▼11.88 |
Media Library /wp-admin/upload.php | 1,417 ▲35 | 4.23 ▲0.04 | 96.28 ▲0.06 | 72.18 ▲31.22 |
General Options Settings /wp-admin/admin.php?page=ad_general_options_setting | 1,108 | 1.83 | 37.69 | 59.43 |
Shortcode List /wp-admin/admin.php?page=shortcode_list | 966 | 2.03 | 24.15 | 33.28 |
/wp-admin/admin.php?page=ad_general_option_request&page=ad_general_option_request | 679 | 1.14 | 6.78 | 14.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/general-options/general-options.php+59
Undefined index: page
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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
Smoke test failed, please fix the following
- 13 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ad_general_option_request&page=ad_general_option_request
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ad_general_option_request&page=ad_general_option_request
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
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 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (17 tag instead of maximum 10)
- Screenshots: Screenshot #1 (Theme Options) image required
general-options/general-options.php Passed 13 tests
The main file in "General Options" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
43 characters long description:
This are General Options for Wordpress Site
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 plugin10,302 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,388 | 24 | 7,111 |
Sass | 13 | 19 | 22 | 1,158 |
LESS | 13 | 19 | 31 | 1,149 |
SVG | 2 | 0 | 0 | 733 |
PHP | 5 | 0 | 8 | 150 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review 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.41 |
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 | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
settings.png | 1.02KB | 1.16KB | 0.00% |
assets/images/icon.png | 0.32KB | 0.39KB | 0.00% |