78% elemenda

Code Review | Elemenda

WordPress plugin Elemenda scored 78% from 54 tests.

About plugin

  • Plugin page: elemenda
  • Plugin version: 0.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Sep 11, 2020
  • Latest release: Sep 19, 2020
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: themeid (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 872 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.07MB] [CPU: ▲0.64ms] Passed 4 tests

An overview of server-side resources used by Elemenda
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.94 ▼2.49
Dashboard /wp-admin3.37 ▲0.0751.74 ▲6.46
Posts /wp-admin/edit.php3.49 ▲0.1343.92 ▼1.43
Add New Post /wp-admin/post-new.php5.95 ▲0.0792.03 ▲9.35
Media Library /wp-admin/upload.php3.30 ▲0.0734.22 ▲0.03

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 260 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
elemenda_widgets_registered
widget_recent-posts
can_compress_scripts
db_upgraded
elementor_cpt_support
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Elemenda
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲2013.14 ▼1.241.94 ▼0.4143.40 ▼4.58
Dashboard /wp-admin2,215 ▲95.87 ▲0.97100.79 ▲3.9142.20 ▲5.64
Posts /wp-admin/edit.php2,097 ▲82.10 ▲0.1134.46 ▼0.7337.97 ▲5.60
Add New Post /wp-admin/post-new.php1,551 ▲1418.33 ▼4.98618.13 ▼48.3552.01 ▼0.29
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0196.17 ▼9.3643.71 ▼5.84

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 8 options in the database
    • elementor_cpt_support
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • elemenda_widgets_registered
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/elemenda/includes/Templates/Admin/support.php
  • 46× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Themeid_Elemenda\\Widgets\\Socials\\Module' not found in wp-content/plugins/elemenda/includes/Widgets/socials/Facebook/Group.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\Common\\Modules\\Finder\\Base_Category' not found in wp-content/plugins/elemenda/includes/Classess/PostFinder.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/elemenda/includes/Widgets/Heading/Gradient.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/elemenda/includes/Templates/Admin/general.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Group_Control_Base' not found in wp-content/plugins/elemenda/includes/Controls/Gradient.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Themeid_Elemenda\\Widgets\\Socials\\TwitterBase' not found in wp-content/plugins/elemenda/includes/Widgets/socials/Twitter/Embed.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Themeid_Elemenda\\Widgets\avigations\\Module' not found in wp-content/plugins/elemenda/includes/Widgets/Navigations/widgets/NavMenu2.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Themeid_Elemenda\\Widgets\\Forms\\Module' not found in wp-content/plugins/elemenda/includes/Widgets/Forms/widgets/SearchForm.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Themeid_Elemenda\\Widgets\avigations\\Module' not found in wp-content/plugins/elemenda/includes/Widgets/Navigations/widgets/Nav_Menu.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Themeid_Elemenda\\Classes\\Bootstrap' not found in wp-content/plugins/elemenda/includes/Templates/Admin/starter-templates.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: elementor addon, page builder addons, elementor widget, elementor extensions, elementor modules...

elemenda/elemenda.php 92% from 13 tests

Analyzing the main PHP file in "Elemenda" version 0.0.2
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected59,333 lines of code in 236 files:
LanguageFilesBlank linesComment linesLines of code
PHP1216,6052,71435,653
SVG411,186313,022
JavaScript351,9201,1838,167
CSS363261232,295
Markdown1560114
JSON20082

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.68
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces26
Interfaces0
Traits22
Classes79
▷ Abstract classes33.80%
▷ Concrete classes7696.20%
▷ Final classes00.00%
Methods790
▷ Static methods10513.29%
▷ Public methods52266.08%
▷ Protected methods19224.30%
▷ Private methods769.62%
Functions71
▷ Named functions6490.14%
▷ Anonymous functions79.86%
Constants32
▷ Global constants1134.38%
▷ Class constants2165.62%
▷ Public constants21100.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
2 PNG files occupy 0.18MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/banner.png175.84KB77.53KB▼ 55.91%
assets/admin/images/placeholder.png9.83KB11.11KB0.00%