Benchmarks
Plugin footprint 83% from 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.46MB] [CPU: ▼307.08ms] Passed 4 tests
An overview of server-side resources used by WP Dev Powers - Display Screen Dimensions to Admin Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.53 | 87.38 ▼1.22 |
Dashboard /wp-admin | 3.88 ▲0.47 | 37.09 ▲2.24 |
Posts /wp-admin/edit.php | 4.11 ▲0.47 | 37.71 ▼3.43 |
Add New Post /wp-admin/post-new.php | 7.33 ▲0.36 | 94.02 ▼1,225.89 |
Media Library /wp-admin/upload.php | 3.82 ▲0.53 | 34.57 ▲8.66 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 4.02 | 24.19 |
Server storage [IO: ▲3.68MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 221 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_active_plugins |
fs_debug_mode |
fs_api_cache |
fs_gdpr |
fs_accounts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Dev Powers - Display Screen Dimensions to Admin Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,049 ▲295 | 15.25 ▲0.12 | 6.74 ▲0.22 | 2.22 ▼0.67 |
Dashboard /wp-admin | 3,119 ▲265 | 6.16 ▼0.06 | 134.24 ▲9.21 | 221.92 ▲60.59 |
Posts /wp-admin/edit.php | 2,866 ▲175 | 3.25 ▲0.01 | 64.30 ▼0.65 | 163.48 ▲17.77 |
Add New Post /wp-admin/post-new.php | 1,756 ▲95 | 17.63 ▲0.88 | 431.58 ▲14.69 | 324.25 ▲134.56 |
Media Library /wp-admin/upload.php | 1,944 ▲252 | 5.53 ▲0.03 | 140.34 ▼14.13 | 177.58 ▼65.23 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 1,563 | 2.70 | 96.20 | 159.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 5 options
- fs_accounts
- fs_api_cache
- fs_debug_mode
- fs_active_plugins
- fs_gdpr
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-dev-powers-display-screen-dimensions-to-admin/freemius/templates/ajax-loader.php
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wp-dev-powers-display-screen-dimensions-to-admin/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-dev-powers-display-screen-dimensions-to-admin/php/admin-header.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dev-powers-display-screen-dimensions-to-admin/php/core.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/wp-dev-powers-display-screen-dimensions-to-admin/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function dsdta_fs() in wp-content/plugins/wp-dev-powers-display-screen-dimensions-to-admin/php/header.php:15
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wp-dev-powers-display-screen-dimensions-to-admin/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wp-dev-powers-display-screen-dimensions-to-admin/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-dev-powers-display-screen-dimensions-to-admin/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/wp-dev-powers-display-screen-dimensions-to-admin/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-dev-powers-display-screen-dimensions-to-admin/php/freemius-integration.php:14
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=freemius
- > Network (severe)
https://maxcdn.bootstrapcdn.com/font-awesome/5.4.0/css/font-awesome.min.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
wp-dev-powers-display-screen-dimensions-to-admin/index.php 85% from 13 tests
"WP Dev Powers - Display Screen Dimensions to Admin Plugin" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-dev-powers-display-screen-dimensions-to-admin.php" instead of "index.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin43,609 lines of code in 169 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 6,730 | 15,437 | 28,323 |
PO File | 10 | 5,710 | 6,913 | 12,558 |
Sass | 28 | 399 | 77 | 2,515 |
JavaScript | 6 | 34 | 59 | 197 |
CSS | 13 | 0 | 0 | 16 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,609)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 82.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,609.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 1,080 | |
▷ Static methods | 170 | 15.74% |
▷ Public methods | 749 | 69.35% |
▷ Protected methods | 15 | 1.39% |
▷ Private methods | 316 | 29.26% |
Functions | 104 | |
▷ Named functions | 104 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 120 | |
▷ Global constants | 97 | 80.83% |
▷ Class constants | 23 | 19.17% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.16MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/overlay.png | 0.11KB | 0.15KB | 0.00% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
dashicon.png | 2.44KB | 1.54KB | ▼ 36.84% |
images/conditional-logic.png | 3.26KB | 0.80KB | ▼ 75.43% |