84% elemental-theme-builder

Code Review | Elemental Theme Builder

WordPress plugin Elemental Theme Builder scored84%from 54 tests.

About plugin

  • Plugin page: elemental-theme-b...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 14, 2021
  • Latest release: Dec 14, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wpclevel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,969 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.50ms] Passed 4 tests

An overview of server-side resources used by Elemental Theme Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.62 ▼1.78
Dashboard /wp-admin3.31 ▼0.0445.05 ▼10.67
Posts /wp-admin/edit.php3.36 ▲0.0043.83 ▼7.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.77 ▼13.83
Media Library /wp-admin/upload.php3.23 ▲0.0035.87 ▲3.42

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Elemental Theme Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.54 ▼0.811.57 ▼0.0540.60 ▼0.66
Dashboard /wp-admin2,209 ▲214.85 ▼1.0196.88 ▼18.8038.41 ▼8.33
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0236.45 ▼3.8834.65 ▼0.16
Add New Post /wp-admin/post-new.php1,539 ▲2523.13 ▲5.66660.00 ▼5.5853.74 ▼2.58
Media Library /wp-admin/upload.php1,382 ▼64.18 ▼0.0598.77 ▼0.5642.19 ▲0.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Modules\\Library\\Documents\\Library_Document' not found in wp-content/plugins/elemental-theme-builder/src/Documents/SiteFooter.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Modules\\Library\\Documents\\Library_Document' not found in wp-content/plugins/elemental-theme-builder/src/Documents/SiteHeader.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/elemental-theme-builder/src/Templates/SiteHeader.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/elemental-theme-builder/elemental-theme-builder.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Plugin' not found in wp-content/plugins/elemental-theme-builder/src/Templates/BlankPage.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/elemental-theme-builder/src/Templates/SiteFooter.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

elemental-theme-builder/elemental-theme-builder.php 92% from 13 tests

"Elemental Theme Builder" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.2" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin727 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8115188726
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity24.50
▷ Minimum class complexity3.00
▷ Maximum class complexity67.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes4100.00%
Methods31
▷ Static methods412.90%
▷ Public methods2167.74%
▷ Protected methods26.45%
▷ Private methods825.81%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.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
There are no PNG files in this plugin