83% wraiter-light-ai-assisted-autocontent-elementor-support-light-version

Code Review | WrAIter Light - AI Assisted Autocontent Elementor and Gutenberg Pilot support Light Version

WordPress plugin WrAIter Light - AI Assisted Autocontent Elementor and Gutenberg Pilot support Light Version scored83%from 54 tests.

About plugin

  • Plugin page: wraiter-light-ai-...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: May 16, 2023
  • Latest release: Jun 1, 2023
  • Number of updates: 13
  • Update frequency: every 1.2 days
  • Top authors: balcomsoft100 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /161 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.26MB] [CPU: ▲495.59ms] 75% from 4 tests

An overview of server-side resources used by WrAIter Light - AI Assisted Autocontent Elementor and Gutenberg Pilot support Light Version
Please have a look at the following items
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 495.59ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2437.50 ▼1.91
Dashboard /wp-admin3.62 ▲0.282,070.55 ▲2,011.00
Posts /wp-admin/edit.php3.66 ▲0.30724.15 ▲674.62
Add New Post /wp-admin/post-new.php6.14 ▲0.26732.77 ▲642.38
Media Library /wp-admin/upload.php3.48 ▲0.25707.59 ▲667.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WrAIter Light - AI Assisted Autocontent Elementor and Gutenberg Pilot support Light Version
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲11513.22 ▼1.161.86 ▲0.0639.91 ▲4.21
Dashboard /wp-admin2,268 ▲775.87 ▲0.9898.63 ▼4.2370.42 ▲16.71
Posts /wp-admin/edit.php2,121 ▲322.04 ▲0.0436.06 ▼4.0632.65 ▼6.84
Add New Post /wp-admin/post-new.php1,551 ▲3718.37 ▲0.90606.71 ▼3.4652.08 ▼11.05
Media Library /wp-admin/upload.php1,423 ▲354.22 ▲0.0697.32 ▼1.8946.56 ▲2.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant WRAITER_LIGHT_PATH - assumed 'WRAITER_LIGHT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wraiter-light-ai-assisted-autocontent-elementor-support-light-version/includes/class-wraiter-light-loader.php on line 56
    • > PHP Warning
      require_once(WRAITER_LIGHT_PATH/includes/helpers.php): failed to open stream: No such file or directory in wp-content/plugins/wraiter-light-ai-assisted-autocontent-elementor-support-light-version/includes/class-wraiter-light-loader.php on line 56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wraiter-light-ai-assisted-autocontent-elementor-support-light-version/includes/gutenberg/gutenberg.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wraiter-light-ai-assisted-autocontent-elementor-support-light-version/includes/settings.php:80
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wraiter-light-ai-assisted-autocontent-elementor-support-light-version/includes/ad-banner.php:40
    • > PHP Fatal error
      require_once(): Failed opening required 'WRAITER_LIGHT_PATH/includes/helpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/wraiter-light-ai-assisted-autocontent-elementor-support-light-version/includes/class-wraiter-light-loader.php on line 56

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 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
Please fix the following attributes: Please take inspiration from this readme.txt

wraiter-light-ai-assisted-autocontent-elementor-support-light-version/wraiter-light.php 77% from 13 tests

Analyzing the main PHP file in "WrAIter Light - AI Assisted Autocontent Elementor and Gutenberg Pilot support Light Version" version 1.2.0
The following require your attention:
  • Plugin Name: Keep the plugin name shorter than 70 characters (currently 71 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wraiter-light-ai-assisted-autocontent-elementor-support-light-version.php" instead of "wraiter-light.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,756 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP161205651,318
JavaScript101571141,138
CSS23412612
Sass1410385
SVG100303

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity4.40
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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