Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.08MB] [CPU: ▼274.18ms] Passed 4 tests
Analyzing server-side resources used by WordPress Dev Powers - Element Selector jQuery Powers Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.92 ▲4.41 | 74.89 ▲22.87 |
Dashboard /wp-admin | 7.94 ▲4.53 | 54.01 ▲21.75 |
Posts /wp-admin/edit.php | 7.94 ▲4.29 | 56.59 ▲9.26 |
Add New Post /wp-admin/post-new.php | 10.04 ▲3.07 | 110.56 ▼1,146.47 |
Media Library /wp-admin/upload.php | 7.94 ▲4.65 | 44.97 ▲18.73 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 7.94 | 41.23 |
Server storage [IO: ▲22.93MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 1,096 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_api_cache |
fs_debug_mode |
fs_active_plugins |
fs_accounts |
fs_gdpr |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Dev Powers - Element Selector jQuery Powers Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,027 ▲268 | 15.97 ▼0.00 | 5.81 ▼0.42 | 17.12 ▲14.42 |
Dashboard /wp-admin | 3,153 ▲292 | 6.30 ▲0.20 | 116.64 ▼19.39 | 167.74 ▼1.23 |
Posts /wp-admin/edit.php | 2,808 ▲120 | 3.28 ▲0.04 | 63.78 ▼0.76 | 149.10 ▲8.99 |
Add New Post /wp-admin/post-new.php | 1,687 ▼85 | 20.03 ▼1.18 | 430.30 ▼18.23 | 167.35 ▲4.96 |
Media Library /wp-admin/upload.php | 1,949 ▲251 | 5.63 ▲0.14 | 134.82 ▼11.18 | 204.68 ▲12.47 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 1,570 | 2.74 | 56.74 | 130.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 5 options
- fs_active_plugins
- fs_debug_mode
- fs_accounts
- fs_gdpr
- fs_api_cache
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-dev-powers-element-selector-jquery-powers/freemius/templates/ajax-loader.php
- 104× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/wp-dev-powers-element-selector-jquery-powers/acf/advanced-custom-fields/includes/acf-field-functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-dev-powers-element-selector-jquery-powers/acf/acf-code-field/acf-code-field.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dev-powers-element-selector-jquery-powers/acf/advanced-custom-fields/includes/forms/form-attachment.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dev-powers-element-selector-jquery-powers/acf/advanced-custom-fields/includes/forms/form-taxonomy.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/wp-dev-powers-element-selector-jquery-powers/acf/advanced-custom-fields/includes/acf-value-functions.php:4
- > PHP Notice
Undefined variable: rule in wp-content/plugins/wp-dev-powers-element-selector-jquery-powers/acf/advanced-custom-fields/includes/admin/views/html-location-rule.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dev-powers-element-selector-jquery-powers/acf/advanced-custom-fields/includes/acf-data-functions.php:111
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-dev-powers-element-selector-jquery-powers/acf/advanced-custom-fields/includes/admin/views/html-admin-tools.php:21
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-dev-powers-element-selector-jquery-powers/acf/advanced-custom-fields/includes/admin/views/html-location-rule.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dev-powers-element-selector-jquery-powers/acf/advanced-custom-fields/includes/admin/admin-field-group.php:34
- > PHP Fatal error
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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
wp-dev-powers-element-selector-jquery-powers/index.php 77% from 13 tests
"WordPress Dev Powers - Element Selector jQuery Powers Plugin" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- 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
- Description: Keep the plugin description shorter than 140 characters (currently 243 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-dev-powers-element-selector-jquery-powers.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin226,504 lines of code in 971 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 321 | 15,081 | 13,396 | 90,617 |
PO File | 41 | 26,306 | 40,861 | 55,472 |
PHP | 257 | 18,913 | 34,522 | 47,324 |
HTML | 182 | 3,752 | 12 | 22,363 |
CSS | 127 | 865 | 419 | 5,675 |
Sass | 28 | 399 | 77 | 2,515 |
JSON | 3 | 0 | 0 | 1,520 |
Markdown | 9 | 364 | 0 | 804 |
SVG | 2 | 19 | 1 | 209 |
Bourne Shell | 1 | 0 | 1 | 5 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 32.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,609.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 156 | |
▷ Abstract classes | 2 | 1.28% |
▷ Concrete classes | 154 | 98.72% |
▷ Final classes | 0 | 0.00% |
Methods | 1,786 | |
▷ Static methods | 170 | 9.52% |
▷ Public methods | 1,455 | 81.47% |
▷ Protected methods | 15 | 0.84% |
▷ Private methods | 316 | 17.69% |
Functions | 512 | |
▷ Named functions | 512 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 129 | |
▷ Global constants | 106 | 82.17% |
▷ Class constants | 23 | 17.83% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
images/border.png | 0.07KB | 0.10KB | 0.00% |
acf/advanced-custom-fields/assets/inc/datepicker/images/ui-icons_ffffff_256x240.png | 3.68KB | 4.17KB | 0.00% |
images/controls.png | 1.23KB | 1.28KB | 0.00% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |