Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/offsprout-page-builder/includes/class-offsprout-model.php+1383
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.53MB] [CPU: ▼195.60ms] Passed 4 tests
Server-side resources used by Offsprout Page Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼0.74 | 6.27 ▼33.34 |
Dashboard /wp-admin | 2.11 ▼0.94 | 6.32 ▼38.67 |
Posts /wp-admin/edit.php | 2.12 ▼0.99 | 6.99 ▼45.66 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.32 | 6.67 ▼656.39 |
Media Library /wp-admin/upload.php | 2.12 ▼0.89 | 6.43 ▼41.69 |
Builder /wp-admin/options-general.php?page=offsprout-settings | 2.12 | 5.96 |
Server storage [IO: ▲29.07MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- Try to limit filesystem usage to 25MB (currently using 29.07MB)
Filesystem: 448 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_ocb_revisions |
New WordPress options |
---|
ocb_meta_db_version |
ocb_install_ran |
Browser metrics Passed 4 tests
A check of browser resources used by Offsprout Page Builder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,874 ▲278 | 17.39 ▲1.76 | 30.04 ▲19.82 | 53.38 ▼1.43 |
Dashboard /wp-admin | 2,999 ▲65 | 6.06 ▼0.04 | 143.52 ▼2.33 | 119.38 ▲0.28 |
Posts /wp-admin/edit.php | 2,777 ▲41 | 2.70 ▲0.01 | 69.45 ▼5.29 | 89.63 ▼5.62 |
Add New Post /wp-admin/post-new.php | 1,689 ▲108 | 21.84 ▲5.45 | 284.84 ▼156.16 | 117.28 ▼7.81 |
Media Library /wp-admin/upload.php | 1,834 ▲27 | 5.05 ▲0.01 | 151.42 ▼15.27 | 124.09 ▼4.99 |
Builder /wp-admin/options-general.php?page=offsprout-settings | 2,289 | 10.57 | 308.48 | 150.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/offsprout-page-builder/includes/class-offsprout-model.php+1383
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- The uninstall procedure failed, leaving 1 table in the database
- wp_ocb_revisions
- This plugin does not fully uninstall, leaving 2 options in the database
- ocb_meta_db_version
- ocb_install_ran
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=offsprout-settings
- > Deprecated in wp-content/plugins/offsprout-page-builder/includes/class-offsprout-model.php+1383
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
SRP 50% 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 take a closer look at the following
- 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/offsprout-page-builder/admin/screens/admin-settings-js-config.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/offsprout-page-builder/templates/offsprout-editor.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/offsprout-page-builder/admin/class-offsprout-admin-settings.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/offsprout-page-builder/public/class-offsprout-shortcodes.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/offsprout-page-builder/api/class-offsprout-api-extensions.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/offsprout-page-builder/admin/importer/class-offsprout-importer.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Offsprout_Model' not found in wp-content/plugins/offsprout-page-builder/admin/class-offsprout-add-editor-button.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/offsprout-page-builder/admin/screens/admin-settings-installation.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/offsprout-page-builder/admin/importer/class-offsprout-importer.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Offsprout_Model' not found in wp-content/plugins/offsprout-page-builder/includes/class-offsprout-wp-toolbar.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: drag and drop, website builder, offsprout, landing page, front end builder...
offsprout-page-builder/offsprout.php 92% from 13 tests
The entry point to "Offsprout Page Builder" version 2.15.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("offsprout-page-builder.php" instead of "offsprout.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin198,373 lines of code in 252 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 154 | 31,807 | 33,183 | 149,859 |
CSS | 38 | 3,861 | 736 | 33,585 |
PHP | 42 | 2,319 | 1,944 | 7,667 |
SVG | 11 | 7 | 0 | 3,775 |
XML | 4 | 28 | 64 | 3,469 |
HTML | 2 | 0 | 0 | 16 |
Markdown | 1 | 1 | 0 | 2 |
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.49 |
Average class complexity | 47.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 376.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 7 | 21.88% |
Methods | 396 | |
▷ Static methods | 192 | 48.48% |
▷ Public methods | 387 | 97.73% |
▷ Protected methods | 1 | 0.25% |
▷ Private methods | 8 | 2.02% |
Functions | 15 | |
▷ Named functions | 8 | 53.33% |
▷ Anonymous functions | 7 | 46.67% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 2.46MB with 1.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
library/stock/logo-2.png | 2.65KB | 1.92KB | ▼ 27.39% |
library/stock/restaurant-logo.png | 161.16KB | 41.44KB | ▼ 74.29% |
library/stock/ebook-cover-blank.png | 42.58KB | 16.65KB | ▼ 60.89% |
library/stock/logo-7.png | 3.06KB | 2.05KB | ▼ 32.89% |
library/stock/law-firm-logo.png | 102.44KB | 31.06KB | ▼ 69.68% |