Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.77ms] Passed 4 tests
Analyzing server-side resources used by Restrict Elementor Widgets, Columns & Sections
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.18 ▼2.35 |
Dashboard /wp-admin | 3.32 ▲0.01 | 38.17 ▼10.98 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.04 ▼8.78 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 93.07 ▼3.85 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.89 ▼3.46 |
Server storage [IO: ▲0.39MB] [DB: ▲0.04MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
codexpert-blog-json |
restrict-elementor-widgets-docs-json |
pl-survey_restrict-elementor-widgets-activated |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Restrict Elementor Widgets, Columns & Sections
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,975 ▲214 | 13.90 ▼0.48 | 8.62 ▲6.88 | 40.50 ▼8.80 |
Dashboard /wp-admin | 2,295 ▲115 | 5.65 ▲0.03 | 96.03 ▲6.84 | 46.27 ▲3.77 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.05 ▲0.02 | 42.98 ▲4.77 | 35.63 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,571 ▲34 | 23.42 ▲5.16 | 638.78 ▼17.61 | 62.72 ▼9.25 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.35 ▲0.14 | 100.44 ▼8.81 | 42.73 ▼6.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- codexpert-blog-json
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- restrict-elementor-widgets-docs-json
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/restrict-elementor-widgets/views/settings/extensions.php:1
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/restrict-elementor-widgets/functions/helpers.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/restrict-elementor-widgets/functions/helpers.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/restrict-elementor-widgets/functions/helpers.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Codexpert\\Plugin\\Base' not found in wp-content/plugins/restrict-elementor-widgets/src/Settings.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
3 plugin tags: restrict widget, lock elementor, restrict elementor
restrict-elementor-widgets/restrict-elementor-widgets.php 92% from 13 tests
"Restrict Elementor Widgets, Columns & Sections" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin4,934 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 871 | 1,149 | 3,492 |
CSS | 6 | 5 | 11 | 1,054 |
JavaScript | 6 | 14 | 0 | 234 |
JSON | 4 | 0 | 0 | 152 |
Markdown | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 23.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 228.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 2 | 8.70% |
▷ Concrete classes | 21 | 91.30% |
▷ Final classes | 1 | 4.76% |
Methods | 202 | |
▷ Static methods | 24 | 11.88% |
▷ Public methods | 192 | 95.05% |
▷ Protected methods | 3 | 1.49% |
▷ Private methods | 7 | 3.47% |
Functions | 24 | |
▷ Named functions | 19 | 79.17% |
▷ Anonymous functions | 5 | 20.83% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/codexpert/plugin/src/assets/img/checked.png | 18.81KB | 9.90KB | ▼ 47.36% |
assets/img/rew-wc.png | 49.27KB | 26.33KB | ▼ 46.56% |
assets/img/rew-wcs.png | 56.80KB | 29.54KB | ▼ 48.00% |
vendor/codexpert/plugin/src/assets/img/survey.png | 7.31KB | 3.08KB | ▼ 57.88% |