Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲5.04MB] [CPU: ▲27.61ms] 75% from 4 tests
Analyzing server-side resources used by Restrict for Elementor
Please take the time to fix the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.04MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.91 ▲5.45 | 64.94 ▲23.55 |
Dashboard /wp-admin | 8.93 ▲5.62 | 84.23 ▲35.30 |
Posts /wp-admin/edit.php | 8.93 ▲5.57 | 82.60 ▲29.62 |
Add New Post /wp-admin/post-new.php | 9.40 ▲3.51 | 115.90 ▲21.98 |
Media Library /wp-admin/upload.php | 8.93 ▲5.70 | 81.51 ▲40.79 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.93 | 61.96 |
Server storage [IO: ▲4.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 235 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
fs_accounts |
widget_theysaidso_widget |
fs_debug_mode |
Browser metrics Passed 4 tests
A check of browser resources used by Restrict for Elementor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲103 | 14.42 ▲0.04 | 1.87 ▲0.00 | 34.40 ▼17.35 |
Dashboard /wp-admin | 2,255 ▲67 | 5.78 ▼0.11 | 116.23 ▲4.12 | 46.40 ▲2.42 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 2.02 ▲0.04 | 40.52 ▼2.03 | 44.55 ▲9.87 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 22.96 ▲5.16 | 686.28 ▲13.46 | 58.45 ▼6.17 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.24 ▼0.06 | 106.19 ▼22.23 | 53.02 ▲2.33 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,098 | 1.69 | 29.39 | 29.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/restrict-for-elementor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- fs_active_plugins
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- fs_debug_mode
- fs_accounts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\add_filter() in wp-content/plugins/restrict-for-elementor/free-addons/user_role.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/restrict-for-elementor/free-addons/logged_in_users.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\add_filter() in wp-content/plugins/restrict-for-elementor/free-addons/user_meta.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/restrict-for-elementor/control.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/restrict-for-elementor/free-addons/post_author.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/restrict-for-elementor/settings/settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\add_filter() in wp-content/plugins/restrict-for-elementor/free-addons/location.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Elementor\\add_filter() in wp-content/plugins/restrict-for-elementor/free-addons/user_capability.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: restrict access, easy digital downloads, tickera, elementor, restricted content...
restrict-for-elementor/index.php 92% from 13 tests
The entry point to "Restrict for Elementor" version 1.0.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("restrict-for-elementor.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin38,219 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 8,201 | 17,324 | 34,909 |
CSS | 16 | 337 | 7 | 1,592 |
SVG | 14 | 25 | 5 | 1,520 |
JavaScript | 5 | 34 | 59 | 198 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 82.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 2 | 3.57% |
▷ Concrete classes | 54 | 96.43% |
▷ Final classes | 0 | 0.00% |
Methods | 1,307 | |
▷ Static methods | 201 | 15.38% |
▷ Public methods | 917 | 70.16% |
▷ Protected methods | 17 | 1.30% |
▷ Private methods | 373 | 28.54% |
Functions | 99 | |
▷ Named functions | 99 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 98 | 67.12% |
▷ Class constants | 48 | 32.88% |
▷ Public constants | 48 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 1.02MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/geolocation.png | 109.75KB | 37.94KB | ▼ 65.43% |
assets/images/specific-meta-value.png | 58.47KB | 19.39KB | ▼ 66.84% |
assets/icon-128x128.png | 3.74KB | 2.29KB | ▼ 38.95% |
assets/images/box-corner-gray.png | 1.25KB | 0.55KB | ▼ 55.92% |
assets/images/restrict-part.png | 64.05KB | 15.47KB | ▼ 75.85% |