84% ai-data-science-templates-for-elementor

Code Review | AI Data Science Templates Addons for Elementor

WordPress plugin AI Data Science Templates Addons for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: ai-data-science-t...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Jun 27, 2020
  • Latest release: Aug 18, 2020
  • Number of updates: 9
  • Update frequency: every 5.8 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /985 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by AI Data Science Templates Addons for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.72 ▲2.60
Dashboard /wp-admin3.31 ▲0.0143.39 ▼3.32
Posts /wp-admin/edit.php3.36 ▲0.0143.63 ▼5.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.74 ▼14.09
Media Library /wp-admin/upload.php3.23 ▲0.0032.17 ▼2.77

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for AI Data Science Templates Addons for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.39 ▲0.041.85 ▲0.1548.85 ▲9.10
Dashboard /wp-admin2,212 ▲355.73 ▲0.0483.44 ▼4.7438.94 ▼5.79
Posts /wp-admin/edit.php2,117 ▲172.03 ▲0.0135.07 ▼0.2633.44 ▼1.15
Add New Post /wp-admin/post-new.php1,540 ▲1423.16 ▼0.28644.06 ▼57.8570.00 ▲11.28
Media Library /wp-admin/upload.php1,420 ▲234.25 ▲0.1099.11 ▼1.4244.16 ▼1.40

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AIDataTemplates\\add_action() in wp-content/plugins/ai-data-science-templates-for-elementor/includes/plugin.php:137

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: widget, addon, template, elementor, responsive...

ai-data-science-templates-for-elementor/ai-data-templates.php 85% from 13 tests

The main PHP file in "AI Data Science Templates Addons for Elementor" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("ai-data-science-templates-for-elementor.php" instead of "ai-data-templates.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin12,709 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
CSS89631549,934
PHP154121,1061,697
JavaScript7631251,072
JSON6006

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.54
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods92
▷ Static methods11.09%
▷ Public methods6975.00%
▷ Protected methods2122.83%
▷ Private methods22.17%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/instructions/elementor-insert-templates.png54.82KB23.31KB▼ 57.47%
assets/images/instructions/elementor-add-templates.png7.29KB4.14KB▼ 43.22%
assets/images/default/w2.png4.92KB2.98KB▼ 39.43%
assets/images/default/icon.png0.49KB0.51KB0.00%
assets/images/default/cards-bg.png106.40KB48.59KB▼ 54.33%