90% datamentor

Code Review | DataMentor - Best DataTables Plugin for Elementor

WordPress plugin DataMentor - Best DataTables Plugin for Elementor scored90%from 54 tests.

About plugin

  • Plugin page: datamentor
  • Plugin version: 1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 18, 2019
  • Latest release: Oct 5, 2023
  • Number of updates: 8
  • Update frequency: every 181.3 days
  • Top authors: techeshta (62.5%)auburnforest (50%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /3,304 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
The plugin installed gracefully, with no errors

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

Server-side resources used by DataMentor - Best DataTables Plugin for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.13 ▼6.12
Dashboard /wp-admin3.32 ▲0.0151.58 ▼1.92
Posts /wp-admin/edit.php3.37 ▲0.0151.57 ▼5.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.35 ▼17.43
Media Library /wp-admin/upload.php3.24 ▲0.0137.52 ▼0.56

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for DataMentor - Best DataTables Plugin for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲6113.44 ▼1.331.74 ▼0.2647.43 ▲1.80
Dashboard /wp-admin2,231 ▲254.84 ▼0.06104.24 ▲0.7137.41 ▼9.42
Posts /wp-admin/edit.php2,110 ▲72.16 ▲0.1736.56 ▲0.6734.71 ▼1.71
Add New Post /wp-admin/post-new.php1,555 ▲1023.18 ▼0.01612.61 ▼19.9561.56 ▼9.09
Media Library /wp-admin/upload.php1,410 ▲104.24 ▼0.01108.33 ▼1.3347.59 ▼0.22

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: data module, data showcase module, elementor, elementor addon, datamentor...

datamentor/datamentor.php Passed 13 tests

The principal PHP file in "DataMentor - Best DataTables Plugin for Elementor" v. 1.5 is loaded by WordPress automatically on each request
64 characters long description:
This plugin is used to insert data table using elementor editor.

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
Everything looks great! No dangerous files found in this plugin1,613 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP41571051,544
CSS116069

PHP code Passed 2 tests

Analyzing 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.28
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity7.33
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods233.33%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin