90% granular-controls-for-elementor

Code Review | Granular Controls For Elementor

WordPress plugin Granular Controls For Elementor scored90%from 54 tests.

About plugin

  • Plugin page: granular-controls...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.4
  • WordPress version: 6.3.1
  • First release: Jan 11, 2018
  • Latest release: Mar 29, 2018
  • Number of updates: 8
  • Update frequency: every 9.6 days
  • Top authors: norewp (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

20,000+ active /150,157 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0245.70 ▼5.98
Dashboard /wp-admin3.33 ▲0.0352.50 ▲1.11
Posts /wp-admin/edit.php3.38 ▲0.0347.20 ▼3.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.26 ▼14.10
Media Library /wp-admin/upload.php3.26 ▲0.0337.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

Browser metrics Passed 4 tests

A check of browser resources used by Granular Controls For Elementor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.20 ▼0.021.72 ▼0.4643.56 ▼2.24
Dashboard /wp-admin2,200 ▲235.53 ▼0.0091.54 ▲4.9039.81 ▲0.20
Posts /wp-admin/edit.php2,108 ▲52.10 ▲0.1037.15 ▼4.1333.12 ▼12.30
Add New Post /wp-admin/post-new.php1,545 ▲1018.27 ▲0.05651.03 ▼7.9368.62 ▲5.12
Media Library /wp-admin/upload.php1,408 ▲84.24 ▲0.07102.29 ▼7.0742.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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.35
Average class complexity12.25
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
▷ Abstract classes216.67%
▷ Concrete classes1083.33%
▷ Final classes110.00%
▷ Static methods65.45%
▷ Public methods10090.91%
▷ Protected methods65.45%
▷ Private methods43.64%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.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