10% wpessentials

Code Review | Essentials

WordPress plugin Essentials scored 10% from 54 tests.

About plugin

  • Plugin page: wpessentials
  • Plugin version: 2022.02.11
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-5.9
  • WordPress version: 6.3.1
  • First release: Feb 22, 2020
  • Latest release: Feb 11, 2022
  • Number of updates: 174
  • Update frequency: every 4.1 days
  • Top authors: bvandevliet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,664 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.4941.50 ▲2.25
Dashboard /wp-admin3.85 ▲0.5451.65 ▲0.64
Posts /wp-admin/edit.php3.90 ▲0.5448.79 ▲4.62
Add New Post /wp-admin/post-new.php6.37 ▲0.4887.99 ▼5.40
Media Library /wp-admin/upload.php3.71 ▲0.4840.86 ▲6.17
Analytics /wp-admin/options-general.php?page=wpessentials_analytics3.6834.85
Security /wp-admin/options-general.php?page=wpessentials_security3.6836.74
Login Form /wp-admin/options-general.php?page=wpessentials_login3.7137.83
Devmode /wp-admin/options-general.php?page=wpessentials_devmode3.6836.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.19 ▼1.181.56 ▼0.1238.76 ▼10.26
Dashboard /wp-admin2,237 ▲495.81 ▲0.9297.18 ▼18.7135.93 ▼10.21
Posts /wp-admin/edit.php2,123 ▲342.04 ▲0.0335.41 ▼0.0435.13 ▼1.63
Add New Post /wp-admin/post-new.php1,558 ▲3723.22 ▲0.02670.72 ▲47.4852.95 ▼16.38
Media Library /wp-admin/upload.php1,425 ▲344.17 ▼0.0694.23 ▼4.9842.69 ▼1.05
Analytics /wp-admin/options-general.php?page=wpessentials_analytics9921.7325.4429.46
Security /wp-admin/options-general.php?page=wpessentials_security1,2131.7726.6629.45
Login Form /wp-admin/options-general.php?page=wpessentials_login1,0643.1039.6261.59
Devmode /wp-admin/options-general.php?page=wpessentials_devmode9411.7426.5231.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:
LanguageFilesBlank linesComment linesLines of code
PHP164621,5272,909
PO File1122190430
JavaScript53435288
CSS319396
JSON10037

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 code0.37
Average class complexity16.80
▷ Minimum class complexity3.00
▷ Maximum class complexity33.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods28
▷ Static methods1553.57%
▷ Public methods2796.43%
▷ Protected methods00.00%
▷ Private methods13.57%
Functions102
▷ Named functions3433.33%
▷ Anonymous functions6866.67%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants133.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