Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-enterprise-extension/wp-enterprise-extension.php+22
Use of undefined constant WEX_VERSION_KEY - assumed 'WEX_VERSION_KEY' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.93MB] [CPU: ▼60.33ms] Passed 4 tests
An overview of server-side resources used by WP Enterprise Extension
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.13 ▼40.14 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.18 ▼49.33 |
Posts /wp-admin/edit.php | 2.09 ▼1.28 | 6.01 ▼41.99 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.81 | 5.40 ▼109.87 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.01 ▼33.09 |
Install Plugins /wp-admin/themes.php?page=install-required-plugins | 2.11 | 6.11 |
Server storage [IO: ▲0.14MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- The plugin illegally modified 1 file (0.40KB) outside of "wp-content/plugins/wp-enterprise-extension/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyonepage-custom-blank.php
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
WEX_VERSION_KEY |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Enterprise Extension
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲132 | 14.29 ▼0.31 | 1.55 ▲0.02 | 38.09 ▼6.13 |
Dashboard /wp-admin | 2,301 ▲124 | 5.64 ▲0.03 | 93.60 ▲0.32 | 50.42 ▲6.10 |
Posts /wp-admin/edit.php | 2,218 ▲118 | 2.16 ▲0.14 | 41.92 ▲0.76 | 41.17 ▲4.81 |
Add New Post /wp-admin/post-new.php | 6,338 ▲4,807 | 26.36 ▲3.25 | 923.71 ▲234.73 | 61.29 ▲9.73 |
Media Library /wp-admin/upload.php | 1,514 ▲111 | 4.16 ▼0.03 | 113.10 ▲15.54 | 53.52 ▲7.65 |
Install Plugins /wp-admin/themes.php?page=install-required-plugins | 1,500 | 2.05 | 22.80 | 29.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/wp-enterprise-extension/wp-enterprise-extension.php+22
Use of undefined constant WEX_VERSION_KEY - assumed 'WEX_VERSION_KEY' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- WEX_VERSION_KEY
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=install-required-plugins
- > Warning in wp-content/plugins/wp-enterprise-extension/wp-enterprise-extension.php+25
Use of undefined constant WEX_VERSION_KEY - assumed 'WEX_VERSION_KEY' (this will throw an Error in a future version of PHP)
SRP 50% from 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 following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-enterprise-extension/components/page-custom-blank.php:17
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-enterprise-extension/components/acf-fields/wp_wysiwyg-v4.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-enterprise-extension/wex-css-delivery.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action_ref_array() in wp-content/plugins/wp-enterprise-extension/components/class-tgm-plugin-activation.php:174
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
2 plugin tags: acf, enterprise
wp-enterprise-extension/wp-enterprise-extension.php Passed 13 tests
"WP Enterprise Extension" version 0.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
86 characters long description:
This plugin will install and begin the hardening process for enterprise installations.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,793 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 605 | 924 | 1,793 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 40.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 1 | 2.08% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 6 | 12.50% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There are no PNG files in this plugin