Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.34ms] Passed 4 tests
This is a short check of server-side resources used by WP Style It
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 29.15 ▼10.26 |
Dashboard /wp-admin | 3.47 ▲0.16 | 56.90 ▼0.85 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 52.74 ▼2.21 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 100.59 ▲7.00 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.18 ▼4.04 |
WP Style It /wp-admin/options-general.php?page=wpsi_settings | 3.45 | 32.82 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 142 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
wpsi_settings |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Style It
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 14.59 ▲0.21 | 5.90 ▲4.23 | 46.88 ▲1.96 |
Dashboard /wp-admin | 2,234 ▲34 | 5.79 ▼0.06 | 101.02 ▼19.49 | 39.28 ▼3.17 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.63 ▲0.59 | 38.30 ▼4.12 | 34.33 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,535 ▼12 | 23.52 ▲0.16 | 653.49 ▼2.63 | 35.18 ▼33.51 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 5.39 ▲1.17 | 99.42 ▼23.12 | 45.67 ▼3.86 |
WP Style It /wp-admin/options-general.php?page=wpsi_settings | 2,367 | 2.64 | 69.73 | 61.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- wpsi_settings
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+11
Undefined index: suppress-on-posts
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+16
Undefined index: suppress-on-pages
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+21
Undefined index: suppress-on-attachment
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+26
Undefined index: suppress-on-category
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+30
Undefined index: suppress-on-tag
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+34
Undefined index: suppress-on-home
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+39
Undefined index: suppress-on-front
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+44
Undefined index: suppress-on-archive
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+54
Undefined index: suppress-on-error
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+49
Undefined index: suppress-on-author
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+64
Undefined index: suppress-on-logged-in
- > GET request to /wp-admin/options-general.php?page=wpsi_settings
- > Notice in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php+59
Undefined index: suppress-on-wptouch
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-style-it/edit_area/edit_area_compressor.php
- > /wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php
- > /wp-content/plugins/wp-style-it/bootstrap.php
- 59× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-section-headers.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php on line 202
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php on line 188
- > PHP Notice
Undefined variable: field in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php on line 23
- > PHP Notice
Undefined variable: field in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php on line 125
- > PHP Notice
Undefined variable: field in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php on line 150
- > PHP Notice
Undefined variable: section in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-section-headers.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php on line 18
- > PHP Warning
Use of undefined constant WPSI_REQUIRED_WP_VERSION - assumed 'WPSI_REQUIRED_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-style-it/views/requirements-error.php on line 11
- > PHP Notice
Undefined variable: field in wp-content/plugins/wp-style-it/views/wpsi-settings/page-settings-fields.php on line 66
- > PHP Notice
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 93% 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 your attention:
- Screenshots: These screenshots do not have images: #1 (CSS editor), #2 (Options)
wp-style-it/bootstrap.php 92% from 13 tests
The main PHP script in "WP Style It" version 0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-style-it.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected9,105 lines of code in 110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 93 | 768 | 1,055 | 7,283 |
PHP | 11 | 215 | 418 | 1,168 |
CSS | 4 | 95 | 22 | 519 |
HTML | 2 | 8 | 0 | 135 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 38.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 10 | 12.50% |
▷ Public methods | 60 | 75.00% |
▷ Protected methods | 11 | 13.75% |
▷ Private methods | 9 | 11.25% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.36MB with 0.21MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 181.51KB | 54.74KB | ▼ 69.84% |
edit_area/images/opacity.png | 0.14KB | 0.09KB | ▼ 34.01% |
images/blank.png | 0.27KB | 0.10KB | ▼ 61.68% |
screenshot-2.png | 191.23KB | 65.26KB | ▼ 65.87% |