Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/wpessentials/inc/install-hooks.php+53
Invalid argument supplied for foreach()
Server metrics [RAM: ▲0.50MB] [CPU: ▲0.53ms] Passed 4 tests
An overview of server-side resources used by Essentials
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.49 | 41.50 ▲2.25 |
Dashboard /wp-admin | 3.85 ▲0.54 | 51.65 ▲0.64 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 48.79 ▲4.62 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 87.99 ▼5.40 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 40.86 ▲6.17 |
Analytics /wp-admin/options-general.php?page=wpessentials_analytics | 3.68 | 34.85 |
Security /wp-admin/options-general.php?page=wpessentials_security | 3.68 | 36.74 |
Login Form /wp-admin/options-general.php?page=wpessentials_login | 3.71 | 37.83 |
Devmode /wp-admin/options-general.php?page=wpessentials_devmode | 3.68 | 36.75 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- The plugin illegally modified 1 file (0.78KB) outside of "wp-content/plugins/wpessentials/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 41 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_wpessentials_bf_failed_logins |
wp_wpessentials_bf_lockouts |
New WordPress options |
---|
wpessentials_security |
wpessentials_security_enabled |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
wpessentials_login_enabled |
widget_theysaidso_widget |
wpessentials_analytics |
wpessentials_devmode |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Essentials
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.19 ▼1.18 | 1.56 ▼0.12 | 38.76 ▼10.26 |
Dashboard /wp-admin | 2,237 ▲49 | 5.81 ▲0.92 | 97.18 ▼18.71 | 35.93 ▼10.21 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.04 ▲0.03 | 35.41 ▼0.04 | 35.13 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,558 ▲37 | 23.22 ▲0.02 | 670.72 ▲47.48 | 52.95 ▼16.38 |
Media Library /wp-admin/upload.php | 1,425 ▲34 | 4.17 ▼0.06 | 94.23 ▼4.98 | 42.69 ▼1.05 |
Analytics /wp-admin/options-general.php?page=wpessentials_analytics | 992 | 1.73 | 25.44 | 29.46 |
Security /wp-admin/options-general.php?page=wpessentials_security | 1,213 | 1.77 | 26.66 | 29.45 |
Login Form /wp-admin/options-general.php?page=wpessentials_login | 1,064 | 3.10 | 39.62 | 61.59 |
Devmode /wp-admin/options-general.php?page=wpessentials_devmode | 941 | 1.74 | 26.52 | 31.58 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 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
4 plugin tags: analytics, essentials, security, development
wpessentials/wpessentials.php Passed 13 tests
This is the main PHP file of "Essentials" version 2022.02.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
123 characters long description:
Adds essential functionalities to your WordPress installation. Security and development options, Google Analytics and more.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected3,760 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 462 | 1,527 | 2,909 |
PO File | 1 | 122 | 190 | 430 |
JavaScript | 5 | 34 | 35 | 288 |
CSS | 3 | 19 | 3 | 96 |
JSON | 1 | 0 | 0 | 37 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 28 | |
▷ Static methods | 15 | 53.57% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.57% |
Functions | 102 | |
▷ Named functions | 34 | 33.33% |
▷ Anonymous functions | 68 | 66.67% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 1 | 33.33% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin