84% elementic

Code Review | Elementic

WordPress plugin Elementic scored84%from 54 tests.

About plugin

  • Plugin page: elementic
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Jan 26, 2023
  • Latest release: Jan 26, 2023
  • Number of updates: 2
  • Update frequency: every 469.5 days
  • Top authors: gabrielcarvalhogama (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /879 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.70ms] Passed 4 tests

A check of server-side resources used by Elementic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0247.28 ▲3.02
Dashboard /wp-admin3.33 ▲0.0247.04 ▼3.81
Posts /wp-admin/edit.php3.38 ▲0.0251.65 ▲1.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.37 ▼1.42
Media Library /wp-admin/upload.php3.25 ▲0.0236.52 ▼3.22

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Elementic
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.35 ▼0.031.71 ▼0.2150.29 ▲4.58
Dashboard /wp-admin2,212 ▲325.62 ▼0.0491.09 ▼0.1842.28 ▼0.17
Posts /wp-admin/edit.php2,117 ▲142.01 ▼0.0141.14 ▲3.4737.45 ▼1.31
Add New Post /wp-admin/post-new.php1,538 ▲13223.14 ▲5.34623.67 ▼13.2449.49 ▲3.33
Media Library /wp-admin/upload.php1,417 ▲234.13 ▼0.11104.71 ▼4.3248.87 ▲0.85

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/elementic/includes/controls/Elementic_Form_Action.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Screenshots: Please a description for screenshot #1 in elementic/assets to your readme.txt
You can take inspiration from this readme.txt

elementic/elementic.php Passed 13 tests

This is the main PHP file of "Elementic" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Integre o seu Elementor com o Mautic DE GRAÇA.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected140 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP376120140

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.50
▷ Minimum class complexity4.00
▷ Maximum class complexity9.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods13
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin