Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.09ms] Passed 4 tests
Server-side resources used by Granular Controls For Elementor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 45.70 ▼5.98 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.50 ▲1.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.20 ▼3.61 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.26 ▼14.10 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.05 ▼0.67 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Granular Controls For Elementor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲11 | 14.20 ▼0.02 | 1.72 ▼0.46 | 43.56 ▼2.24 |
Dashboard /wp-admin | 2,200 ▲23 | 5.53 ▼0.00 | 91.54 ▲4.90 | 39.81 ▲0.20 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.10 ▲0.10 | 37.15 ▼4.13 | 33.12 ▼12.30 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 18.27 ▲0.05 | 651.03 ▼7.93 | 68.62 ▲5.12 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.24 ▲0.07 | 102.29 ▼7.07 | 42.05 ▼5.89 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: ui hacks, delayed content, elementor, accordion off, elementor particles...
granular-controls-for-elementor/granular-controls-elementor.php 92% from 13 tests
The principal PHP file in "Granular Controls For Elementor" v. 1.0.5 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("granular-controls-for-elementor.php" instead of "granular-controls-elementor.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected13,690 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 272 | 88 | 4,086 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 7 | 476 | 219 | 1,780 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 13 | 365 | 353 | 1,627 |
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.35 |
Average class complexity | 12.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 1 | 10.00% |
Methods | 110 | |
▷ Static methods | 6 | 5.45% |
▷ Public methods | 100 | 90.91% |
▷ Protected methods | 6 | 5.45% |
▷ Private methods | 4 | 3.64% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
No PNG files were detected