Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.22MB] [CPU: ▲0.70ms] Passed 4 tests
A check of server-side resources used by WPScreens
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.62 ▲1.16 | 41.54 ▲2.46 |
Dashboard /wp-admin | 4.52 ▲1.21 | 47.31 ▼3.97 |
Posts /wp-admin/edit.php | 4.57 ▲1.21 | 58.65 ▲11.43 |
Add New Post /wp-admin/post-new.php | 7.20 ▲1.31 | 96.73 ▼2.05 |
Media Library /wp-admin/upload.php | 4.53 ▲1.30 | 43.26 ▲6.38 |
New WPSplitscreen /wp-admin/post-new.php?post_type=split_displays | 4.66 | 53.81 |
Add New /wp-admin/post-new.php?post_type=acf-field-group | 4.67 | 51.22 |
Field Groups /wp-admin/edit.php?post_type=acf-field-group | 4.51 | 36.74 |
WP Screens /wp-admin/options-general.php?page=wpscreens | 4.32 | 33.37 |
New WPScreen /wp-admin/post-new.php?post_type=displays | 4.61 | 54.18 |
All WPSplitscreens /wp-admin/edit.php?post_type=split_displays | 4.48 | 37.62 |
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools | 4.47 | 35.13 |
All WPScreens /wp-admin/edit.php?post_type=displays | 4.48 | 36.61 |
Server storage [IO: ▲8.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 304 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
acf_version |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
wpscreens_option_name |
Browser metrics Passed 4 tests
Checking browser requirements for WPScreens
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲239 | 13.70 ▼0.67 | 5.91 ▲3.93 | 39.35 ▼8.21 |
Dashboard /wp-admin | 2,285 ▲97 | 4.86 ▼0.03 | 109.31 ▲9.11 | 42.71 ▼2.43 |
Posts /wp-admin/edit.php | 2,168 ▲79 | 2.04 ▼0.02 | 39.75 ▲2.20 | 33.01 ▼0.28 |
Add New Post /wp-admin/post-new.php | 11,364 ▲9,831 | 26.59 ▲3.46 | 1,164.02 ▲482.63 | 37.21 ▼22.11 |
Media Library /wp-admin/upload.php | 2,009 ▲621 | 8.40 ▲4.10 | 231.00 ▲126.28 | 51.31 ▲5.85 |
New WPSplitscreen /wp-admin/post-new.php?post_type=split_displays | 2,478 | 8.13 | 178.81 | 38.25 |
Add New /wp-admin/post-new.php?post_type=acf-field-group | 2,344 | 3.83 | 84.74 | 46.46 |
Field Groups /wp-admin/edit.php?post_type=acf-field-group | 1,243 | 2.10 | 32.09 | 28.22 |
WP Screens /wp-admin/options-general.php?page=wpscreens | 897 | 1.71 | 25.52 | 26.13 |
New WPScreen /wp-admin/post-new.php?post_type=displays | 2,282 | 8.00 | 174.28 | 89.95 |
All WPSplitscreens /wp-admin/edit.php?post_type=split_displays | 1,138 | 1.95 | 30.78 | 32.72 |
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools | 1,191 | 3.10 | 47.56 | 31.28 |
All WPScreens /wp-admin/edit.php?post_type=displays | 1,135 | 2.00 | 32.61 | 29.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- acf_version
- widget_theysaidso_widget
- wpscreens_option_name
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=wpscreens
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wpscreens
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% 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 items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpscreens/public/partials/wp-screens-public-display.php
- > /wp-content/plugins/wpscreens/admin/partials/wp-screens-admin-display.php
- 86× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpscreens/includes/acf/includes/forms/form-comment.php:34
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wpscreens/includes/acf/includes/admin/views/html-location-rule.php on line 4
- > PHP Notice
Undefined variable: active in wp-content/plugins/wpscreens/includes/acf/includes/admin/views/html-admin-tools.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/wpscreens/includes/acf/includes/acf-form-functions.php:4
- > PHP Notice
Undefined variable: rule in wp-content/plugins/wpscreens/includes/acf/includes/admin/views/html-location-rule.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpscreens/includes/acf.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wpscreens/includes/acf/includes/fields/class-acf-field-checkbox.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpscreens/includes/acf/includes/forms/form-widget.php:40
- > PHP Fatal error
Uncaught Error: Class 'acf_field_number' not found in wp-content/plugins/wpscreens/includes/acf/includes/fields/class-acf-field-range.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wpscreens/includes/acf/includes/api/api-helpers.php:93
- > PHP Fatal error
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 errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #3, #4, #5, #6 in wpscreens/assets to your readme.txt
- Donate link: Please fix this invalid URI: "wpscreens.com"
wpscreens/wp-screens.php 85% from 13 tests
This is the main PHP file of "WPScreens" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpscreens.php" instead of "wp-screens.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected102,173 lines of code in 248 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 31 | 23,677 | 40,074 | 49,025 |
JavaScript | 24 | 6,160 | 5,903 | 24,993 |
PHP | 163 | 11,934 | 20,834 | 20,958 |
CSS | 23 | 564 | 849 | 7,066 |
Markdown | 3 | 51 | 0 | 102 |
SVG | 4 | 0 | 2 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 119 | |
▷ Abstract classes | 2 | 1.68% |
▷ Concrete classes | 117 | 98.32% |
▷ Final classes | 0 | 0.00% |
Methods | 837 | |
▷ Static methods | 3 | 0.36% |
▷ Public methods | 829 | 99.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 0.96% |
Functions | 468 | |
▷ Named functions | 468 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 compressed PNG files occupy 0.23MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/acf/assets/inc/datepicker/images/ui-icons_DDDDDD_256x240.png | 3.68KB | 4.17KB | 0.00% |
assets/pro.png | 204.78KB | 85.44KB | ▼ 58.28% |
includes/acf/assets/inc/select2/3/select2.png | 0.51KB | 0.99KB | 0.00% |
assets/icon-256x256.png | 7.05KB | 7.32KB | 0.00% |
includes/acf/assets/inc/select2/3/select2x2.png | 0.64KB | 0.77KB | 0.00% |