84% elemendas-addons

Code Review | Elemendas Addons

WordPress plugin Elemendas Addons scored 84% from 54 tests.

About plugin

  • Plugin page: elemendas-addons
  • Plugin version: 2.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Mar 26, 2022
  • Latest release: Jun 15, 2022
  • Number of updates: 29
  • Update frequency: every 2.8 days
  • Top authors: sanbec (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 1,267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.52ms] Passed 4 tests

Analyzing server-side resources used by Elemendas Addons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.13 ▼0.89
Dashboard /wp-admin3.38 ▲0.0844.56 ▼5.60
Posts /wp-admin/edit.php3.49 ▲0.1448.86 ▼6.13
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.56 ▼21.46
Media Library /wp-admin/upload.php3.30 ▲0.0738.70 ▲3.70

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Elemendas Addons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7814.61 ▲0.351.71 ▼0.0341.05 ▼11.42
Dashboard /wp-admin2,219 ▲345.76 ▲0.8598.05 ▼16.6038.30 ▼7.46
Posts /wp-admin/edit.php2,104 ▲151.99 ▼0.0238.99 ▲1.2036.21 ▼0.40
Add New Post /wp-admin/post-new.php1,544 ▲223.32 ▲4.97602.15 ▼24.4150.24 ▼31.75
Media Library /wp-admin/upload.php1,398 ▲104.27 ▲0.13101.77 ▼6.4542.71 ▼10.68

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Heading' not found in wp-content/plugins/elemendas-addons/includes/widgets/added/search-results-highlighted.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: search results, carousel, menu, elementor, elementor widgets

elemendas-addons/elemendas-addons.php Passed 13 tests

This is the main PHP file of "Elemendas Addons" version 2.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
56 characters long description:
Improving the search results archive page for Elementor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin4,243 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP144917492,867
CSS117849595
JavaScript56418397
PO File1164297366
SVG20118

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes216.67%
Methods102
▷ Static methods2726.47%
▷ Public methods8785.29%
▷ Protected methods1211.76%
▷ Private methods32.94%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected