78% bethemesme

Code Review | BeThemesMe

WordPress plugin BeThemesMe scored78%from 54 tests.

About plugin

  • Plugin page: bethemesme
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 10, 2021
  • Latest release: Aug 20, 2022
  • Number of updates: 9
  • Update frequency: every 31.4 days
  • Top authors: bethememe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,235 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.96ms] Passed 4 tests

An overview of server-side resources used by BeThemesMe
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0450.73 ▲1.84
Dashboard /wp-admin3.33 ▲0.0250.72 ▼3.17
Posts /wp-admin/edit.php3.38 ▲0.0252.23 ▼3.01
Add New Post /wp-admin/post-new.php5.93 ▲0.0498.57 ▲3.86
Media Library /wp-admin/upload.php3.25 ▲0.0234.80 ▼3.50

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 406 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for BeThemesMe
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.46 ▼0.169.33 ▲7.3237.78 ▼7.14
Dashboard /wp-admin2,202 ▲255.60 ▼0.0887.52 ▼4.6242.37 ▲0.31
Posts /wp-admin/edit.php2,101 ▲42.00 ▼0.0236.61 ▼0.3031.38 ▼5.75
Add New Post /wp-admin/post-new.php1,530 ▲422.81 ▼0.04676.93 ▲16.6962.37 ▲14.83
Media Library /wp-admin/upload.php1,404 ▲74.24 ▲0.0398.46 ▼19.5641.92 ▼4.56

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 10× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bethemesme/bethemes/befold/onepage/elementor/onepage-icon/onepage-icon-output.php
    • > /wp-content/plugins/bethemesme/bethemes/befold/onepage/elementor/onepage-btn/onepage-btn-output.php
    • > /wp-content/plugins/bethemesme/bethemes/default/elementor/bethemesme-btn/bethemesme-btn-output.php
    • > /wp-content/plugins/bethemesme/bethemes/befold/onepage/elementor/onepage-about/onepage-about-output.php
    • > /wp-content/plugins/bethemesme/bethemes/default/elementor/bethemesme-icon/bethemesme-icon-output.php
    • > /wp-content/plugins/bethemesme/bethemes/default/elementor/bethemesme-about/bethemesme-about-output.php
    • > /wp-content/plugins/bethemesme/bethemes/befold/onepage/elementor/onepage-vertical/onepage-vertical-promo-output.php
    • > /wp-content/plugins/bethemesme/bethemes/default/elementor/bethemesme-banner/bethemesme-banner-output.php
    • > /wp-content/plugins/bethemesme/bethemes/default/elementor/bethemesme-vertical/bethemesme-vertical-promo-output.php
    • > /wp-content/plugins/bethemesme/bethemes/befold/onepage/elementor/onepage-banner/onepage-banner-output.php
  • 66× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/bethemesme/bethemes/befold/onepage/elementor/onepage-contact/onepage-contact-output.php:39
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bethemesme/bethemes/befold/onepage/elementor/onepage-about/onepage-about-output.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bethemesme/bethemes/befold/inc/demo-importer/theme-demo-import.php:27
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bethemesme/bethemes/befold/onepage/elementor/onepage-banner/onepage-banner-output.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/bethemesme/includes/custom-menu/walker-nav-menu-edit.php:10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bethemesme/bethemes/default/elementor/bethemesme-btn/bethemesme-btn-output.php on line 2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bethemesme/bethemes/befold/onepage/elementor/onepage-banner/onepage-banner-output.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bethemesme/bethemes/befold/onepage/elementor/elementor-addons.php:15
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bethemesme/bethemes/default/elementor/bethemesme-about/bethemesme-about-output.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bethemesme/bethemes/befold/onepage/inc/helper-functions.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Invalid version format
  • Tested up to: Invalid version format
Please take inspiration from this readme.txt

bethemesme/bethemesme.php Passed 13 tests

The principal PHP file in "BeThemesMe" v. 1.0.4 is loaded by WordPress automatically on each request
86 characters long description:
The BeThemesMe plugin you install after Elementor! Packed with stunning free elements.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected54,244 lines of code in 244 files:
LanguageFilesBlank linesComment linesLines of code
PO File11912,73116,32929,151
CSS261,2221,0956,923
PHP621,6842,7875,796
JavaScript213052775,544
XML158244,721
Sass11168231,116
SVG100655
Markdown21190337
JSON1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity19.14
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes35
▷ Abstract classes00.00%
▷ Concrete classes35100.00%
▷ Final classes00.00%
Methods398
▷ Static methods338.29%
▷ Public methods33884.92%
▷ Protected methods5714.32%
▷ Private methods30.75%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
18 compressed PNG files occupy 0.19MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
bethemes/befold/inc/demo-importer/demo/creato/screenshots.png166.45KB81.88KB▼ 50.81%
includes/cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
assets/plugins/fancymedia/css/fancybox_sprite.png1.33KB1.42KB0.00%
includes/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%