84% wp-basic-elements

Code Review | WP Basic Elements

WordPress plugin WP Basic Elements scored84%from 54 tests.

About plugin

  • Plugin page: wp-basic-elements
  • Plugin version: 5.4.3
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.4.0
  • WordPress version: 6.3.1
  • First release: Apr 30, 2014
  • Latest release: Nov 8, 2023
  • Number of updates: 164
  • Update frequency: every 21.2 days
  • Top authors: WebKreativ (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /19,855 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.27MB] [CPU: ▼0.23ms] Passed 4 tests

This is a short check of server-side resources used by WP Basic Elements
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1437.30 ▼1.29
Dashboard /wp-admin3.66 ▲0.3548.53 ▼3.90
Posts /wp-admin/edit.php3.71 ▲0.3553.85 ▲7.81
Add New Post /wp-admin/post-new.php6.20 ▲0.3094.41 ▲0.46
Media Library /wp-admin/upload.php3.52 ▲0.2938.00 ▲3.83
WPB Elements /wp-admin/options-general.php?page=wpbe_settings_page3.5934.17

Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Basic Elements
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,788 ▲2614.34 ▲0.211.75 ▲0.1041.34 ▼2.97
Dashboard /wp-admin2,190 ▲135.57 ▼0.0791.03 ▼8.3840.18 ▼2.14
Posts /wp-admin/edit.php2,098 ▼51.94 ▲0.0040.27 ▲2.4430.82 ▼7.40
Add New Post /wp-admin/post-new.php1,523 ▼223.05 ▼0.38640.25 ▼55.7473.69 ▲15.54
Media Library /wp-admin/upload.php1,401 ▲14.27 ▲0.1098.78 ▼7.6538.55 ▼5.91
WPB Elements /wp-admin/options-general.php?page=wpbe_settings_page2,2586.36133.4667.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPBE_Settings_Sections_Fields' not found in wp-content/plugins/wp-basic-elements/inc/settings-sections/class-wpbe-settings-admin-toolbar.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPBE_Render_Settings_Fields' not found in wp-content/plugins/wp-basic-elements/inc/settings-render/class-wpbe-render-core.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPBE_Settings_Sections_Fields' not found in wp-content/plugins/wp-basic-elements/inc/settings-sections/class-wpbe-settings-core.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPBE_Render_Settings_Fields' not found in wp-content/plugins/wp-basic-elements/inc/settings-render/class-wpbe-render-admin-toolbar.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPBE_Settings_Sections_Fields' not found in wp-content/plugins/wp-basic-elements/inc/settings-sections/class-wpbe-settings-profile.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-basic-elements/inc/class-wpbe-settings-sections-fields.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'WPBE_Render_Settings_Fields' not found in wp-content/plugins/wp-basic-elements/inc/settings-render/class-wpbe-render-head.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPBE_Settings_Sections_Fields' not found in wp-content/plugins/wp-basic-elements/inc/settings-sections/class-wpbe-settings-head.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPBE_Settings_Sections_Fields' not found in wp-content/plugins/wp-basic-elements/inc/settings-sections/class-wpbe-settings-admin-footer.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WPBE_Render_Settings_Fields' not found in wp-content/plugins/wp-basic-elements/inc/settings-render/class-wpbe-render-admin-dashboard.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Coming soon) image missing
The official readme.txt might help

wp-basic-elements/wp-basic-elements.php Passed 13 tests

The principal PHP file in "WP Basic Elements" v. 5.4.3 is loaded by WordPress automatically on each request
88 characters long description:
Disable unnecessary features and speed up your site. Make the WP Admin simple and clean.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,911 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP213051,2981,067
PO File3270276658
CSS1253154
JavaScript1121532

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.79
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods124
▷ Static methods10.81%
▷ Public methods12399.19%
▷ Protected methods10.81%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/favicon-96x96.png3.39KB2.57KB▼ 24.06%